
Getting nice integer ticks

thomas_braun
I have a couple of graphs where I want to have integer x-axis ticks.
The code is pretty straight forward
Make/o data = p Display/k=1 data string graph = S_name ModifyGraph/w=$graph manTick(bottom)={0,1,0,0},manMinor(bottom)={0,50}
but this looks kind of ugly as the x ticks overlap. The x-axis is a running acquistion index.
So basically I would like to say something "Use a tick increment of 1 if the ticks don't overlap, a factor of 5/10 if not". I could not find a way to do that with IP7. The graphs are freely resizable by the user so I need a flexible solutions for different sizes.
Any suggestions?
February 20, 2018 at 01:40 pm - Permalink
Are you thinking about window event 8/"modified" here?
February 20, 2018 at 03:06 pm - Permalink
February 20, 2018 at 05:46 pm - Permalink
One little problem- if you make such a graph very narrow you get some peculiar choices of major ticks...
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
February 21, 2018 at 10:54 am - Permalink
Maybe you can use a user computed tick labels and values, like so:
w_labels
andw_values
can get updated on a graph resize event or axis range change.best,
_sk
February 22, 2018 at 12:59 am - Permalink