forked from microsoft/python-type-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyplot.pyi
More file actions
856 lines (846 loc) · 24.7 KB
/
pyplot.pyi
File metadata and controls
856 lines (846 loc) · 24.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
import datetime
from array import array
from collections.abc import Sequence
from contextlib import AbstractContextManager
from typing import Callable, Literal, overload
from typing_extensions import Self
import matplotlib
import matplotlib.image
import numpy as np
from matplotlib import rcParams as rcParams, style as style
from matplotlib.contour import QuadContourSet
from ._typing import *
from .artist import Artist
from .axes import Axes as Axes
from .backend_bases import FigureCanvasBase, FigureManagerBase, MouseButton, _Backend
from .collections import BrokenBarHCollection, Collection, LineCollection, PathCollection, PolyCollection, QuadMesh
from .colors import Colormap, Normalize
from .container import BarContainer, ErrorbarContainer, StemContainer
from .figure import Figure, SubFigure
from .image import AxesImage, FigureImage
from .legend import Legend
from .lines import Line2D
from .markers import MarkerStyle
from .patches import FancyArrow, Polygon
from .quiver import Quiver
from .rcsetup import interactive_bk as _interactive_bk
from .scale import ScaleBase
from .streamplot import StreamplotSet
from .table import Table
from .text import Annotation, Text
from .transforms import Bbox, Transform
from .tri.tricontour import TriContourSet
from .widgets import SubplotTool
def install_repl_displayhook() -> None: ...
def uninstall_repl_displayhook() -> None: ...
def draw_all(force: bool = False) -> None: ...
def set_loglevel(*args, **kwargs) -> None: ...
def findobj(o=..., match=..., include_self: bool = ...) -> list: ...
def switch_backend(newbackend: str) -> None: ...
def new_figure_manager(*args, **kwargs) -> FigureManagerBase: ...
def draw_if_interactive(*args, **kwargs): ...
def show(*args, **kwargs): ...
def isinteractive() -> bool: ...
class _IoffContext:
def __init__(self) -> None: ...
def __enter__(self): ...
def __exit__(self, exc_type, exc_value, traceback): ...
class _IonContext:
def __init__(self) -> None: ...
def __enter__(self): ...
def __exit__(self, exc_type, exc_value, traceback): ...
def ioff() -> _IoffContext: ...
def ion() -> _IonContext: ...
def pause(interval) -> None: ...
def rc(group, **kwargs) -> None: ...
def rc_context(rc: dict = ..., fname: str | PathLike = ...) -> AbstractContextManager: ...
def rcdefaults() -> None: ...
def getp(obj: Artist, *args, **kwargs): ...
def get(obj: Artist, *args, **kwargs): ...
def setp(obj: Artist | list, *args, **kwargs): ...
def xkcd(scale: float = ..., length: float = ..., randomness: float = ...) -> _xkcd: ...
class _xkcd:
def __init__(self, scale: float, length: float, randomness: float) -> None: ...
def __enter__(self) -> Self: ...
def __exit__(self, *args) -> None: ...
def figure(
num: int | str | Figure | SubFigure | None = None,
figsize: Sequence[float] | None = None,
dpi: float | None = None,
facecolor: Color | None = None,
edgecolor: Color | None = None,
frameon: bool = True,
FigureClass=...,
clear: bool = False,
**kwargs,
) -> Figure: ...
def gcf() -> Figure: ...
def fignum_exists(num) -> bool: ...
def get_fignums() -> list[int]: ...
def get_figlabels(): ...
def get_current_fig_manager() -> FigureManagerBase: ...
def connect(s: str, func: Callable): ...
def disconnect(cid: int): ...
def close(fig: None | int | str | Figure = ...): ...
def clf() -> None: ...
def draw() -> None: ...
def savefig(*args, **kwargs) -> None: ...
def figlegend(*args, **kwargs) -> Legend: ...
def axes(arg: None | tuple = ..., **kwargs) -> Axes: ...
def delaxes(ax: Axes = ...) -> None: ...
def sca(ax: Axes) -> None: ...
def cla() -> None: ...
def subplot(*args, **kwargs) -> Axes: ...
@overload
def subplots(
nrows: int = ...,
ncols: int = ...,
*,
squeeze: Literal[False],
sharex: bool | Literal["none", "all", "row", "col"] = ...,
sharey: bool | Literal["none", "all", "row", "col"] = ...,
subplot_kw: dict = ...,
gridspec_kw: dict = ...,
**fig_kw,
) -> tuple[Figure, np.ndarray]: ...
@overload
def subplots(
nrows: Literal[1] = ...,
ncols: Literal[1] = ...,
*,
sharex: bool | Literal["none", "all", "row", "col"] = ...,
sharey: bool | Literal["none", "all", "row", "col"] = ...,
squeeze: Literal[True] = ...,
subplot_kw: dict = ...,
gridspec_kw: dict = ...,
**fig_kw,
) -> tuple[Figure, Axes]: ...
##
@overload
def subplots(
nrows: Literal[1] = ...,
ncols: int = ...,
*,
sharex: bool | Literal["none", "all", "row", "col"] = ...,
sharey: bool | Literal["none", "all", "row", "col"] = ...,
squeeze: Literal[True] = ...,
subplot_kw: dict = ...,
gridspec_kw: dict = ...,
**fig_kw,
) -> tuple[Figure, np.ndarray]: ...
@overload
def subplots(
nrows: int = ...,
ncols: Literal[1] = ...,
*,
sharex: bool | Literal["none", "all", "row", "col"] = ...,
sharey: bool | Literal["none", "all", "row", "col"] = ...,
squeeze: Literal[True] = ...,
subplot_kw: dict = ...,
gridspec_kw: dict = ...,
**fig_kw,
) -> tuple[Figure, np.ndarray]: ...
@overload
def subplots(
*,
nrows: int = ...,
ncols: int = ...,
sharex: bool | Literal["none", "all", "row", "col"] = ...,
sharey: bool | Literal["none", "all", "row", "col"] = ...,
squeeze: Literal[True] = ...,
subplot_kw: dict = ...,
gridspec_kw: dict = ...,
**fig_kw,
) -> tuple[Figure, np.ndarray]: ...
@overload
def subplots(
*,
ncols: int = ...,
sharex: bool | Literal["none", "all", "row", "col"] = ...,
sharey: bool | Literal["none", "all", "row", "col"] = ...,
squeeze: Literal[True] = ...,
subplot_kw: dict = ...,
gridspec_kw: dict = ...,
**fig_kw,
) -> tuple[Figure, np.ndarray]: ...
@overload
def subplots(
nrows: int = ...,
*,
sharex: bool | Literal["none", "all", "row", "col"] = ...,
sharey: bool | Literal["none", "all", "row", "col"] = ...,
squeeze: Literal[True] = ...,
subplot_kw: dict = ...,
gridspec_kw: dict = ...,
**fig_kw,
) -> tuple[Figure, np.ndarray]: ...
@overload
def subplots(
*,
sharex: bool | Literal["none", "all", "row", "col"] = ...,
sharey: bool | Literal["none", "all", "row", "col"] = ...,
squeeze: Literal[True] = ...,
subplot_kw: dict = ...,
gridspec_kw: dict = ...,
**fig_kw,
) -> tuple[Figure, Axes]: ...
@overload
def subplots(
nrows: int = ...,
ncols: int = ...,
*,
sharex: bool | Literal["none", "all", "row", "col"] = ...,
sharey: bool | Literal["none", "all", "row", "col"] = ...,
squeeze: bool = ...,
subplot_kw: dict = ...,
gridspec_kw: dict = ...,
**fig_kw,
) -> tuple[Figure, np.ndarray]: ...
def subplot_mosaic(
mosaic: list | str,
*,
sharex: bool = ...,
sharey: bool = ...,
subplot_kw: dict = ...,
gridspec_kw: dict = ...,
empty_sentinel: object = ...,
**fig_kw,
) -> tuple[Figure, dict[Text, Axes]]: ...
def subplot2grid(
shape: Sequence[int], loc: Sequence[int], rowspan: int = ..., colspan: int = ..., fig: Figure = ..., **kwargs
) -> Axes: ...
def twinx(ax: Axes = ...) -> Axes: ...
def twiny(ax: Axes = ...) -> Axes: ...
def subplot_tool(targetfig: Figure = ...) -> SubplotTool: ...
def box(on: bool | None = ...): ...
def xlim(*args, **kwargs) -> tuple[float, float]: ...
def ylim(*args, **kwargs) -> tuple[float, float]: ...
def xticks(ticks: ArrayLike = ..., labels: ArrayLike = ..., **kwargs) -> tuple[list, list[Text]]: ...
def yticks(ticks: ArrayLike = ..., labels: ArrayLike = ..., **kwargs) -> tuple[list, list[Text]]: ...
def rgrids(
radii: Sequence[float] = ..., labels: Sequence[str] | None = ..., angle: float = ..., fmt: str | None = ..., **kwargs
) -> tuple[list[Line2D], list[Text]]: ...
def thetagrids(
angles: Sequence[float] = ..., labels: Sequence[str] | None = ..., fmt: str | None = ..., **kwargs
) -> tuple[list[Line2D], list[Text]]: ...
def get_plot_commands() -> list: ...
def colorbar(mappable=..., cax: Axes = ..., ax: Axes = ..., **kwargs): ...
def clim(vmin: float | None = ..., vmax: float | None = ...): ...
def set_cmap(cmap: Colormap | str): ...
def imread(fname: str | FileLike, format: str = ...) -> np.ndarray: ...
def imsave(fname: str | PathLike | FileLike, arr: ArrayLike, **kwargs): ...
def matshow(A: ArrayLike, fignum: None | int | Literal[False] = ..., **kwargs) -> AxesImage: ...
def polar(*args, **kwargs): ...
def figimage(
X: ArrayLike,
xo: float = ...,
yo: float = ...,
alpha: None | float = ...,
norm: Normalize = ...,
cmap: str | Colormap = ...,
vmin: float = ...,
vmax: float = ...,
origin: Literal["upper", "lower"] = ...,
resize: bool = ...,
**kwargs,
) -> FigureImage: ...
def figtext(x: float, y: float, s: str, fontdict: dict = ..., **kwargs) -> Text: ...
def gca(): ...
def gci(): ...
def ginput(
n: int = ...,
timeout: float = ...,
show_clicks: bool = ...,
mouse_add: MouseButton | None = ...,
mouse_pop: MouseButton | None = ...,
mouse_stop: MouseButton | None = ...,
) -> list[tuple]: ...
def subplots_adjust(
left: float = ...,
bottom: float = ...,
right: float = ...,
top: float = ...,
wspace: float = ...,
hspace: float = ...,
): ...
def suptitle(t: str, **kwargs) -> Text: ...
def tight_layout(*, pad: float = ..., h_pad: float = ..., w_pad: float = ..., rect: Sequence[float] = ...): ...
def waitforbuttonpress(timeout=...): ...
def acorr(x: ArrayLike, *, data=..., **kwargs): ...
def angle_spectrum(
x: Sequence[float],
Fs: float = ...,
Fc: float = ...,
window: Callable | np.ndarray = ...,
pad_to: float = ...,
sides: Literal["default", "onesided", "twosided"] = ...,
*,
data=...,
**kwargs,
): ...
def annotate(
text: str,
xy: Sequence[float],
xytext: Sequence[float] = ...,
xycoords: str | Artist | Transform | Callable = ...,
textcoords: str | Artist | Transform | Callable = ...,
arrowprops: dict = ...,
annotation_clip: bool | None = ...,
**kwargs,
) -> Annotation: ...
def arrow(x: float, y: float, dx: float, dy: float, **kwargs) -> FancyArrow: ...
def autoscale(
enable: bool | None = ...,
axis: Literal["both", "x", "y"] = ...,
tight: bool | None = ...,
): ...
def axhline(y: float = ..., xmin: float = ..., xmax: float = ..., **kwargs) -> Line2D: ...
def axhspan(ymin: float, ymax: float, xmin: float = ..., xmax: float = ..., **kwargs) -> Polygon: ...
def axis(*args, emit: bool = ..., **kwargs): ...
def axline(xy1: Sequence[float], xy2: Sequence[float] = ..., *, slope: float = ..., **kwargs) -> Line2D: ...
def axvline(x: float = ..., ymin: float = ..., ymax: float = ..., **kwargs) -> Line2D: ...
def axvspan(xmin: float, xmax: float, ymin: float = ..., ymax: float = ..., **kwargs) -> Polygon: ...
def bar(
x: float | ArrayLike,
height: float | ArrayLike,
width: float | ArrayLike = ...,
bottom: float | ArrayLike = ...,
*,
align: Literal["center", "edge"] = ...,
data=...,
**kwargs,
) -> BarContainer: ...
def barbs(*args, data=..., **kwargs): ...
def barh(
y: float | ArrayLike,
width: float | ArrayLike,
height: float | ArrayLike = ...,
left: float | ArrayLike = ...,
*,
align: Literal["center", "edge"] = ...,
**kwargs,
) -> BarContainer: ...
def bar_label(
container: BarContainer,
labels: ArrayLike = ...,
*,
fmt: str = ...,
label_type: Literal["edge", "center"] = ...,
padding: float = ...,
**kwargs,
) -> list: ...
def boxplot(
x: ArrayLike,
notch: bool = ...,
sym: str = ...,
vert: bool = ...,
whis: float = ...,
positions: ArrayLike = ...,
widths: float | ArrayLike = ...,
patch_artist: bool = ...,
bootstrap: int = ...,
usermedians=...,
conf_intervals: ArrayLike = ...,
meanline: bool = ...,
showmeans=...,
showcaps=...,
showbox=...,
showfliers=...,
boxprops=...,
labels: Sequence = ...,
flierprops=...,
medianprops=...,
meanprops=...,
capprops=...,
whiskerprops=...,
manage_ticks: bool = ...,
autorange: bool = ...,
zorder: float = ...,
capwidths=...,
*,
data=...,
) -> dict: ...
def broken_barh(xranges, yrange, *, data=..., **kwargs) -> BrokenBarHCollection: ...
def clabel(CS, levels: ArrayLike = ..., **kwargs): ...
def cohere(
x,
y,
NFFT: int = ...,
Fs: float = ...,
Fc: float = ...,
detrend: Literal["none", "mean", "linear"] | Callable = ...,
window: Callable | np.ndarray = ...,
noverlap: float = ...,
pad_to: float = ...,
sides: Literal["default", "onesided", "twosided"] = ...,
scale_by_freq: bool = ...,
*,
data=...,
**kwargs,
): ...
def contour(*args, data=..., **kwargs) -> QuadContourSet: ...
def contourf(*args, data=..., **kwargs) -> QuadContourSet: ...
def csd(
x: Sequence[float],
y: Sequence[float],
NFFT: int = ...,
Fs: float = ...,
Fc: float = ...,
detrend: Literal["none", "mean", "linear"] | Callable = ...,
window: Callable | np.ndarray = ...,
noverlap: float = ...,
pad_to: float = ...,
sides: Literal["default", "onesided", "twosided"] = ...,
scale_by_freq: bool = ...,
return_line: bool = ...,
*,
data=...,
**kwargs,
): ...
def errorbar(
x: float | ArrayLike,
y: float | ArrayLike,
yerr: float | ArrayLike = ...,
xerr: float | ArrayLike = ...,
fmt: str = ...,
ecolor: Color = ...,
elinewidth: float = ...,
capsize: float = ...,
barsabove: bool = ...,
lolims: bool = ...,
uplims: bool = ...,
xlolims: bool = ...,
xuplims: bool = ...,
errorevery: int = ...,
capthick: float = ...,
*,
data=...,
**kwargs,
) -> ErrorbarContainer: ...
def eventplot(
positions: ArrayLike | Sequence[ArrayLike],
orientation: Literal["horizontal", "vertical"] = ...,
lineoffsets: float | ArrayLike = ...,
linelengths: float | ArrayLike = ...,
linewidths: float | ArrayLike = ...,
colors: Color | list[Color] = ...,
linestyles: str | tuple | list = ...,
*,
data=...,
**kwargs,
) -> list: ...
def fill(*args, data=..., **kwargs) -> list[Polygon]: ...
def fill_between(
x,
y1: Scalar,
y2: Scalar = ...,
where: ArrayLike = ...,
interpolate: bool = ...,
step: Literal["pre", "post", "mid"] = ...,
*,
data=...,
**kwargs,
) -> PolyCollection: ...
def fill_betweenx(
y,
x1: Scalar,
x2: Scalar = ...,
where: ArrayLike = ...,
step: Literal["pre", "post", "mid"] = ...,
interpolate: bool = ...,
*,
data=...,
**kwargs,
) -> PolyCollection: ...
def grid(
visible: bool | None = ..., which: Literal["major", "minor", "both"] = ..., axis: Literal["both", "x", "y"] = ..., **kwargs
): ...
def hexbin(
x: ArrayLike,
y: ArrayLike,
C: ArrayLike = ...,
gridsize: int = ...,
bins: Literal["log"] | int | Sequence = ...,
xscale: Literal["linear", "log"] = ...,
yscale: Literal["linear", "log"] = ...,
extent=...,
cmap=...,
norm=...,
vmin=...,
vmax=...,
alpha=...,
linewidths=...,
edgecolors=...,
reduce_C_function=...,
mincnt: int = ...,
marginals: bool = ...,
*,
data=...,
**kwargs,
) -> PolyCollection: ...
def hist(
x,
bins: int | Sequence | str = ...,
range: tuple | None = ...,
density: bool = ...,
weights=...,
cumulative: bool | Literal[-1] = ...,
bottom=...,
histtype: Literal["bar", "barstacked", "step", "stepfilled"] = ...,
align: Literal["left", "mid", "right"] = ...,
orientation: Literal["vertical", "horizontal"] = ...,
rwidth: float | None = ...,
log: bool = ...,
color: Color | None = ...,
label: str | None = ...,
stacked: bool = ...,
*,
data=...,
**kwargs,
): ...
def stairs(
values: ArrayLike,
edges: ArrayLike = ...,
*,
orientation: Literal["vertical", "horizontal"] = ...,
baseline: float | ArrayLike | None = ...,
fill: bool = ...,
data=...,
**kwargs,
): ...
def hist2d(
x,
y,
bins: None | int | ArrayLike = ...,
range=...,
density: bool = ...,
weights=...,
cmin: float = ...,
cmax: float = ...,
*,
data=...,
**kwargs,
): ...
def hlines(
y: float | ArrayLike,
xmin: float | ArrayLike,
xmax: float | ArrayLike,
colors: list[Color] = ...,
linestyles: Literal["solid", "dashed", "dashdot", "dotted"] = ...,
label: str = ...,
*,
data=...,
**kwargs,
) -> LineCollection: ...
def imshow(
X: ArrayLike,
cmap: str | Colormap = ...,
norm: Normalize = ...,
aspect: Literal["equal", "auto"] | float = ...,
interpolation: str = ...,
alpha: float | ArrayLike = ...,
vmin: float = ...,
vmax: float = ...,
origin: Literal["upper", "lower"] = ...,
extent: Sequence[float] = ...,
*,
interpolation_stage: Literal["data", "rgba"] = ...,
filternorm: bool = ...,
filterrad: float = ...,
resample: bool = ...,
url: str = ...,
data=...,
**kwargs,
) -> AxesImage: ...
def legend(*args, **kwargs) -> Legend: ...
def locator_params(axis: Literal["both", "x", "y"] = ..., tight: bool | None = ..., **kwargs): ...
def loglog(*args, **kwargs) -> list: ...
def magnitude_spectrum(
x: Sequence,
Fs: float = ...,
Fc: float = ...,
window: Callable | np.ndarray = ...,
pad_to: float = ...,
sides: Literal["default", "onesided", "twosided"] = ...,
scale: Literal["default", "linear", "dB"] = ...,
*,
data=...,
**kwargs,
): ...
def margins(*margins, x: float = ..., y: float = ..., tight: bool | None = ...): ...
def minorticks_off(): ...
def minorticks_on(): ...
def pcolor(
*args,
shading: Literal["flat", "nearest", "auto"] = ...,
alpha: float = ...,
norm: Normalize = ...,
cmap: str | Colormap = ...,
vmin: float = ...,
vmax: float = ...,
data=...,
**kwargs,
) -> Collection: ...
def pcolormesh(
*args,
alpha: float = ...,
norm: Normalize = ...,
cmap: str | Colormap = ...,
vmin: float = ...,
vmax: float = ...,
shading: Literal["flat", "nearest", "gouraud", "auto"] = ...,
antialiased=...,
data=...,
**kwargs,
) -> QuadMesh: ...
def phase_spectrum(
x: Sequence,
Fs: float = ...,
Fc: float = ...,
window: Callable | np.ndarray = ...,
pad_to: float = ...,
sides: Literal["default", "onesided", "twosided"] = ...,
*,
data=...,
**kwargs,
): ...
def pie(
x,
explode: ArrayLike = ...,
labels: Sequence[str] = ...,
colors: ArrayLike = ...,
autopct: None | str | Callable = ...,
pctdistance: float = ...,
shadow: bool = ...,
labeldistance: float | None = ...,
startangle: float = ...,
radius: float = ...,
counterclock: bool = ...,
wedgeprops: dict = ...,
textprops: dict = ...,
center: tuple[float, float] = ...,
frame: bool = ...,
rotatelabels: bool = ...,
*,
normalize: bool = ...,
data=...,
): ...
def plot(*args, scalex=..., scaley=..., data=..., **kwargs) -> list: ...
def plot_date(
x: ArrayLike,
y: ArrayLike,
fmt: str = ...,
tz: datetime.tzinfo = ...,
xdate: bool = ...,
ydate: bool = ...,
*,
data=...,
**kwargs,
) -> list: ...
def psd(
x: Sequence,
NFFT: int = ...,
Fs: float = ...,
Fc: float = ...,
detrend: Literal["none", "mean", "linear"] | Callable = ...,
window: Callable | np.ndarray = ...,
noverlap: float = ...,
pad_to: float = ...,
sides: Literal["default", "onesided", "twosided"] = ...,
scale_by_freq: bool = ...,
return_line: bool = ...,
*,
data=...,
**kwargs,
): ...
def quiver(*args, data=..., **kwargs) -> Quiver: ...
def quiverkey(Q: Quiver, X: float, Y: float, U: float, label: str, **kwargs): ...
def scatter(
x: float | ArrayLike,
y: float | ArrayLike,
s: float | ArrayLike = ...,
c: ArrayLike | list[Color] | Color = ...,
marker: MarkerStyle = ...,
cmap: str | Colormap = ...,
norm: Normalize = ...,
vmin: float = ...,
vmax: float = ...,
alpha: float = ...,
linewidths: float | ArrayLike = ...,
*,
edgecolors: Color = ...,
plotnonfinite: bool = ...,
data=...,
**kwargs,
) -> PathCollection: ...
def semilogx(*args, **kwargs) -> list: ...
def semilogy(*args, **kwargs) -> list: ...
def specgram(
x: Sequence,
NFFT: int = ...,
Fs: float = ...,
Fc: float = ...,
detrend: Literal["none", "mean", "linear"] | Callable = ...,
window: Callable | np.ndarray = ...,
noverlap: int = ...,
cmap: Colormap = ...,
xextent=...,
pad_to: float = ...,
sides: Literal["default", "onesided", "twosided"] = ...,
scale_by_freq: bool = ...,
mode: Literal["default", "psd", "magnitude", "angle", "phase"] = ...,
scale: Literal["default", "linear", "dB"] = ...,
vmin=...,
vmax=...,
*,
data=...,
**kwargs,
): ...
def spy(
Z,
precision: float | Literal["present"] = ...,
marker=...,
markersize=...,
aspect: Literal["equal", "auto"] | None | float = ...,
origin: Literal["upper", "lower"] = ...,
**kwargs,
) -> tuple[AxesImage, Line2D]: ...
def stackplot(
x,
*args,
labels: list[str] = ...,
colors: list[Color] = ...,
baseline: Literal["zero", "sym", "wiggle", "weighted_wiggle"] = ...,
data=...,
**kwargs,
) -> list: ...
def stem(
*args,
linefmt: str = ...,
markerfmt: str = ...,
basefmt: str = ...,
bottom: float = ...,
label: str = ...,
use_line_collection: bool = ...,
orientation: str = ...,
data=...,
) -> StemContainer: ...
def step(x: ArrayLike, y: ArrayLike, *args, where: Literal["pre", "post", "mid"] = ..., data=..., **kwargs) -> list: ...
def streamplot(
x,
y,
u,
v,
density: float = ...,
linewidth: float = ...,
color: Color = ...,
cmap: Colormap = ...,
norm: Normalize = ...,
arrowsize: float = ...,
arrowstyle: str = ...,
minlength: float = ...,
transform=...,
zorder: int = ...,
start_points=...,
maxlength: float = ...,
integration_direction: Literal["forward", "backward", "both"] = ...,
broken_streamlines: bool = ...,
*,
data=...,
) -> StreamplotSet: ...
def table(
cellText=...,
cellColours=...,
cellLoc: Literal["left", "center", "right"] = ...,
colWidths: list[float] = ...,
rowLabels: list[str] = ...,
rowColours: list[Color] = ...,
rowLoc: Literal["left", "center", "right"] = ...,
colLabels: list[str] = ...,
colColours: list[Color] = ...,
colLoc: Literal["left", "center", "right"] = ...,
loc: str = ...,
bbox: Bbox = ...,
edges: Literal["open", "closed", "horizontal", "vertical"] = ...,
**kwargs,
) -> Table: ...
def text(x: float, y: float, s: str, fontdict: dict = ..., **kwargs) -> Text: ...
def tick_params(axis: Literal["x", "y", "both"] = ..., **kwargs): ...
def ticklabel_format(
*,
axis: Literal["x", "y", "both"] = ...,
style: Literal["sci", "scientific", "plain"] = ..., # noqa: F811
scilimits=...,
useOffset: bool | float = ...,
useLocale: bool = ...,
useMathText: bool = ...,
): ...
def tricontour(*args, **kwargs) -> TriContourSet: ...
def tricontourf(*args, **kwargs) -> TriContourSet: ...
def tripcolor(
*args,
alpha=...,
norm=...,
cmap=...,
vmin: float = ...,
vmax: float = ...,
shading: Literal["flat", "gouraud"] = ...,
facecolors: ArrayLike = ...,
**kwargs,
): ...
def triplot(*args, **kwargs): ...
def violinplot(
dataset: ArrayLike,
positions: ArrayLike = ...,
vert: bool = ...,
widths: ArrayLike = ...,
showmeans: bool = ...,
showextrema: bool = ...,
showmedians: bool = ...,
quantiles: ArrayLike = ...,
points: int = ...,
bw_method: str | Scalar | Callable = ...,
*,
data=...,
) -> dict: ...
def vlines(
x: float | ArrayLike,
ymin: float | ArrayLike,
ymax: float | ArrayLike,
colors: list[Color] = ...,
linestyles: Literal["solid", "dashed", "dashdot", "dotted"] = ...,
label: str = ...,
*,
data=...,
**kwargs,
) -> LineCollection: ...
def xcorr(
x, y, normed: bool = ..., detrend: Callable = ..., usevlines: bool = ..., maxlags: int = ..., *, data=..., **kwargs
): ...
def sci(im): ...
def title(
label: str, fontdict: dict = ..., loc: Literal["center", "left", "right"] = ..., pad: float = ..., *, y: float = ..., **kwargs
) -> Text: ...
def xlabel(xlabel: str, fontdict=..., labelpad: float = ..., *, loc: Literal["left", "center", "right"] = ..., **kwargs): ...
def ylabel(ylabel: str, fontdict=..., labelpad: float = ..., *, loc: Literal["bottom", "center", "top"] = ..., **kwargs): ...
def xscale(value: Literal["linear", "log", "symlog", "logit"] | ScaleBase, **kwargs): ...
def yscale(value: Literal["linear", "log", "symlog", "logit"] | ScaleBase, **kwargs): ...
def autumn(): ...
def bone(): ...
def cool(): ...
def copper(): ...
def flag(): ...
def gray(): ...
def hot(): ...
def hsv(): ...
def jet(): ...
def pink(): ...
def prism(): ...
def spring(): ...
def summer(): ...
def winter(): ...
def magma(): ...
def inferno(): ...
def plasma(): ...
def viridis(): ...
def nipy_spectral(): ...