[scilab-Users] Axis ranging from 1 to %inf
Mathieu Dubois
mathieu.dubois at limsi.fr
Thu Feb 4 10:06:14 CET 2010
Hello,
In case some people would like to do the same I post here my own solution.
The basic idea is to plot the data for +Infinity at some value (220 in
my case) and then change the label. In Addition I draw a small rectangle
to break the curves.
PLOT_AXIS_TICKS=[0 50 100 150 200 220];
PLOT_AXIS_LABELS=['0' '50' '100' '150' '200' string(%inf)];
plot2d(x_data, y_data);
a=gca();
a.x_ticks=tlist('ticks', PLOT_AXIS_TICKS, PLOT_AXIS_LABELS);
xrects([210 1.0 2.0 0.35]', 0); // Break the curves
e=gce();
e.children.fill_mode="on";
The Scilab 5.2 latex feature could also help (to display a nice
+Infinity). Nevertheless if I use it on the x axis I have to use it on
the y axis (otherwise the fonts are different). Maybe there could be a
simple way to render all the text in a plot with JLatexMath...
Mathieu
More information about the users
mailing list