[Scilab-users] ?==?utf-8?q? rotate x_tick labels

Antoine Monmayrant amonmayr at laas.fr
Thu Oct 17 18:49:16 CEST 2019


Houps,

I meant:

a.x_ticks.labels(i)="$\rotatebox{90} {"+myLabels+"}$";  
 
Antoine
 
Le Jeudi, Octobre 17, 2019 15:40 CEST, P M <p.muehlmann at gmail.com> a écrit: 
 
> 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




More information about the users mailing list