Menu

#526 histeps and two y-axes

None
closed
nobody
None
5
2021-08-02
2021-07-30
No

One would like that "set style data histeps" applies to both y-axes of a plot. Example:

set style data histeps
set xrange [-1:10]
set yrange [-1:10]
set y2range [-1:10]
plot "examp" using ($1*2):2 axis x1y1, "examp" using ($1*2):3 axis x2y2

with file "examp" containing

1 2 2
2 3 3
3 4 4

should show the same line graph for both axis, not two different graphs.
(tested with 5.4. patchlevel 2)

Discussion

  • Ethan Merritt

    Ethan Merritt - 2021-07-30

    There is an error in your script.
    You either need to assign the same range to both x axes (set link x2 or set x2range[-1:10]) or you need to use the x1 axis for both plots:

      plot "examp" using ($1*2):2 axis x1y1, "examp" using ($1*2):3 axis x1y2
    
     
  • R. J. Mathar

    R. J. Mathar - 2021-08-02

    Yes, I understand. The ticket can be closed as resolved. An example of that kind would be nice in the manual..)

     
  • Ethan Merritt

    Ethan Merritt - 2021-08-02
    • status: open --> closed
    • Group: -->
     

Log in to post a comment.