6
6
The majority of them, however, have matlab analogs
7
7
8
8
_Plotting commands
9
+ acorr - plot the autocorrelation function
9
10
annotate - annotate something in the figure
10
11
arrow - add an arrow to the axes
11
12
axes - Create a new axes
79
80
table - add a table to the plot
80
81
text - add some text at location x,y to the current axes
81
82
thetagrids - customize the radial theta grids and labels for polar
82
-
83
83
title - add a title to the current axes
84
+ xcorr - plot the autocorrelation function of x and y
84
85
xlim - set/get the xlimits
85
86
ylim - set/get the ylimits
86
87
xticks - set/get the xticks
@@ -1526,6 +1527,27 @@ def pcolor_classic(*args, **kwargs):
1526
1527
pcolor_classic .__doc__ = dedent (Axes .pcolor_classic .__doc__ )
1527
1528
1528
1529
### Do not edit below this point
1530
+ # This function was autogenerated by boilerplate.py. Do not edit as
1531
+ # changes will be lost
1532
+ def acorr (* args , ** kwargs ):
1533
+ # allow callers to override the hold state by passing hold=True|False
1534
+ b = ishold ()
1535
+ h = popd (kwargs , 'hold' , None )
1536
+ if h is not None :
1537
+ hold (h )
1538
+ try :
1539
+ ret = gca ().acorr (* args , ** kwargs )
1540
+ draw_if_interactive ()
1541
+ except :
1542
+ hold (b )
1543
+ raise
1544
+
1545
+ hold (b )
1546
+ return ret
1547
+ if Axes .acorr .__doc__ is not None :
1548
+ acorr .__doc__ = dedent (Axes .acorr .__doc__ ) + """
1549
+ Addition kwargs: hold = [True|False] overrides default hold state"""
1550
+
1529
1551
# This function was autogenerated by boilerplate.py. Do not edit as
1530
1552
# changes will be lost
1531
1553
def arrow (* args , ** kwargs ):
@@ -1540,7 +1562,7 @@ def arrow(*args, **kwargs):
1540
1562
except :
1541
1563
hold (b )
1542
1564
raise
1543
-
1565
+
1544
1566
hold (b )
1545
1567
return ret
1546
1568
if Axes .arrow .__doc__ is not None :
@@ -1561,7 +1583,7 @@ def axhline(*args, **kwargs):
1561
1583
except :
1562
1584
hold (b )
1563
1585
raise
1564
-
1586
+
1565
1587
hold (b )
1566
1588
return ret
1567
1589
if Axes .axhline .__doc__ is not None :
@@ -1582,7 +1604,7 @@ def axhspan(*args, **kwargs):
1582
1604
except :
1583
1605
hold (b )
1584
1606
raise
1585
-
1607
+
1586
1608
hold (b )
1587
1609
return ret
1588
1610
if Axes .axhspan .__doc__ is not None :
@@ -1603,7 +1625,7 @@ def axvline(*args, **kwargs):
1603
1625
except :
1604
1626
hold (b )
1605
1627
raise
1606
-
1628
+
1607
1629
hold (b )
1608
1630
return ret
1609
1631
if Axes .axvline .__doc__ is not None :
@@ -1624,7 +1646,7 @@ def axvspan(*args, **kwargs):
1624
1646
except :
1625
1647
hold (b )
1626
1648
raise
1627
-
1649
+
1628
1650
hold (b )
1629
1651
return ret
1630
1652
if Axes .axvspan .__doc__ is not None :
@@ -1645,7 +1667,7 @@ def bar(*args, **kwargs):
1645
1667
except :
1646
1668
hold (b )
1647
1669
raise
1648
-
1670
+
1649
1671
hold (b )
1650
1672
return ret
1651
1673
if Axes .bar .__doc__ is not None :
@@ -1666,7 +1688,7 @@ def barh(*args, **kwargs):
1666
1688
except :
1667
1689
hold (b )
1668
1690
raise
1669
-
1691
+
1670
1692
hold (b )
1671
1693
return ret
1672
1694
if Axes .barh .__doc__ is not None :
@@ -1687,7 +1709,7 @@ def broken_barh(*args, **kwargs):
1687
1709
except :
1688
1710
hold (b )
1689
1711
raise
1690
-
1712
+
1691
1713
hold (b )
1692
1714
return ret
1693
1715
if Axes .broken_barh .__doc__ is not None :
@@ -1708,7 +1730,7 @@ def boxplot(*args, **kwargs):
1708
1730
except :
1709
1731
hold (b )
1710
1732
raise
1711
-
1733
+
1712
1734
hold (b )
1713
1735
return ret
1714
1736
if Axes .boxplot .__doc__ is not None :
@@ -1729,7 +1751,7 @@ def cohere(*args, **kwargs):
1729
1751
except :
1730
1752
hold (b )
1731
1753
raise
1732
-
1754
+
1733
1755
hold (b )
1734
1756
return ret
1735
1757
if Axes .cohere .__doc__ is not None :
@@ -1750,7 +1772,7 @@ def clabel(*args, **kwargs):
1750
1772
except :
1751
1773
hold (b )
1752
1774
raise
1753
-
1775
+
1754
1776
hold (b )
1755
1777
return ret
1756
1778
if Axes .clabel .__doc__ is not None :
@@ -1813,7 +1835,7 @@ def csd(*args, **kwargs):
1813
1835
except :
1814
1836
hold (b )
1815
1837
raise
1816
-
1838
+
1817
1839
hold (b )
1818
1840
return ret
1819
1841
if Axes .csd .__doc__ is not None :
@@ -1834,7 +1856,7 @@ def errorbar(*args, **kwargs):
1834
1856
except :
1835
1857
hold (b )
1836
1858
raise
1837
-
1859
+
1838
1860
hold (b )
1839
1861
return ret
1840
1862
if Axes .errorbar .__doc__ is not None :
@@ -1855,7 +1877,7 @@ def fill(*args, **kwargs):
1855
1877
except :
1856
1878
hold (b )
1857
1879
raise
1858
-
1880
+
1859
1881
hold (b )
1860
1882
return ret
1861
1883
if Axes .fill .__doc__ is not None :
@@ -1876,7 +1898,7 @@ def hist(*args, **kwargs):
1876
1898
except :
1877
1899
hold (b )
1878
1900
raise
1879
-
1901
+
1880
1902
hold (b )
1881
1903
return ret
1882
1904
if Axes .hist .__doc__ is not None :
@@ -1897,7 +1919,7 @@ def hlines(*args, **kwargs):
1897
1919
except :
1898
1920
hold (b )
1899
1921
raise
1900
-
1922
+
1901
1923
hold (b )
1902
1924
return ret
1903
1925
if Axes .hlines .__doc__ is not None :
@@ -1939,7 +1961,7 @@ def loglog(*args, **kwargs):
1939
1961
except :
1940
1962
hold (b )
1941
1963
raise
1942
-
1964
+
1943
1965
hold (b )
1944
1966
return ret
1945
1967
if Axes .loglog .__doc__ is not None :
@@ -2002,7 +2024,7 @@ def pie(*args, **kwargs):
2002
2024
except :
2003
2025
hold (b )
2004
2026
raise
2005
-
2027
+
2006
2028
hold (b )
2007
2029
return ret
2008
2030
if Axes .pie .__doc__ is not None :
@@ -2023,7 +2045,7 @@ def plot(*args, **kwargs):
2023
2045
except :
2024
2046
hold (b )
2025
2047
raise
2026
-
2048
+
2027
2049
hold (b )
2028
2050
return ret
2029
2051
if Axes .plot .__doc__ is not None :
@@ -2044,7 +2066,7 @@ def plot_date(*args, **kwargs):
2044
2066
except :
2045
2067
hold (b )
2046
2068
raise
2047
-
2069
+
2048
2070
hold (b )
2049
2071
return ret
2050
2072
if Axes .plot_date .__doc__ is not None :
@@ -2065,7 +2087,7 @@ def psd(*args, **kwargs):
2065
2087
except :
2066
2088
hold (b )
2067
2089
raise
2068
-
2090
+
2069
2091
hold (b )
2070
2092
return ret
2071
2093
if Axes .psd .__doc__ is not None :
@@ -2107,7 +2129,7 @@ def semilogx(*args, **kwargs):
2107
2129
except :
2108
2130
hold (b )
2109
2131
raise
2110
-
2132
+
2111
2133
hold (b )
2112
2134
return ret
2113
2135
if Axes .semilogx .__doc__ is not None :
@@ -2128,7 +2150,7 @@ def semilogy(*args, **kwargs):
2128
2150
except :
2129
2151
hold (b )
2130
2152
raise
2131
-
2153
+
2132
2154
hold (b )
2133
2155
return ret
2134
2156
if Axes .semilogy .__doc__ is not None :
@@ -2191,7 +2213,7 @@ def stem(*args, **kwargs):
2191
2213
except :
2192
2214
hold (b )
2193
2215
raise
2194
-
2216
+
2195
2217
hold (b )
2196
2218
return ret
2197
2219
if Axes .stem .__doc__ is not None :
@@ -2212,7 +2234,7 @@ def vlines(*args, **kwargs):
2212
2234
except :
2213
2235
hold (b )
2214
2236
raise
2215
-
2237
+
2216
2238
hold (b )
2217
2239
return ret
2218
2240
if Axes .vlines .__doc__ is not None :
@@ -2275,13 +2297,34 @@ def quiverkey(*args, **kwargs):
2275
2297
except :
2276
2298
hold (b )
2277
2299
raise
2278
-
2300
+
2279
2301
hold (b )
2280
2302
return ret
2281
2303
if Axes .quiverkey .__doc__ is not None :
2282
2304
quiverkey .__doc__ = dedent (Axes .quiverkey .__doc__ ) + """
2283
2305
Addition kwargs: hold = [True|False] overrides default hold state"""
2284
2306
2307
+ # This function was autogenerated by boilerplate.py. Do not edit as
2308
+ # changes will be lost
2309
+ def xcorr (* args , ** kwargs ):
2310
+ # allow callers to override the hold state by passing hold=True|False
2311
+ b = ishold ()
2312
+ h = popd (kwargs , 'hold' , None )
2313
+ if h is not None :
2314
+ hold (h )
2315
+ try :
2316
+ ret = gca ().xcorr (* args , ** kwargs )
2317
+ draw_if_interactive ()
2318
+ except :
2319
+ hold (b )
2320
+ raise
2321
+
2322
+ hold (b )
2323
+ return ret
2324
+ if Axes .xcorr .__doc__ is not None :
2325
+ xcorr .__doc__ = dedent (Axes .xcorr .__doc__ ) + """
2326
+ Addition kwargs: hold = [True|False] overrides default hold state"""
2327
+
2285
2328
# This function was autogenerated by boilerplate.py. Do not edit as
2286
2329
# changes will be lost
2287
2330
def cla (* args , ** kwargs ):
0 commit comments