parallelplot and latex interpreter
Ältere Kommentare anzeigen
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 Kommentare
Adam Danz
am 11 Mär. 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
am 12 Mär. 2023
Rub Ron
am 14 Apr. 2023
Adam Danz
am 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.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Graphics Object Properties finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
