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 9d30685

Browse filesBrowse files
committed
DOC: move usage tutorial info to Users guide rst [skip actions] [skip azp] [skip appveyor]
1 parent 4fcc5b1 commit 9d30685
Copy full SHA for 9d30685

File tree

Expand file treeCollapse file tree

5 files changed

+8
-14
lines changed
Filter options
Expand file treeCollapse file tree

5 files changed

+8
-14
lines changed

‎doc/users/getting_started.rst

Copy file name to clipboardExpand all lines: doc/users/getting_started.rst
+3-8Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,9 @@ Installation
2222
2323
conda install matplotlib
2424
25-
Further details are available in the :doc:`Installation Guide </users/installing>`.
26-
27-
Choosing a backend
28-
------------------
29-
30-
Matplotlib needs a "backend" to render your figure, either in its own GUI window,
31-
as part of a notebook, or saved as an image to disk. If you need more information on
32-
choosing a backend, see :ref:`backends`.
25+
Further details are available in the :doc:`Installation Guide </users/installing>`. If a
26+
plot does not show up, we probably could not automatically find an appropriate backend; please
27+
check :ref:`troubleshooting-faq`.
3328

3429
Draw a first plot
3530
-----------------

‎lib/matplotlib/artist.py

Copy file name to clipboardExpand all lines: lib/matplotlib/artist.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def stale(self, val):
300300
if val and self.stale_callback is not None:
301301
self.stale_callback(self, val)
302302

303-
def get_window_extent(self, renderer):
303+
def get_window_extent(self, renderer=None):
304304
"""
305305
Get the axes bounding box in display space.
306306

‎lib/matplotlib/collections.py

Copy file name to clipboardExpand all lines: lib/matplotlib/collections.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def get_datalim(self, transData):
303303
return bbox
304304
return transforms.Bbox.null()
305305

306-
def get_window_extent(self, renderer):
306+
def get_window_extent(self, renderer=None):
307307
# TODO: check to ensure that this does not fail for
308308
# cases other than scatter plot legend
309309
return self.get_datalim(transforms.IdentityTransform())

‎lib/matplotlib/image.py

Copy file name to clipboardExpand all lines: lib/matplotlib/image.py
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,12 +1409,11 @@ def __init__(self, bbox,
14091409
self.bbox = bbox
14101410

14111411
def get_window_extent(self, renderer=None):
1412-
if renderer is None:
1413-
renderer = self.get_figure()._cachedRenderer
1414-
14151412
if isinstance(self.bbox, BboxBase):
14161413
return self.bbox
14171414
elif callable(self.bbox):
1415+
if renderer is None:
1416+
renderer = self.get_figure()._cachedRenderer
14181417
return self.bbox(renderer)
14191418
else:
14201419
raise ValueError("Unknown type of bbox")

‎lib/matplotlib/lines.py

Copy file name to clipboardExpand all lines: lib/matplotlib/lines.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ def set_picker(self, p):
619619
self.pickradius = p
620620
self._picker = p
621621

622-
def get_window_extent(self, renderer):
622+
def get_window_extent(self, renderer=None):
623623
bbox = Bbox([[0, 0], [0, 0]])
624624
trans_data_to_xy = self.get_transform().transform
625625
bbox.update_from_data_xy(trans_data_to_xy(self.get_xydata()),

0 commit comments

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