@@ -1422,7 +1422,7 @@ def plot(self, *args, **kwargs):
1422
1422
Returns
1423
1423
-------
1424
1424
lines
1425
- A list of `.Line2D` objects that were added .
1425
+ A list of `.Line2D` objects representing the plotted data .
1426
1426
1427
1427
1428
1428
See Also
@@ -1565,7 +1565,7 @@ def plot_date(self, x, y, fmt='o', tz=None, xdate=True, ydate=False,
1565
1565
Returns
1566
1566
-------
1567
1567
lines
1568
- A list of `.Line2D` objects that were added to the axes .
1568
+ A list of `~ .Line2D` objects representing the plotted data .
1569
1569
1570
1570
1571
1571
Other Parameters
@@ -1614,36 +1614,45 @@ def plot_date(self, x, y, fmt='o', tz=None, xdate=True, ydate=False,
1614
1614
@docstring .dedent_interpd
1615
1615
def loglog (self , * args , ** kwargs ):
1616
1616
"""
1617
- Make a plot with log scaling on both the *x* and *y* axis.
1617
+ Make a plot with log scaling on both the x and y axis.
1618
+
1619
+ Call signatures::
1618
1620
1619
- :func:`~matplotlib.pyplot.loglog` supports all the keyword
1620
- arguments of :func:`~matplotlib.pyplot.plot` and
1621
- :meth:`matplotlib.axes.Axes.set_xscale` /
1622
- :meth:`matplotlib.axes.Axes.set_yscale`.
1621
+ loglog([x], y, [fmt], data=None, **kwargs)
1622
+ loglog([x], y, [fmt], [x2], y2, [fmt2], ..., **kwargs)
1623
+
1624
+ This is just a thin wrapper around `.plot` which additionally changes
1625
+ both the x-axis and the y-axis to log scaling. All of the concepts and
1626
+ parameters of plot can be used here as well.
1627
+
1628
+ The additional parameters *basex/y*, *subsx/y* and *nonposx/y* control
1629
+ the x/y-axis properties. They are just forwarded to `.Axes.set_xscale`
1630
+ and `.Axes.set_yscale`.
1623
1631
1624
1632
Parameters
1625
1633
----------
1626
- basex, basey : scalar
1627
- Base of the x/y logarithm. Must be > 1.
1634
+ basex, basey : scalar, optional, default 10
1635
+ Base of the x/y logarithm.
1628
1636
1629
- subsx, subsy : sequence
1630
- The location of the minor x/y ticks; ``None`` defaults to autosubs,
1631
- which depend on the number of decades in the plot;
1632
- see :meth:`matplotlib.axes.Axes.set_xscale` /
1633
- :meth:`matplotlib.axes .Axes.set_yscale` for details.
1637
+ subsx, subsy : sequence, optional
1638
+ The location of the minor x/y ticks. If *None*, reasonable
1639
+ locations are automatically chosen depending on the number of
1640
+ decades in the plot.
1641
+ See `.Axes.set_xscale` / ` .Axes.set_yscale` for details.
1634
1642
1635
- nonposx, nonposy : [ 'mask' | 'clip' ]
1643
+ nonposx, nonposy : { 'mask', 'clip'}, optional, default 'mask'
1636
1644
Non-positive values in x or y can be masked as invalid, or clipped
1637
1645
to a very small positive number.
1638
1646
1647
+ Returns
1648
+ -------
1649
+ lines
1650
+ A list of `~.Line2D` objects representing the plotted data.
1651
+
1639
1652
Other Parameters
1640
1653
----------------
1641
- **kwargs :
1642
- The remaining valid kwargs are :class:`~matplotlib.lines.Line2D`
1643
- properties:
1644
-
1645
- %(Line2D)s
1646
-
1654
+ **kwargs
1655
+ All parameters supported by `.plot`.
1647
1656
"""
1648
1657
if not self ._hold :
1649
1658
self .cla ()
@@ -1669,39 +1678,41 @@ def semilogx(self, *args, **kwargs):
1669
1678
"""
1670
1679
Make a plot with log scaling on the x axis.
1671
1680
1681
+ Call signatures::
1682
+
1683
+ semilogx([x], y, [fmt], data=None, **kwargs)
1684
+ semilogx([x], y, [fmt], [x2], y2, [fmt2], ..., **kwargs)
1685
+
1686
+ This is just a thin wrapper around `.plot` which additionally changes
1687
+ the x-axis to log scaling. All of the concepts and parameters of plot
1688
+ can be used here as well.
1689
+
1690
+ The additional parameters *basex*, *subsx* and *nonposx* control the
1691
+ x-axis properties. They are just forwarded to `.Axes.set_xscale`.
1692
+
1672
1693
Parameters
1673
1694
----------
1674
- basex : float , optional
1675
- Base of the x logarithm. The scalar should be larger than 1.
1695
+ basex : scalar , optional, default 10
1696
+ Base of the x logarithm.
1676
1697
1677
1698
subsx : array_like, optional
1678
- The location of the minor xticks; ``None`` defaults to
1679
- autosubs, which depend on the number of decades in the
1680
- plot; see :meth:`~matplotlib.axes.Axes.set_xscale` for
1681
- details.
1699
+ The location of the minor xticks. If *None*, reasonable locations
1700
+ are automatically chosen depending on the number of decades in the
1701
+ plot. See `.Axes.set_xscale` for details.
1682
1702
1683
- nonposx : string, optional, {'mask', 'clip'}
1684
- Non-positive values in x can be masked as
1685
- invalid, or clipped to a very small positive number.
1703
+ nonposx : {'mask', 'clip'}, optional, default 'mask'
1704
+ Non-positive values in x can be masked as invalid, or clipped to a
1705
+ very small positive number.
1686
1706
1687
1707
Returns
1688
1708
-------
1689
- `~matplotlib.pyplot.plot`
1690
- Log-scaled plot on the x axis .
1709
+ lines
1710
+ A list of `~.Line2D` objects representing the plotted data .
1691
1711
1692
1712
Other Parameters
1693
1713
----------------
1694
- **kwargs :
1695
- Keyword arguments control the :class:`~matplotlib.lines.Line2D`
1696
- properties:
1697
-
1698
- %(Line2D)s
1699
-
1700
- Notes
1701
- -----
1702
- This function supports all the keyword arguments of
1703
- :func:`~matplotlib.pyplot.plot` and
1704
- :meth:`matplotlib.axes.Axes.set_xscale`.
1714
+ **kwargs
1715
+ All parameters supported by `.plot`.
1705
1716
"""
1706
1717
if not self ._hold :
1707
1718
self .cla ()
@@ -1721,41 +1732,42 @@ def semilogy(self, *args, **kwargs):
1721
1732
"""
1722
1733
Make a plot with log scaling on the y axis.
1723
1734
1735
+ Call signatures::
1736
+
1737
+ semilogy([x], y, [fmt], data=None, **kwargs)
1738
+ semilogy([x], y, [fmt], [x2], y2, [fmt2], ..., **kwargs)
1739
+
1740
+ This is just a thin wrapper around `.plot` which additionally changes
1741
+ the y-axis to log scaling. All of the concepts and parameters of plot
1742
+ can be used here as well.
1743
+
1744
+ The additional parameters *basey*, *subsy* and *nonposy* control the
1745
+ y-axis properties. They are just forwarded to `.Axes.set_yscale`.
1746
+
1724
1747
Parameters
1725
1748
----------
1726
- basey : float , optional
1727
- Base of the y logarithm. The scalar should be larger than 1.
1749
+ basey : scalar , optional, default 10
1750
+ Base of the y logarithm.
1728
1751
1729
1752
subsy : array_like, optional
1730
- The location of the minor yticks; ``None`` defaults to
1731
- autosubs, which depend on the number of decades in the
1732
- plot; see :meth:`~matplotlib.axes.Axes.set_yscale` for
1733
- details.
1753
+ The location of the minor yticks. If *None*, reasonable locations
1754
+ are automatically chosen depending on the number of decades in the
1755
+ plot. See `.Axes.set_yscale` for details.
1734
1756
1735
- nonposy : string, optional, {'mask', 'clip'}
1736
- Non-positive values in *y* can be masked as
1737
- invalid, or clipped to a very small positive number.
1757
+ nonposy : {'mask', 'clip'}, optional, default 'mask'
1758
+ Non-positive values in y can be masked as invalid, or clipped to a
1759
+ very small positive number.
1738
1760
1739
1761
Returns
1740
1762
-------
1741
- `~matplotlib.pyplot.plot`
1742
- Log-scaled plot on the *y* axis .
1763
+ lines
1764
+ A list of `~.Line2D` objects representing the plotted data .
1743
1765
1744
1766
Other Parameters
1745
1767
----------------
1746
- **kwargs :
1747
- Keyword arguments control the :class:`~matplotlib.lines.Line2D`
1748
- properties:
1749
-
1750
- %(Line2D)s
1751
-
1752
- Notes
1753
- -----
1754
- This function supports all the keyword arguments of
1755
- :func:`~matplotlib.pyplot.plot` and
1756
- :meth:`matplotlib.axes.Axes.set_yscale`.
1768
+ **kwargs
1769
+ All parameters supported by `.plot`.
1757
1770
"""
1758
-
1759
1771
if not self ._hold :
1760
1772
self .cla ()
1761
1773
d = {k : kwargs .pop (k ) for k in ['basey' , 'subsy' , 'nonposy' ]
0 commit comments