parallelplot and latex interpreter
Show older comments
I am using parallelplot to generate some plots. However, when I used:
set(gca,'TickLabelInterpreter','latex');
I get:
Unrecognized property TickLabelInterpreter for class ParallelCoordinatesPlot.
Is there any alternative to set the x and y labels of my plot to latex style?
Example:
data = randi(1,10,3);
p = parallelplot(data)
p.CoordinateTickLabels = {'one','two','three'};
set(p,'TickLabelInterpreter','latex');
5 Comments
Adam Danz
on 11 Mar 2023
> Is there any alternative to set the x and y labels of my plot to latex style?
This solution isn't ideal and doesn't direclty address your goal.
If you're using MATLAB R2022a or later, you could use the fontname function to set the font for the entire figure generated by parallelplot, not just the tick labels. You'll also need the font used by latex (see How can I add a new font).
Rub Ron
on 12 Mar 2023
Rub Ron
on 14 Apr 2023
Adam Danz
on 14 Apr 2023
I wrote that solution prior to working at MathWorks. It uses undocumented features that aren't intended to be use-facing. The problem with using undocumented features is that they may not behave as one may expect and there is no guarantee that they will be supported in the future. We will consider adding an intepreter property that can be used with parallelplot.
Accepted Answer
More Answers (0)
Categories
Find more on Graphics Object Properties in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!