<div dir="ltr"><div>Dear Antoine,</div><div>that does it.</div><div>Thank you,</div><div>Philipp<br></div></div><br><div class="gmail_quote"><div class="gmail_attr" dir="ltr">Am Do., 17. Okt. 2019 um 18:49 Uhr schrieb Antoine Monmayrant <<a href="mailto:amonmayr@laas.fr">amonmayr@laas.fr</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">Houps,<br>
<br>
I meant:<br>
<br>
a.x_ticks.labels(i)="$\rotatebox{90} {"+myLabels+"}$"; <br>
<br>
Antoine<br>
<br>
Le Jeudi, Octobre 17, 2019 15:40 CEST, P M <<a href="mailto:p.muehlmann@gmail.com" target="_blank">p.muehlmann@gmail.com</a>> a écrit: <br>
<br>
> Dear all,<br>
> <br>
> how can one insert the values of a string vector into a latex-formatted<br>
> string?<br>
> <br>
> Example:<br>
> <br>
> myLabels = [ 'label1'; 'label2'; ....; label_n]; // myLabels = vector of<br>
> strings<br>
> <br>
> I am struggling by trying to use the entries of myLabel as automatic<br>
> generated LaTex-labels for x_ticks.<br>
> <br>
> for i = 1: nrOfLabels<br>
> str = myLabels(i);<br>
> a.x_ticks.labels(i)="$\rotatebox{90} {str}$"; // this will write<br>
> "str" in latex format and 90° rotated to each label positionend<br>
> <br>
> Of course it is possible to type {str} by hand for each label.<br>
> But as the labels might change from plot to plot this is not really an<br>
> option.<br>
> Any idea?<br>
> <br>
> Thank you,<br>
> Philipp<br>
<br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" target="_blank" rel="noreferrer">http://lists.scilab.org/mailman/listinfo/users</a><br>
</blockquote></div>