@@ -2075,6 +2075,7 @@ def add_contourf_set(self, cset, zdir='z', offset=None):
2075
2075
art3d .poly_collection_2d_to_3d (linec , z , zdir = zdir )
2076
2076
linec .set_sort_zpos (z )
2077
2077
2078
+ @_preprocess_data ()
2078
2079
def contour (self , X , Y , Z , * args ,
2079
2080
extend3d = False , stride = 5 , zdir = 'z' , offset = None , ** kwargs ):
2080
2081
"""
@@ -2093,6 +2094,9 @@ def contour(self, X, Y, Z, *args,
2093
2094
offset : float, optional
2094
2095
If specified, plot a projection of the contour lines at this
2095
2096
position in a plane normal to zdir.
2097
+ data : indexable object, optional
2098
+ DATA_PARAMETER_PLACEHOLDER
2099
+
2096
2100
*args, **kwargs
2097
2101
Other arguments are forwarded to `matplotlib.axes.Axes.contour`.
2098
2102
@@ -2111,6 +2115,7 @@ def contour(self, X, Y, Z, *args,
2111
2115
2112
2116
contour3D = contour
2113
2117
2118
+ @_preprocess_data ()
2114
2119
def tricontour (self , * args ,
2115
2120
extend3d = False , stride = 5 , zdir = 'z' , offset = None , ** kwargs ):
2116
2121
"""
@@ -2133,6 +2138,8 @@ def tricontour(self, *args,
2133
2138
offset : float, optional
2134
2139
If specified, plot a projection of the contour lines at this
2135
2140
position in a plane normal to zdir.
2141
+ data : indexable object, optional
2142
+ DATA_PARAMETER_PLACEHOLDER
2136
2143
*args, **kwargs
2137
2144
Other arguments are forwarded to `matplotlib.axes.Axes.tricontour`.
2138
2145
@@ -2161,6 +2168,7 @@ def tricontour(self, *args,
2161
2168
self .auto_scale_xyz (X , Y , Z , had_data )
2162
2169
return cset
2163
2170
2171
+ @_preprocess_data ()
2164
2172
def contourf (self , X , Y , Z , * args , zdir = 'z' , offset = None , ** kwargs ):
2165
2173
"""
2166
2174
Create a 3D filled contour plot.
@@ -2174,6 +2182,8 @@ def contourf(self, X, Y, Z, *args, zdir='z', offset=None, **kwargs):
2174
2182
offset : float, optional
2175
2183
If specified, plot a projection of the contour lines at this
2176
2184
position in a plane normal to zdir.
2185
+ data : indexable object, optional
2186
+ DATA_PARAMETER_PLACEHOLDER
2177
2187
*args, **kwargs
2178
2188
Other arguments are forwarded to `matplotlib.axes.Axes.contourf`.
2179
2189
@@ -2192,6 +2202,7 @@ def contourf(self, X, Y, Z, *args, zdir='z', offset=None, **kwargs):
2192
2202
2193
2203
contourf3D = contourf
2194
2204
2205
+ @_preprocess_data ()
2195
2206
def tricontourf (self , * args , zdir = 'z' , offset = None , ** kwargs ):
2196
2207
"""
2197
2208
Create a 3D filled contour plot.
@@ -2209,6 +2220,8 @@ def tricontourf(self, *args, zdir='z', offset=None, **kwargs):
2209
2220
offset : float, optional
2210
2221
If specified, plot a projection of the contour lines at this
2211
2222
position in a plane normal to zdir.
2223
+ data : indexable object, optional
2224
+ DATA_PARAMETER_PLACEHOLDER
2212
2225
*args, **kwargs
2213
2226
Other arguments are forwarded to
2214
2227
`matplotlib.axes.Axes.tricontourf`.
@@ -2347,6 +2360,7 @@ def scatter(self, xs, ys, zs=0, zdir='z', s=20, c=None, depthshade=True,
2347
2360
2348
2361
scatter3D = scatter
2349
2362
2363
+ @_preprocess_data ()
2350
2364
def bar (self , left , height , zs = 0 , zdir = 'z' , * args , ** kwargs ):
2351
2365
"""
2352
2366
Add 2D bar(s).
@@ -2362,6 +2376,8 @@ def bar(self, left, height, zs=0, zdir='z', *args, **kwargs):
2362
2376
used for all bars.
2363
2377
zdir : {'x', 'y', 'z'}, default: 'z'
2364
2378
When plotting 2D data, the direction to use as z ('x', 'y' or 'z').
2379
+ data : indexable object, optional
2380
+ DATA_PARAMETER_PLACEHOLDER
2365
2381
**kwargs
2366
2382
Other arguments are forwarded to `matplotlib.axes.Axes.bar`.
2367
2383
@@ -2398,6 +2414,7 @@ def bar(self, left, height, zs=0, zdir='z', *args, **kwargs):
2398
2414
2399
2415
return patches
2400
2416
2417
+ @_preprocess_data ()
2401
2418
def bar3d (self , x , y , z , dx , dy , dz , color = None ,
2402
2419
zsort = 'average' , shade = True , lightsource = None , * args , ** kwargs ):
2403
2420
"""
@@ -2446,6 +2463,9 @@ def bar3d(self, x, y, z, dx, dy, dz, color=None,
2446
2463
lightsource : `~matplotlib.colors.LightSource`
2447
2464
The lightsource to use when *shade* is True.
2448
2465
2466
+ data : indexable object, optional
2467
+ DATA_PARAMETER_PLACEHOLDER
2468
+
2449
2469
**kwargs
2450
2470
Any additional keyword arguments are passed onto
2451
2471
`~.art3d.Poly3DCollection`.
@@ -2567,6 +2587,7 @@ def set_title(self, label, fontdict=None, loc='center', **kwargs):
2567
2587
self .title .set_y (0.92 * y )
2568
2588
return ret
2569
2589
2590
+ @_preprocess_data ()
2570
2591
def quiver (self , * args ,
2571
2592
length = 1 , arrow_length_ratio = .3 , pivot = 'tail' , normalize = False ,
2572
2593
** kwargs ):
@@ -2604,6 +2625,9 @@ def quiver(self, *args,
2604
2625
Whether all arrows are normalized to have the same length, or keep
2605
2626
the lengths defined by *u*, *v*, and *w*.
2606
2627
2628
+ data : indexable object, optional
2629
+ DATA_PARAMETER_PLACEHOLDER
2630
+
2607
2631
**kwargs
2608
2632
Any additional keyword arguments are delegated to
2609
2633
:class:`~matplotlib.collections.LineCollection`
@@ -2932,6 +2956,7 @@ def permutation_matrices(n):
2932
2956
2933
2957
return polygons
2934
2958
2959
+ @_preprocess_data (replace_names = ["x" , "y" , "z" , "xerr" , "yerr" , "zerr" ])
2935
2960
def errorbar (self , x , y , z , zerr = None , yerr = None , xerr = None , fmt = '' ,
2936
2961
barsabove = False , errorevery = 1 , ecolor = None , elinewidth = None ,
2937
2962
capsize = None , capthick = None , xlolims = False , xuplims = False ,
@@ -3027,6 +3052,9 @@ def errorbar(self, x, y, z, zerr=None, yerr=None, xerr=None, fmt='',
3027
3052
3028
3053
Other Parameters
3029
3054
----------------
3055
+ data : indexable object, optional
3056
+ DATA_PARAMETER_PLACEHOLDER
3057
+
3030
3058
**kwargs
3031
3059
All other keyword arguments for styling errorbar lines are passed
3032
3060
`~mpl_toolkits.mplot3d.art3d.Line3DCollection`.
@@ -3304,6 +3332,7 @@ def get_tightbbox(self, renderer, call_axes_locator=True,
3304
3332
batch .append (axis_bb )
3305
3333
return mtransforms .Bbox .union (batch )
3306
3334
3335
+ @_preprocess_data ()
3307
3336
def stem (self , x , y , z , * , linefmt = 'C0-' , markerfmt = 'C0o' , basefmt = 'C3-' ,
3308
3337
bottom = 0 , label = None , orientation = 'z' ):
3309
3338
"""
@@ -3355,6 +3384,9 @@ def stem(self, x, y, z, *, linefmt='C0-', markerfmt='C0o', basefmt='C3-',
3355
3384
orientation : {'x', 'y', 'z'}, default: 'z'
3356
3385
The direction along which stems are drawn.
3357
3386
3387
+ data : indexable object, optional
3388
+ DATA_PARAMETER_PLACEHOLDER
3389
+
3358
3390
Returns
3359
3391
-------
3360
3392
`.StemContainer`
0 commit comments