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

Sign up
Appearance settings

Commit 3a4241c

Browse files
committed
Avoid changing things unneccesarily.
1 parent 8a3bdfc commit 3a4241c

File tree

5 files changed

+3
-15
lines changed

5 files changed

+3
-15
lines changed

‎lib/matplotlib/axes.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3514,9 +3514,7 @@ def axhspan(self, ymin, ymax, xmin=0, xmax=1, **kwargs):
35143514
* draw a gray rectangle from *y* = 0.25-0.75 that spans the
35153515
horizontal extent of the axes::
35163516
3517-
# draw a gray rectangle from *y* = 0.25-0.75 that spans the
3518-
# horizontal extent of the axes
3519-
axhspan(0.25, 0.75, facecolor='0.5', alpha=0.5)
3517+
>>> axhspan(0.25, 0.75, facecolor='0.5', alpha=0.5)
35203518
35213519
Valid kwargs are :class:`~matplotlib.patches.Polygon` properties:
35223520
@@ -3572,9 +3570,7 @@ def axvspan(self, xmin, xmax, ymin=0, ymax=1, **kwargs):
35723570
* draw a vertical green translucent rectangle from x=1.25 to 1.55 that
35733571
spans the yrange of the axes::
35743572
3575-
# draw a vertical green translucent rectangle from x=1.25 to 1.55
3576-
# that spans the yrange of the axes
3577-
axvspan(1.25, 1.55, facecolor='g', alpha=0.5)
3573+
>>> axvspan(1.25, 1.55, facecolor='g', alpha=0.5)
35783574
35793575
Valid kwargs are :class:`~matplotlib.patches.Polygon`
35803576
properties:

‎lib/matplotlib/projections/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,7 @@ def process_projection_requirements(figure, *args, **kwargs):
111111
projection = 'polar'
112112

113113
# ensure that the resolution keyword is always put into the key
114-
# for polar plots [so that the result of
115-
# plt.subplot(111, projection='polar') can be found with
116-
# plt.gca(projection='polar', resolution=1)]
114+
# for polar plots
117115
if projection == 'polar':
118116
kwargs.setdefault('resolution', 1)
119117

‎lib/matplotlib/projections/polar.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ def __init__(self, *args, **kwargs):
229229
each pair of data points. Set to 1 to disable
230230
interpolation.
231231
"""
232-
self._rpad = 0.05
233232
self.resolution = kwargs.pop('resolution', 1)
234233
self._default_theta_offset = kwargs.pop('theta_offset', 0)
235234
self._default_theta_direction = kwargs.pop('theta_direction', 1)

‎lib/matplotlib/tests/test_axes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,6 @@ def test_scatter_plot():
713713
ax = plt.axes()
714714
ax.scatter([3, 4, 2, 6], [2, 5, 2, 3], c=['r', 'y', 'b', 'lime'], s=[24, 15, 19, 29])
715715

716-
717716
def test_as_mpl_axes_api():
718717
# tests the _as_mpl_axes api
719718
from matplotlib.projections.polar import PolarAxes

‎lib/matplotlib/tests/test_tightlayout.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,3 @@ def test_tight_layout6():
121121
None, 1 - (gs2.top-top)],
122122
h_pad=0.5)
123123

124-
125-
if __name__=='__main__':
126-
import nose
127-
nose.runmodule(argv=['-s','--with-doctest'], exit=False)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /