straditize.magnifier module¶
Magnifier class for an image
Disclaimer
Copyright (C) 2018-2019 Philipp S. Sommer
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
Classes
|
A magnification of a matplotlib axes |
-
class
straditize.magnifier.Magnifier(ax_src, ax=None, *args, **kwargs)[source]¶ Bases:
objectA magnification of a matplotlib axes
It zooms into the region where the mouse pointer is, when it enters the source axes. The appearance of the plot is defined by the
make_plot()method.Methods
adjust_limits(zoom_val)close()Close the magnifier and the associated plots
make_plot(image, *args, **kwargs)onenter(event)onleave(event)onmotion(event)Attributes
-
ax= None¶
-
cid_enter= None¶
-
cid_leave= None¶
-
cid_motion= None¶
-
property
dx¶
-
property
dy¶
-