thegooglecodearchive / guiqwt

Automatically exported from code.google.com/p/guiqwt
Other
0 stars 0 forks source link

ImagePlot ignores lock_aspect_ratio when zooming (and possibly under other circumstances) #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run image.py from the tests.run()
2. Verify that Apect Ratio is set to locked (right-click on image etc)
3. Zoom to an area of aspect ratio different from the one you're currently 
viewing, e.g. 'very' rectangular

What is the expected output? What do you see instead?
It should zoom in maybe taking the longer of the two sides of the zoom 
rectangle as an indication for the desired zoom factor *but* maintain the 
aspect ratio. Instead, it will zoom to the area asked for ignoring the current 
aspect ratio. The behaviour is deterministic but not what I expect - maybe it's 
me? One can go back to the desired aspect ratio by right clicking, Aspect 
Ratio/Edit.../OK and pressing OK. 

What version of the product are you using? On what operating system?
guiqwt __version__ = '2.0.8.1' on ubuntu

Please provide any additional information below.
Bizarrely, even on first startup the aspect ratio has been fiddle with and 
comes up as 0.972 (current) rather than 1.

Original issue reported on code.google.com by stefan.r...@gmail.com on 7 Apr 2011 at 10:11

GoogleCodeExporter commented 9 years ago
confirmed in version 2.1.0 as well. I just realized Pierre had updated this 
recently so I upgraded and tried again. Man - I'm constantly in awe with 
Pierre's output. First I discovered spyder and now guiqwt, exactly what the 
doctor ordered... Thanks for all your good work.

Original comment by stefan.r...@gmail.com on 7 Apr 2011 at 10:27

GoogleCodeExporter commented 9 years ago
Thanks a lot for your encouragements!

Regarding this aspect ratio issue, this is related to a design defect in guiqwt 
regarding ImagePlot/CurvePlot zoom/plot limits management.
This is being taking care of and a fix will probably be available soon (not in 
the next release though).

Original comment by pierre.raybaut on 11 Apr 2011 at 7:47