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

P M p.muehlmann at gmail.com
Fri Oct 18 08:54:52 CEST 2019


Dear Antoine,
that does it.
Thank you,
Philipp

Am Do., 17. Okt. 2019 um 18:49 Uhr schrieb Antoine Monmayrant <
amonmayr at laas.fr>:

> 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
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20191018/4ed7da85/attachment.htm>


More information about the users mailing list