Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9a65ca3

Browse files
committed
Merged revisions 7727-7728,7734 via svnmerge from
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v0_99_maint ........ r7727 | ryanmay | 2009-09-09 14:41:43 -0400 (Wed, 09 Sep 2009) | 1 line Include 'top' keyword argument in docstring for Figure.subplots_adjust(). ........ r7728 | mdboom | 2009-09-09 15:55:52 -0400 (Wed, 09 Sep 2009) | 2 lines Fix some documentation warnings. ........ r7734 | leejjoon | 2009-09-10 19:01:28 -0400 (Thu, 10 Sep 2009) | 1 line fix a bug in Line2D.draw method that produces invalid svg when the line is invisible ........ svn path=/trunk/matplotlib/; revision=7735
1 parent 1227893 commit 9a65ca3

9 files changed

Lines changed: 146 additions & 72 deletions

File tree

doc/api/spine_api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ matplotlib spine
66
:mod:`matplotlib.spine`
77
========================
88

9-
.. automodule:: matplotlib.spine
9+
.. automodule:: matplotlib.spines
1010
:members:
1111
:undoc-members:
1212
:show-inheritance:

doc/mpl_toolkits/mplot3d/tutorial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Filled contour plots
5555

5656
Polygon plots
5757
====================
58-
.. automethod:: add_collection3d
58+
.. automethod:: Axes3D.add_collection3d
5959

6060
.. plot:: mpl_examples/mplot3d/polys3d_demo.py
6161

doc/users/image_tutorial.rst

Lines changed: 122 additions & 49 deletions
Large diffs are not rendered by default.

doc/users/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ User's Guide
2323
artists.rst
2424
legend_guide.rst
2525
event_handling.rst
26-
legend.rst
2726
transforms_tutorial.rst
2827
path_tutorial.rst
2928
annotations_guide.rst

doc/users/pyplot_tutorial.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -165,17 +165,17 @@ The :func:`~matplotlib.pyplot.figure` command here is optional because
165165
``figure(1)`` will be created by default, just as a ``subplot(111)``
166166
will be created by default if you don't manually specify an axes. The
167167
:func:`~matplotlib.pyplot.subplot` command specifies ``numrows,
168-
numcols, fignum`` where ``fignum`` ranges from 1 to
169-
``numrows*numcols``. The commas in the ``subplot`` command are optional
170-
if ``numrows*numcols<10``. So ``subplot(211)`` is identical to
171-
``subplot(2,1,1)``. You can create an arbitrary number of subplots
168+
numcols, fignum`` where ``fignum`` ranges from 1 to
169+
``numrows*numcols``. The commas in the ``subplot`` command are
170+
optional if ``numrows*numcols<10``. So ``subplot(211)`` is identical
171+
to ``subplot(2,1,1)``. You can create an arbitrary number of subplots
172172
and axes. If you want to place an axes manually, ie, not on a
173173
rectangular grid, use the :func:`~matplotlib.pyplot.axes` command,
174174
which allows you to specify the location as ``axes([left, bottom,
175175
width, height])`` where all values are in fractional (0 to 1)
176176
coordinates. See :ref:`pylab_examples-axes_demo` for an example of
177-
placing axes manually and :ref:`pylab_examples-line_styles` for an example
178-
with lots-o-subplots.
177+
placing axes manually and :ref:`pylab_examples-line_styles` for an
178+
example with lots-o-subplots.
179179

180180

181181
You can create multiple figures by using multiple
@@ -267,6 +267,6 @@ these arguments are ``(x,y)`` tuples.
267267
In this basic example, both the ``xy`` (arrow tip) and ``xytext``
268268
locations (text location) are in data coordinates. There are a
269269
variety of other coordinate systems one can choose -- see
270-
:ref:`annotations-tutorial` and :ref:`plotting-guide-annotation`
271-
for details. More examples can be found
272-
in :ref:`pylab_examples-annotation_demo`.
270+
:ref:`annotations-tutorial` and :ref:`plotting-guide-annotation` for
271+
details. More examples can be found in
272+
:ref:`pylab_examples-annotation_demo`.

lib/matplotlib/axes.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ def has_data(self):
13601360

13611361
def add_artist(self, a):
13621362
'''
1363-
Add any :class:`~matplotlib.artist.Artist` to the axes
1363+
Add any :class:`~matplotlib.artist.Artist` to the axes.
13641364
13651365
Returns the artist.
13661366
'''
@@ -1373,8 +1373,8 @@ def add_artist(self, a):
13731373

13741374
def add_collection(self, collection, autolim=True):
13751375
'''
1376-
add a :class:`~matplotlib.collections.Collection` instance
1377-
to the axes
1376+
Add a :class:`~matplotlib.collections.Collection` instance
1377+
to the axes.
13781378
13791379
Returns the collection.
13801380
'''
@@ -3675,15 +3675,15 @@ def acorr(self, x, **kwargs):
36753675
36763676
*maxlags* is a positive integer detailing the number of lags
36773677
to show. The default value of *None* will return all
3678-
:math:`2 \mathrm{len}(x) - 1` lags.
3678+
:math:`2 \times \mathrm{len}(x) - 1` lags.
36793679
36803680
The return value is a tuple (*lags*, *c*, *linecol*, *b*)
36813681
where
36823682
3683-
- *linecol* is the
3684-
:class:`~matplotlib.collections.LineCollection`
3683+
- *linecol* is the
3684+
:class:`~matplotlib.collections.LineCollection`
36853685
3686-
- *b* is the *x*-axis.
3686+
- *b* is the *x*-axis.
36873687
36883688
.. seealso::
36893689

lib/matplotlib/figure.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,8 @@ def on_changed(m):
10781078

10791079
def subplots_adjust(self, *args, **kwargs):
10801080
"""
1081-
fig.subplots_adjust(left=None, bottom=None, right=None, wspace=None, hspace=None)
1081+
fig.subplots_adjust(left=None, bottom=None, right=None, top=None,
1082+
wspace=None, hspace=None)
10821083
10831084
Update the :class:`SubplotParams` with *kwargs* (defaulting to rc where
10841085
None) and update the subplot locations

lib/matplotlib/lines.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,9 +499,10 @@ def draw(self, renderer):
499499
self._transform_path(subslice)
500500
if self._transformed_path is None:
501501
self._transform_path()
502-
renderer.open_group('line2d', self.get_gid())
503502

504-
if not self._visible: return
503+
if not self.get_visible(): return
504+
505+
renderer.open_group('line2d', self.get_gid())
505506
gc = renderer.new_gc()
506507
self._set_gc_clip(gc)
507508

lib/matplotlib/mlab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ def cohere_pairs( X, ij, NFFT=256, Fs=2, detrend=detrend_none,
565565
example script that shows that this :func:`cohere_pairs` and
566566
:func:`cohere` give the same results for a given pair.
567567
568-
.. sealso::
568+
.. seealso::
569569
570570
:func:`psd`
571571
For information about the methods used to compute

0 commit comments

Comments
 (0)