Question about GetAxisLabel
Posted: Mon Nov 06, 2006 6:31 pm
Hi,
I have a plot, I'm using automatic axes. When I don't do anything special, the X axis is neatly divided and I get major ticks at -8, -6, -4, -2 and 0. What I want to do now is to slightly modify these labels - say, replace "0" with "zero". So I'm subscribing to the GetAxisLabel event and making my label change there.
The problem is that as a result my automatic axis is putting the major ticks at different X locations. My guess is that it looks at the lengths of my new labels and rearranges everything. But that's precisely what I don't want!
Any hints on how to modify my labels in GetAxisLabel but without changing the default automatic locations of the major labels?
I have a plot, I'm using automatic axes. When I don't do anything special, the X axis is neatly divided and I get major ticks at -8, -6, -4, -2 and 0. What I want to do now is to slightly modify these labels - say, replace "0" with "zero". So I'm subscribing to the GetAxisLabel event and making my label change there.
The problem is that as a result my automatic axis is putting the major ticks at different X locations. My guess is that it looks at the lengths of my new labels and rearranges everything. But that's precisely what I don't want!
Any hints on how to modify my labels in GetAxisLabel but without changing the default automatic locations of the major labels?