Strange behaviour for zooming.

Hi ,

I have to build custom tool bar with a single button which zooms-in /zooms- out. I did by setting new limit with and I redraw the figure. I used to work in Axes coordinate system instead of data coordinate system. when I have to zoom I convert axes points to data coordinate system and set new limit and I redraw the figure. When I used to execute in terminal it works fine. But when I embedd the same thing in qt using PyQt, strange behaviour comes. Please rectify my problem.

With Thanks
Sathish

code for posting (4.22 KB)

Hi ,

I have to build custom tool bar with a single button which zooms-in /zooms- out. I did by setting new limit with and I redraw the figure. I used to work in Axes coordinate system instead of data coordinate system. when I have to zoom I convert axes points to data coordinate system and set new limit and I redraw the figure. When I used to execute in terminal it works fine. But when I embedd the same thing in qt using PyQt, strange behaviour comes. Please rectify my problem.

With Thanks
Sathish

code for posting (4.22 KB)