[Scilab-users] rotate x_tick labels

P M p.muehlmann at gmail.com
Thu Oct 17 15:40:48 CEST 2019


Dear all,

how can one insert the values of a string vector into a latex-formatted
string?

Example:

myLabels = [ 'label1'; 'label2'; ....; label_n];   // myLabels = vector of
strings

I am struggling by trying to use the entries of myLabel as automatic
generated LaTex-labels for x_ticks.

for i = 1: nrOfLabels
    str = myLabels(i);
    a.x_ticks.labels(i)="$\rotatebox{90} {str}$";   // this will write
"str" in latex format and 90° rotated to each label positionend

Of course it is possible to type {str} by hand for each label.
But as the labels might change from plot to plot this is not really an
option.
Any idea?

Thank you,
Philipp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20191017/06fb93ad/attachment.htm>


More information about the users mailing list