Labeling the origin only once

  • Paul Peacock

    Paul Peacock - 2011-02-21

    Hi, I'm trying to tidy up the graphs I'm creating using gnuplot (using terminal epslatex). If the origin appears in a graph, it is labelled twice as '0' (once each on the horizontal and vertical axes). I'd like it labelled just once but I haven't been able to phrase my question correctly in Google to find an answer, and I'm fairly new to using gnuplot :)

  • Ethan Merritt

    Ethan Merritt - 2011-02-21

    One way is simply to force the label at 0 to be blank on one axis.
    For example
       set ytics add (" " 0)

  • Paul Peacock

    Paul Peacock - 2011-02-21

    Thanks, that put me on the right track.
    I added
    set xtic add(" " 0)
    set ytic add(" " 0)
    set label "0"  at first  -0.5, first  -0.5
    to my plot file, worked a treat.


Log in to post a comment.