[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## How to set xtics in 2-D plot in Octave 3.0.0.0

**From**: |
Mr. E |

**Subject**: |
How to set xtics in 2-D plot in Octave 3.0.0.0 |

**Date**: |
Wed, 27 Feb 2008 02:46:34 -0800 (PST) |

I have been using the __gnuplot_set__ xtics command
for a long time to set non-uniform ticks on the x
axis, particularly handy in marking x-intercepts.
The new version of Octave 3.0.0.0 does not support
this method. Does anyone know how to do this?
here is a sample program that I have used for many
years to teach xtic setting:
xmin=0.0;
xmax=2*pi;
ymin=-1;
ymax=1;
deltax=(xmax-xmin)/200;
axis([xmin xmax ymin ymax]);
x=xmin:deltax:xmax;
y=sin(x);
plot(x,y)
__gnuplot_set__ xtics ( "Pi/2" pi/2, "Pi" pi, "3*Pi/2"
1.5*pi, "2*Pi" 2*pi )
plot(x,y)
thanks!
,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø
Please reply to address@hidden
google has good spam filtering!
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

**How to set xtics in 2-D plot in Octave 3.0.0.0**,
*Mr. E* **<=**