<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hello Izabela,<br>
<br>
Le 21/02/2019 à 17:38, Izabela Wójcik-Grząba a écrit :<br>
</div>
<blockquote cite="mid:6c8bc8ba74326566f299b52241df38b4@il.pw.edu.pl"
type="cite">Hello,
<br>
<br>
In my plot every tick_label in the x-axis is made of two numbers
(the second is in the parenthesis). Now they are printed next to
each other like for example:
<br>
0.2 (11)
<br>
<br>
See the code below:
<br>
<br>
f_l=[0.20030479
<br>
0.29234647
<br>
0.36879976
<br>
0.43788566
<br>
0.50263554
<br>
0.56453135
<br>
0.62441298];
<br>
<br>
L_0=[11:1:17]';
<br>
<br>
f_l_labels=[msprintf('%3.1f\n',f_l)+' ('+string(L_0)+')'];
<br>
<br>
In this form they take a lot of place along the x-axis, so I would
like to print the numbers one over another. I've tried different
options but none of them works. Particularly I was testing a Latex
option \atop but with no success.
<br>
</blockquote>
<br>
You must double "\":<br>
<br>
<font size="-1"><tt>--> f_l_labels=[msprintf('<b>$</b>%3.1f<b>\\</b><b>atop</b>\n',f_l)+'
('+string(L_0)+')<b>$</b>']</tt><tt><br>
</tt><tt> f_l_labels = </tt><tt><br>
</tt><tt>!$0.2\atop (11)$ !</tt><tt><br>
</tt><tt>!$0.3\atop (12)$ !</tt><tt><br>
</tt><tt>!$0.4\atop (13)$ !</tt><tt><br>
</tt><tt>!$0.4\atop (14)$ !</tt><tt><br>
</tt><tt>!$0.5\atop (15)$ !</tt><tt><br>
</tt><tt>!$0.6\atop (16)$ !</tt><tt><br>
</tt><tt>!$0.6\atop (17)$ !</tt><tt><br>
</tt></font><br>
then it should work:<br>
<img src="cid:part1.75BB1E4C.9ED9A17F@free.fr" alt=""><br>
<br>
Best regards<br>
Samuel<br>
<br>
</body>
</html>