Menu

how to get ztics labels

Help
2017-05-14
2017-05-14
  • Brian Murphy

    Brian Murphy - 2017-05-14

    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"

     
  • Hans-Bernhard Broeker

    Is there a way to get the tic labels?

    I think you'll have to explain more precisely what it is you're trying to "get" there.

     
  • Brian Murphy

    Brian Murphy - 2017-05-14

    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.

     
    • Hans-Bernhard Broeker

      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.

       
  • Brian Murphy

    Brian Murphy - 2017-06-15

    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?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.