spidersaint / dicompyler

Automatically exported from code.google.com/p/dicompyler
1 stars 0 forks source link

Sliding DVH constraint while zoomed in causes zoom-out. #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open a DVH and zoom in on a region.
2. Slide the dose constraint.

What is the expected output? What do you see instead?
Slider should move along zoomed in plot curve. Instead the plot zooms out
to original zoom level and slides.

What version of the product are you using? On what operating system?
24 Nov.2009 (Revision b8ff08c1a7). Ubuntu 8.04, wxPython 2.8.7.1, wxmpl
1.2.9, matplotlib 0.91.2

This is probably a matplotlib or wxmpl issue.

Original issue reported on code.google.com by roy.coding@gmail.com on 24 Nov 2009 at 11:18

GoogleCodeExporter commented 9 years ago
It looks like this behavior is due to the fact that each time the constraint is 
moved
(OnChangeConstraint in main.py) it calls Replot in guidvh.py, which in turn 
calls
axes.cla(), clearing the axis before replotting and thus losing the zoom level.

One fix might be to pass the current x and y limits to Replot. This might have 
the
unfortunate side effect of locking the user into that zoom level though...

Will continue to look into this.

Original comment by roy.coding@gmail.com on 11 Feb 2010 at 7:54