#356 add x2ticks in splot (view map)


When splotting (even in view map mode) it is not possible to have x2ticks
Please execute the attached script
Thanks for the great work


  • Ethan Merritt

    Ethan Merritt - 2012-12-13

    Correct. It is not possible to use the x2 axis in splot.
    This is an intrinsic limitation in the way that gnuplot stores data points.

    However, there may be other ways to plot what you want.
    For example, it may not be necessary to use splot + set view map;
    the same plot may be achievable using the ordinary 2D plot command.
    Perhaps you could explain what exactly you are trying to show?

  • Ethan Merritt

    Ethan Merritt - 2014-01-12
    • status: open --> closed-out-of-date
    • Group: -->
  • Ethan Merritt

    Ethan Merritt - 2014-01-12

    Now supported in 4.7

  • ederag

    ederag - 2015-11-10

    It does not work with gnuplot 5.0.1 (the first plot yes, the second no. there is a pause between the two)

    gnuplot nox2tics_with_map_splot.plt
    this works as expected
    "nox2tics_with_map_splot.plt", line 15: Secondary axis must be linked to primary axis in order to draw tics 

    Is it a regression ?

  • Ethan Merritt

    Ethan Merritt - 2015-11-10

    The error message is telling you what you need to do in order to get the secondary axis tics.

    set link x2; set link y2
    splot ....

  • ederag

    ederag - 2015-11-10

    You are right, it works, thanks !
    I have been mislead by the documentation, which states set link x (the 2 is missing). It made sense since the x2 was linked to x. This is page 135 of the gnuplot 5.0.1 doc.

  • Ethan Merritt

    Ethan Merritt - 2015-11-11

    "set link x" works also. Same thing.

  • ederag

    ederag - 2015-11-11

    Indeed, it works for this example. Thanks again.
    Just got to figure out why it currently doesn't work with octave.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks