#114 y2tics messed up scale

closed-works-for-me
2D plot (258)
5
2003-09-13
2003-08-18
No

set y2tics
plot [-1:1] [0:37] 'data'

'data':
0 30

Using gnuplot-3.8j.0 tarball this gives different scales on y
and y2 axes.

There must be something magic about the numbers 30 and
37 because for other numbers there's no such problem!

Discussion

  • Hans-Bernhard Broeker

    Logged In: YES
    user_id=27517

    You'ld be better off specifying the y range in a separate
    statement, in this case, instead of inside the plot command:

    set y2tics
    set yrange [0:37]
    plot [-1:1] 30

    Or you can use the 'y2fix' option to prevent the automatic
    extension of autoscaled axes to "nice" endpoints done by
    gnuplot from happening.

     
  • Hans-Bernhard Broeker

    • assigned_to: nobody --> broeker
    • status: open --> closed-invalid
     
  • Christian Stork

    Christian Stork - 2003-08-18

    Logged In: YES
    user_id=23468

    I tried your

    set y2tics
    set yrange [0:37]
    plot [-1:1] 30

    and the scales are still off.

    How do I use the y2fix option? I couldn't find any documentation
    on it and some naive experiments didn't yield any results.

     
  • Christian Stork

    Christian Stork - 2003-08-18
    • labels: --> 2D plot
    • status: closed-invalid --> open-invalid
     
  • Hans-Bernhard Broeker

    Logged In: YES
    user_id=27517

    'y2fix' is an option in the 'set autoscale' command, and should
    do exactly what you're looking for.

     
  • Hans-Bernhard Broeker

    • status: open-invalid --> closed-works-for-me
     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks