Discussion:
tic granularity
(too old to reply)
stan
2009-09-05 18:21:38 UTC
Permalink
Is there any way to adjust the tics on a graph? I know how to use the
axis command to change the overall scale limits, but I need to change
the number of tics. Let's say I have tics at 500 and the next tic is
1000. How can I add a 750 tic? There is some scaling going on behind the
scene and the values in the vector are not exactly 500 or 1000. So I'm
hoping there is some way to adjust the scaling some to show additional
tics. The existing plot has plenty of room to add additional tics at the
existing font and graph size.

Hope this is clear. I'm having a hard time describing this in words.

Thanks
Stan
Mario Baussmann
2009-09-07 06:00:30 UTC
Permalink
Hi Stan,

you can do it like this:
tics('y',[500:250:1000]);

and (for example):
tics('x',[1,10,100],{"one","ten","hundred"});

regards
Mario
Post by stan
Is there any way to adjust the tics on a graph? I know how to use the
axis command to change the overall scale limits, but I need to change
the number of tics. Let's say I have tics at 500 and the next tic is
1000. How can I add a 750 tic? There is some scaling going on behind the
scene and the values in the vector are not exactly 500 or 1000. So I'm
hoping there is some way to adjust the scaling some to show additional
tics. The existing plot has plenty of room to add additional tics at the
existing font and graph size.
Hope this is clear. I'm having a hard time describing this in words.
Thanks
Stan
stan
2009-09-07 22:02:44 UTC
Permalink
Post by Mario Baussmann
tics('y',[500:250:1000]);
tics('x',[1,10,100],{"one","ten","hundred"});
Post by stan
Is there any way to adjust the tics on a graph? I know how to use the
axis command to change the overall scale limits, but I need to change
the number of tics. Let's say I have tics at 500 and the next tic is
1000. How can I add a 750 tic? There is some scaling going on behind the
scene and the values in the vector are not exactly 500 or 1000. So I'm
hoping there is some way to adjust the scaling some to show additional
tics. The existing plot has plenty of room to add additional tics at the
existing font and graph size.
Thanks

Loading...