Menu

#2186 Autoranging doesn't work with linked axes

None
closed-fixed
nobody
None
2019-12-03
2019-07-15
dima
No

Hi.

I'm attaching a test case.

I'm creating a plot with the x2 and y2 axes linked linearly to the x and y axes using 'set link'. It appears that autoranging is currently badly broken when you do this. The x axes (x and x2) are autoranged correctly. But the y axes are not. Setting the y range manually with 'set range' (commented-out command in the attached script) makes it work.

Thanks!

1 Attachments

Discussion

  • dima

    dima - 2019-07-15

    I should say that a similar issue was reported previously: https://sourceforge.net/p/gnuplot/bugs/2186/

    The bug tracker says that this has been fixed, but I'm still seeing MY problem with latest gnuplot from git:

    commit 9cdef3d0362d2ea2e27248e4659fc083a86afa3e (HEAD -> master, github_gnuplot/master)
    Author: Ethan A Merritt merritt@u.washington.edu
    Date: Sat Jul 13 20:29:35 2019 -0700

    truncate_to_one_utf8_char:  This function was not acting as claimed.
    Now it is.
    Bugfix:  previously could not set pointtype to a >2 byte UTF8 sequence
    

    Thanks.

     
  • Ethan Merritt

    Ethan Merritt - 2019-07-16

    Earlier report was #1973. Or was there another one?

     
  • dima

    dima - 2019-07-16

    I accidentally pasted the wrong thing. Yes, 1973 is the other report I saw.

     
  • Ethan Merritt

    Ethan Merritt - 2019-07-17

    Kind of embarassing, really. The offending code was already labeled "FIXME: probably unneeded or wrong since adding reconcile_linked_axes" but the unit test that was supposed to test it (linked_autoscale.dem) didn't set up the right combination of axes to detect the error.

    Fixed now.

     
  • dima

    dima - 2019-07-17

    I just ran a test, and it works now. Thanks!!

     
  • Ethan Merritt

    Ethan Merritt - 2019-07-17
    • status: open --> pending-fixed
    • Group: -->
    • Priority: -->
     
  • Ethan Merritt

    Ethan Merritt - 2019-12-03
    • Status: pending-fixed --> closed-fixed
     

Log in to post a comment.