In a 3d splot I am labeling the z axis with something like this:
set zlabel "Displacement, mm" rotate parallel
The default position of the axis label is sometimes on top of the tic labels, in which case I use offset to move the label further from the axis. Is there a way to get the tic labels? I tried show ztics, but that doesn't seem to give the tic labels when they are default labels. I just get "intervals computed automatically"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I want to get the ztic values so my code can determine how far to offset the axis label so it is not on top of the tic labels. I am generating the plot with code, not manually.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Getting the values wouldn't really help with that idea, either --- and you shouldn't even have to get those from anywhere, as they're already fully under your control if you choose them to be.
You would need the generated label strings, more precisely their width as displayed on-screen. Depending on what your output device is, that information may be hard to come by, or even impossible.
So in the end, you're almost certainly better off forward-controlling what goes onto the plot, instead of trying to backward-adapt.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In a 3d splot I am labeling the z axis with something like this:
set zlabel "Displacement, mm" rotate parallel
The default position of the axis label is sometimes on top of the tic labels, in which case I use offset to move the label further from the axis. Is there a way to get the tic labels? I tried show ztics, but that doesn't seem to give the tic labels when they are default labels. I just get "intervals computed automatically"
I think you'll have to explain more precisely what it is you're trying to "get" there.
I want to get the ztic values so my code can determine how far to offset the axis label so it is not on top of the tic labels. I am generating the plot with code, not manually.
Getting the values wouldn't really help with that idea, either --- and you shouldn't even have to get those from anywhere, as they're already fully under your control if you choose them to be.
You would need the generated label strings, more precisely their width as displayed on-screen. Depending on what your output device is, that information may be hard to come by, or even impossible.
So in the end, you're almost certainly better off forward-controlling what goes onto the plot, instead of trying to backward-adapt.
In auto mode, gnuplot does a great job of determining tic limits and tic intervals. Which source code file contains the logic that works this out?