Skip to content

Navigation Menu

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 e5ad7fc

Browse filesBrowse files
rcomerstory645QuLogic
authored
Apply suggestions from code review
Co-authored-by: hannah <story645@gmail.com> Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 parent 143a228 commit e5ad7fc
Copy full SHA for e5ad7fc

File tree

2 files changed

+5
-3
lines changed
Filter options

2 files changed

+5
-3
lines changed

‎doc/users/next_whats_new/inset_indicator.rst

Copy file name to clipboardExpand all lines: doc/users/next_whats_new/inset_indicator.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ connector patches. These patches now update automatically so that
1010
ax.indicate_inset_zoom(ax_inset)
1111
ax_inset.set_xlim(new_lim)
1212
13-
gives the same result as
13+
now gives the same result as
1414

1515
.. code-block:: python
1616

‎lib/matplotlib/inset.py

Copy file name to clipboardExpand all lines: lib/matplotlib/inset.py
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,13 @@ def __init__(self, bounds=None, inset_ax=None, zorder=None, **kwargs):
4848
raise ValueError("At least one of bounds or inset_ax must be supplied")
4949

5050
self._inset_ax = inset_ax
51-
self._auto_update_bounds = False
51+
5252
if bounds is None:
5353
# Work out bounds from inset_ax
5454
self._auto_update_bounds = True
5555
bounds = self._bounds_from_inset_ax()
56+
else:
57+
self._auto_update_bounds = False
5658
x, y, width, height = bounds
5759

5860
self._rectangle = Rectangle((x, y), width, height, clip_on=False, **kwargs)
@@ -204,7 +206,7 @@ def rectangle(self):
204206
@property
205207
def connectors(self):
206208
"""
207-
4-tuple of `.patches.ConnectionPatch`
209+
4-tuple of `.patches.ConnectionPatch` or None
208210
The four connector lines connecting to (lower_left, upper_left,
209211
lower_right upper_right) corners of *inset_ax*. Two lines are
210212
set with visibility to *False*, but the user can set the

0 commit comments

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