Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e285dde

Browse filesBrowse files
authored
Merge pull request #14100 from anntzer/exampledocstring
Improve docstring of axes_zoom_effect example.
2 parents 8d487d8 + d069f50 commit e285dde
Copy full SHA for e285dde

File tree

1 file changed

+14
-9
lines changed
Filter options

1 file changed

+14
-9
lines changed

‎examples/subplots_axes_and_figures/axes_zoom_effect.py

Copy file name to clipboardExpand all lines: examples/subplots_axes_and_figures/axes_zoom_effect.py
+14-9Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
================
55
66
"""
7+
78
from matplotlib.transforms import (
89
Bbox, TransformedBbox, blended_transform_factory)
9-
1010
from mpl_toolkits.axes_grid1.inset_locator import (
1111
BboxPatch, BboxConnector, BboxConnectorPatch)
1212

@@ -39,14 +39,19 @@ def connect_bbox(bbox1, bbox2,
3939

4040
def zoom_effect01(ax1, ax2, xmin, xmax, **kwargs):
4141
"""
42-
ax1 : the main axes
43-
ax1 : the zoomed axes
44-
(xmin,xmax) : the limits of the colored area in both plot axes.
45-
46-
connect ax1 & ax2. The x-range of (xmin, xmax) in both axes will
47-
be marked. The keywords parameters will be used ti create
48-
patches.
49-
42+
Connect *ax1* and *ax2*. The *xmin*-to-*xmax* range in both axes will
43+
be marked.
44+
45+
Parameters
46+
----------
47+
ax1
48+
The main axes.
49+
ax2
50+
The zoomed axes.
51+
xmin, xmax
52+
The limits of the colored area in both plot axes.
53+
**kwargs
54+
Arguments passed to the patch constructor.
5055
"""
5156

5257
trans1 = blended_transform_factory(ax1.transData, ax1.transAxes)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.