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