@@ -393,7 +393,6 @@ def legend(self, *args, **kwargs):
393
393
--------
394
394
395
395
.. plot:: gallery/text_labels_and_annotations/legend.py
396
-
397
396
"""
398
397
handles , labels , extra_args , kwargs = mlegend ._parse_legend_args (
399
398
[self ],
@@ -645,15 +644,12 @@ def secondary_xaxis(self, location, *, functions=None, **kwargs):
645
644
ax.loglog(range(1, 360, 5), range(1, 360, 5))
646
645
ax.set_xlabel('frequency [Hz]')
647
646
648
-
649
647
def invert(x):
650
648
return 1 / x
651
649
652
650
secax = ax.secondary_xaxis('top', functions=(invert, invert))
653
651
secax.set_xlabel('Period [s]')
654
652
plt.show()
655
-
656
-
657
653
"""
658
654
if (location in ['top' , 'bottom' ] or isinstance (location , Number )):
659
655
secondary_ax = SecondaryAxis (self , 'x' , location , functions ,
@@ -686,7 +682,6 @@ def secondary_yaxis(self, location, *, functions=None, **kwargs):
686
682
secax = ax.secondary_yaxis('right', functions=(np.deg2rad,
687
683
np.rad2deg))
688
684
secax.set_ylabel('radians')
689
-
690
685
"""
691
686
if location in ['left' , 'right' ] or isinstance (location , Number ):
692
687
secondary_ax = SecondaryAxis (self , 'y' , location ,
@@ -845,7 +840,6 @@ def axhline(self, y=0, xmin=0, xmax=1, **kwargs):
845
840
the xrange::
846
841
847
842
>>> axhline(y=.5, xmin=0.25, xmax=0.75)
848
-
849
843
"""
850
844
if "transform" in kwargs :
851
845
raise ValueError (
@@ -1714,15 +1708,13 @@ def plot_date(self, x, y, fmt='o', tz=None, xdate=True, ydate=False,
1714
1708
1715
1709
%(_Line2D_docstr)s
1716
1710
1717
-
1718
1711
See Also
1719
1712
--------
1720
1713
matplotlib.dates : Helper functions on dates.
1721
1714
matplotlib.dates.date2num : Convert dates to num.
1722
1715
matplotlib.dates.num2date : Convert num to dates.
1723
1716
matplotlib.dates.drange : Create an equally spaced sequence of dates.
1724
1717
1725
-
1726
1718
Notes
1727
1719
-----
1728
1720
If you are using custom date tickers and formatters, it may be
@@ -2294,7 +2286,6 @@ def bar(self, x, height, width=0.8, bottom=None, *, align="center",
2294
2286
Other optional kwargs:
2295
2287
2296
2288
%(Rectangle)s
2297
-
2298
2289
"""
2299
2290
kwargs = cbook .normalize_kwargs (kwargs , mpatches .Patch )
2300
2291
color = kwargs .pop ('color' , None )
@@ -2588,7 +2579,6 @@ def barh(self, y, width, height=0.8, left=None, *, align="center",
2588
2579
Other optional kwargs:
2589
2580
2590
2581
%(Rectangle)s
2591
-
2592
2582
"""
2593
2583
kwargs .setdefault ('orientation' , 'horizontal' )
2594
2584
patches = self .bar (x = left , height = height , width = width , bottom = y ,
@@ -3203,7 +3193,6 @@ def errorbar(self, x, y, yerr=None, xerr=None,
3203
3193
Valid kwargs for the marker properties are `.Lines2D` properties:
3204
3194
3205
3195
%(_Line2D_docstr)s
3206
-
3207
3196
"""
3208
3197
kwargs = cbook .normalize_kwargs (kwargs , mlines .Line2D )
3209
3198
# anything that comes in as 'None', drop so the default thing
@@ -4642,7 +4631,6 @@ def hexbin(self, x, y, C=None, gridsize=100, bins=None,
4642
4631
:class:`~matplotlib.collections.Collection` parameters:
4643
4632
4644
4633
%(Collection)s
4645
-
4646
4634
"""
4647
4635
self ._process_unit_info (xdata = x , ydata = y , kwargs = kwargs )
4648
4636
@@ -6059,7 +6047,6 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
6059
6047
6060
6048
%(QuadMesh)s
6061
6049
6062
-
6063
6050
See Also
6064
6051
--------
6065
6052
pcolor : An alternative implementation with slightly different
0 commit comments