tikzplot42 0.2.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tikzplot/__init__.py +5 -0
- tikzplot/__init__.pyi +5 -0
- tikzplot/axes.py +717 -0
- tikzplot/axes.pyi +445 -0
- tikzplot/axes3d.py +566 -0
- tikzplot/colorbar.py +261 -0
- tikzplot/colorbar.pyi +128 -0
- tikzplot/colors.py +58 -0
- tikzplot/colors.pyi +1 -0
- tikzplot/config.py +101 -0
- tikzplot/config.pyi +95 -0
- tikzplot/elements.py +641 -0
- tikzplot/elements.pyi +11 -0
- tikzplot/figure.py +285 -0
- tikzplot/figure.pyi +27 -0
- tikzplot/latex_special.py +62 -0
- tikzplot/plots.py +175 -0
- tikzplot/plots.pyi +314 -0
- tikzplot/py.typed +0 -0
- tikzplot/state.py +24 -0
- tikzplot/state.pyi +3 -0
- tikzplot42-0.2.8.dist-info/METADATA +780 -0
- tikzplot42-0.2.8.dist-info/RECORD +26 -0
- tikzplot42-0.2.8.dist-info/WHEEL +5 -0
- tikzplot42-0.2.8.dist-info/licenses/LICENSE +674 -0
- tikzplot42-0.2.8.dist-info/top_level.txt +1 -0
tikzplot/axes.pyi
ADDED
|
@@ -0,0 +1,445 @@
|
|
|
1
|
+
from typing import Any, Optional, Sequence, Tuple, Union, Literal
|
|
2
|
+
import numpy as np
|
|
3
|
+
|
|
4
|
+
ArrayLike = Union[Sequence[float], np.ndarray]
|
|
5
|
+
ColorLike = Union[str, Sequence[float]]
|
|
6
|
+
LineStyle = Literal["-", "--", "-.", ":", "solid", "dashed", "dashdot", "none", ""]
|
|
7
|
+
MarkerStyle = Literal["o", "s", "^", "v", "x", "+", ".", "*", "None", ""]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class BaseAxes:
|
|
11
|
+
def plot(self, x: ArrayLike = ..., y: ArrayLike = ..., fmt: Optional[str] = ...,*, alpha: Optional[float] = ..., color: Optional[ColorLike] = ..., c: Optional[ColorLike] = ...,
|
|
12
|
+
linestyle: Optional[LineStyle] = ..., ls: Optional[LineStyle] = ..., linewidth: Optional[float]= ..., lw: Optional[float] = ...,
|
|
13
|
+
marker: Optional[MarkerStyle] = ..., markersize: Optional[float] = ..., ms: Optional[float] = ..., label:Optional[str]=...) -> None:
|
|
14
|
+
"""
|
|
15
|
+
Draw a general plot to the selected axis.
|
|
16
|
+
|
|
17
|
+
Parameters
|
|
18
|
+
----------
|
|
19
|
+
x,y : ArrayLike or float
|
|
20
|
+
Datapoints
|
|
21
|
+
|
|
22
|
+
fmt: str, optional
|
|
23
|
+
Style
|
|
24
|
+
|
|
25
|
+
alpha: float, optional
|
|
26
|
+
Opacity
|
|
27
|
+
|
|
28
|
+
color or c: all matplotlib color formats (without X11/xkcd), optional
|
|
29
|
+
color of line and markers: RGB/RGBA (tuple), HEX (str), grayscale (float), single-char (str), name (str), default cycle ("CX", X int), none for invisible
|
|
30
|
+
|
|
31
|
+
label: str, optional
|
|
32
|
+
Legned entry
|
|
33
|
+
|
|
34
|
+
linestyle or ls: str, optional
|
|
35
|
+
Line style
|
|
36
|
+
|
|
37
|
+
linewidth or lw: float, optional
|
|
38
|
+
Line width in pt
|
|
39
|
+
|
|
40
|
+
marker: str, optional
|
|
41
|
+
Marker type
|
|
42
|
+
|
|
43
|
+
markersize or ms: float, optional
|
|
44
|
+
Mark size in pt
|
|
45
|
+
"""
|
|
46
|
+
...
|
|
47
|
+
|
|
48
|
+
def scatter(self, x: ArrayLike = ..., y: ArrayLike = ..., fmt: Optional[str] = ..., *,alpha: Optional[float] = ..., color: Optional[ColorLike] = ..., c: Optional[ColorLike] = ...,
|
|
49
|
+
marker: Optional[MarkerStyle] = ..., markersize: Optional[float] = ..., s: Optional[float] = ..., label:Optional[str]=...) -> None:
|
|
50
|
+
"""
|
|
51
|
+
Draw a scatter plot to the selected axis.
|
|
52
|
+
|
|
53
|
+
Parameters
|
|
54
|
+
----------
|
|
55
|
+
x,y : ArrayLike or float
|
|
56
|
+
Datapoints
|
|
57
|
+
|
|
58
|
+
fmt: str, optional
|
|
59
|
+
Style
|
|
60
|
+
|
|
61
|
+
alpha: float, optional
|
|
62
|
+
Opacity
|
|
63
|
+
|
|
64
|
+
color or c: all matplotlib color formats (without X11/xkcd), optional
|
|
65
|
+
color of line and markers: RGB/RGBA (tuple), HEX (str), grayscale (float), single-char (str), name (str), default cycle ("CX", X int), none for invisible
|
|
66
|
+
|
|
67
|
+
label: str, optional
|
|
68
|
+
Legned entry
|
|
69
|
+
|
|
70
|
+
marker: str, optional
|
|
71
|
+
Marker type
|
|
72
|
+
|
|
73
|
+
markersize or s: float, optional
|
|
74
|
+
Mark size in pt
|
|
75
|
+
"""
|
|
76
|
+
...
|
|
77
|
+
def semilogy(self, x: ArrayLike = ..., y: ArrayLike = ..., base: Optional[float] = 10, fmt: Optional[str] = ...,*, alpha: Optional[float] = ..., color: Optional[ColorLike] = ..., c: Optional[ColorLike] = ...,
|
|
78
|
+
linestyle: Optional[LineStyle] = ..., ls: Optional[LineStyle] = ..., linewidth: Optional[float]= ..., lw: Optional[float] = ...,
|
|
79
|
+
marker: Optional[MarkerStyle] = ..., markersize: Optional[float] = ..., ms: Optional[float] = ..., label:Optional[str]=...) -> None:
|
|
80
|
+
"""
|
|
81
|
+
Draw a general plot to the selected axis and change the current y-axis into log mode.
|
|
82
|
+
|
|
83
|
+
Parameters
|
|
84
|
+
----------
|
|
85
|
+
x,y : ArrayLike or float
|
|
86
|
+
Datapoints
|
|
87
|
+
|
|
88
|
+
base: float, optional
|
|
89
|
+
Log basis, default 10
|
|
90
|
+
|
|
91
|
+
fmt: str, optional
|
|
92
|
+
Style
|
|
93
|
+
|
|
94
|
+
alpha: float, optional
|
|
95
|
+
Opacity
|
|
96
|
+
|
|
97
|
+
color or c: all matplotlib color formats (without X11/xkcd), optional
|
|
98
|
+
color of line and markers: RGB/RGBA (tuple), HEX (str), grayscale (float), single-char (str), name (str), default cycle ("CX", X int), none for invisible
|
|
99
|
+
|
|
100
|
+
label: str, optional
|
|
101
|
+
Legned entry
|
|
102
|
+
|
|
103
|
+
linestyle or ls: str, optional
|
|
104
|
+
Line style
|
|
105
|
+
|
|
106
|
+
linewidth or lw: float, optional
|
|
107
|
+
Line width in pt
|
|
108
|
+
|
|
109
|
+
marker: str, optional
|
|
110
|
+
Marker type
|
|
111
|
+
|
|
112
|
+
markersize or ms: float, optional
|
|
113
|
+
Mark size in pt
|
|
114
|
+
"""
|
|
115
|
+
...
|
|
116
|
+
def errorbar(self, x: ArrayLike = ..., y: ArrayLike = ..., yerr: Optional[ArrayLike | float] = ..., xerr: Optional[ArrayLike | float] = ..., fmt: Optional[str] = ..., *, alpha: Optional[float] = ..., color: Optional[ColorLike] = ..., c: Optional[ColorLike] = ...,
|
|
117
|
+
linestyle: Optional[LineStyle] = ..., ls: Optional[LineStyle] = ..., linewidth: Optional[float]= ..., lw: Optional[float] = ...,
|
|
118
|
+
marker: Optional[MarkerStyle] = ..., markersize: Optional[float] = ..., ms: Optional[float] = ..., label:Optional[str]=...) -> None:
|
|
119
|
+
"""
|
|
120
|
+
Draw a plot with errrorbars to the selected axis.
|
|
121
|
+
|
|
122
|
+
Parameters
|
|
123
|
+
----------
|
|
124
|
+
x,y : ArrayLike or float
|
|
125
|
+
Datapoints
|
|
126
|
+
|
|
127
|
+
yerr, xerr: ArrayLike or float
|
|
128
|
+
Datapoint error (constant, symmetric, asymmetric)
|
|
129
|
+
|
|
130
|
+
fmt: str, optional
|
|
131
|
+
Style
|
|
132
|
+
|
|
133
|
+
alpha: float, optional
|
|
134
|
+
Opacity
|
|
135
|
+
|
|
136
|
+
color or c: all matplotlib color formats (without X11/xkcd), optional
|
|
137
|
+
color of line and markers: RGB/RGBA (tuple), HEX (str), grayscale (float), single-char (str), name (str), default cycle ("CX", X int), none for invisible
|
|
138
|
+
|
|
139
|
+
label: str, optional
|
|
140
|
+
Legned entry
|
|
141
|
+
|
|
142
|
+
linestyle or ls: str, optional
|
|
143
|
+
Line style
|
|
144
|
+
|
|
145
|
+
linewidth or lw: float, optional
|
|
146
|
+
Line width in pt
|
|
147
|
+
|
|
148
|
+
marker: str, optional
|
|
149
|
+
Marker type
|
|
150
|
+
|
|
151
|
+
markersize or ms: float, optional
|
|
152
|
+
Mark size in pt
|
|
153
|
+
"""
|
|
154
|
+
...
|
|
155
|
+
def stem(self, *args: Any, orientation: Literal["horizontal","vertical"] = "vertical", linefmt:Optional[str] = ..., markerfmt:Optional[str]=...,
|
|
156
|
+
label:Optional[str]=...) -> None:
|
|
157
|
+
"""
|
|
158
|
+
Draw a stem plot to the selected axis.
|
|
159
|
+
locs, heads: ArrayLike
|
|
160
|
+
Datapoints for plot, (x,y) for vertical, (y,x) for horizontal
|
|
161
|
+
|
|
162
|
+
orientation: {"vertical", "horizontal"}, default "vertical
|
|
163
|
+
Orientation of stems
|
|
164
|
+
|
|
165
|
+
alpha: float, optional
|
|
166
|
+
Opacity
|
|
167
|
+
|
|
168
|
+
linefmt, markerfmt: str, optional
|
|
169
|
+
Short style of line and marker
|
|
170
|
+
|
|
171
|
+
label: str, optional
|
|
172
|
+
Legend entry
|
|
173
|
+
"""
|
|
174
|
+
...
|
|
175
|
+
def fill_between(
|
|
176
|
+
self,
|
|
177
|
+
x: ArrayLike,
|
|
178
|
+
y1: ArrayLike,
|
|
179
|
+
y2: Optional[ArrayLike] = ...,
|
|
180
|
+
alpha: Optional[float] = ...,
|
|
181
|
+
color: Optional[ColorLike] = ...,
|
|
182
|
+
c: Optional[ColorLike] = ...
|
|
183
|
+
) -> None:
|
|
184
|
+
"""
|
|
185
|
+
Fill space between two plots (or a single plot and x-axis).
|
|
186
|
+
|
|
187
|
+
Parameters
|
|
188
|
+
----------
|
|
189
|
+
x,y1, y2 : ArrayLike or float (y2 optional)
|
|
190
|
+
Datapoints, if matched with existing plot, that line will be recycled to save tikz memory.
|
|
191
|
+
|
|
192
|
+
alpha: float, optional
|
|
193
|
+
Opacity
|
|
194
|
+
|
|
195
|
+
color or c: all matplotlib color formats (without X11/xkcd), optional
|
|
196
|
+
Fill color: RGB/RGBA (tuple), HEX (str), grayscale (float), single-char (str), name (str), default cycle ("CX", X int), none for invisible
|
|
197
|
+
|
|
198
|
+
label: str, optional
|
|
199
|
+
Legend entry
|
|
200
|
+
|
|
201
|
+
"""
|
|
202
|
+
...
|
|
203
|
+
def hlines(
|
|
204
|
+
self,
|
|
205
|
+
y: Union[float, Sequence[float]],
|
|
206
|
+
xmin: Union[float, Sequence[float]],
|
|
207
|
+
xmax: Union[float, Sequence[float]],
|
|
208
|
+
colors: Union[str, Sequence[str]] = "k",
|
|
209
|
+
linestyles: Union[str, Sequence[str]] = "solid",
|
|
210
|
+
) -> None:
|
|
211
|
+
"""
|
|
212
|
+
Draw horizontal lines to the selected axis.
|
|
213
|
+
"""
|
|
214
|
+
...
|
|
215
|
+
def hist(
|
|
216
|
+
self,
|
|
217
|
+
x: Union[ArrayLike, Sequence[ArrayLike]],
|
|
218
|
+
bins: int = ...,
|
|
219
|
+
density: bool = ...,
|
|
220
|
+
*,
|
|
221
|
+
cumulative: bool = ...,
|
|
222
|
+
orientation: Literal["horizontal","vertical"] = "vertical",
|
|
223
|
+
rwidth: Optional[float] = ...,
|
|
224
|
+
range: Optional[Tuple[float,float]] = ...,
|
|
225
|
+
color: Optional[ColorLike] = ...,
|
|
226
|
+
**kwargs: Any
|
|
227
|
+
) -> None:
|
|
228
|
+
"""
|
|
229
|
+
Draw histogram to the selected axis.
|
|
230
|
+
"""
|
|
231
|
+
...
|
|
232
|
+
|
|
233
|
+
def set_ylabel(self, label: str) -> None:
|
|
234
|
+
"""
|
|
235
|
+
Set y-axis label.
|
|
236
|
+
"""
|
|
237
|
+
...
|
|
238
|
+
def set_ylim(self, *args: Any, bottom: Optional[float] = ..., top: Optional[float] = ...) -> None:
|
|
239
|
+
"""
|
|
240
|
+
Set y-axis limit(-s). Set as tuple or as kwargs (top, bottom).
|
|
241
|
+
|
|
242
|
+
"""
|
|
243
|
+
...
|
|
244
|
+
def set_yscale(self, *args: Any, base: Optional[float] = ...) -> None:
|
|
245
|
+
"""
|
|
246
|
+
Set y-axis scale (to log).
|
|
247
|
+
"""
|
|
248
|
+
...
|
|
249
|
+
def set_yticks(self, ticks: Sequence[float], labels: Optional[Sequence[str]] = ...) -> None:
|
|
250
|
+
"""
|
|
251
|
+
Set y-axis ticks and their labels.
|
|
252
|
+
"""
|
|
253
|
+
...
|
|
254
|
+
def set_yticklabels(self, labels: Sequence[str]) -> None:
|
|
255
|
+
"""
|
|
256
|
+
Set y-axis tick labels.
|
|
257
|
+
"""
|
|
258
|
+
...
|
|
259
|
+
def legend(self, *args: Any, loc: Optional[Union[int,str,Tuple[float,float]]] = ...) -> None:
|
|
260
|
+
"""
|
|
261
|
+
Show legend for the selected axis.
|
|
262
|
+
|
|
263
|
+
Parameters
|
|
264
|
+
----------
|
|
265
|
+
*args:
|
|
266
|
+
- single arg: list/tuple, optional: list of labels to assign to axis elements (in given order assigned to plotted elements in the order of plotting). If label is used on any of the elements, the original label is overwritten.
|
|
267
|
+
- two args: list/tuple, optional: element, label - assign labels to plots (use references of plots which are returned in plot commands). In case that a plot already has a label, both will be displayed. This is the only option to merge the legend entries for double-axis (twinx) plots.
|
|
268
|
+
loc: int, str or tuple, optional
|
|
269
|
+
Location of legend (as in matplotlib: 1 - upper right, 2 - upper left, ... or with tuple of relative coordinates).
|
|
270
|
+
|
|
271
|
+
ncols: int, optional: number of columns in legend, default 1
|
|
272
|
+
"""
|
|
273
|
+
...
|
|
274
|
+
def set(self, **kwargs) -> None:
|
|
275
|
+
"""
|
|
276
|
+
Set parameter (lims, labels, ticks, ticklabels, title)
|
|
277
|
+
"""
|
|
278
|
+
...
|
|
279
|
+
|
|
280
|
+
class Axes(BaseAxes):
|
|
281
|
+
def __init__(self, nrows: int, ncols: int, index: int, fig: Any) -> None: ...
|
|
282
|
+
def loglog(self, x: ArrayLike = ..., y: ArrayLike = ..., base: Optional[float] = 10, fmt: Optional[str] = ...,*, alpha: Optional[float] = ..., color: Optional[ColorLike] = ..., c: Optional[ColorLike] = ...,
|
|
283
|
+
linestyle: Optional[LineStyle] = ..., ls: Optional[LineStyle] = ..., linewidth: Optional[float]= ..., lw: Optional[float] = ...,
|
|
284
|
+
marker: Optional[MarkerStyle] = ..., markersize: Optional[float] = ..., ms: Optional[float] = ...) -> None:
|
|
285
|
+
"""
|
|
286
|
+
Draw a general plot to the selected axis and change the current axis into log mode.
|
|
287
|
+
|
|
288
|
+
Parameters
|
|
289
|
+
----------
|
|
290
|
+
x,y : ArrayLike or float
|
|
291
|
+
Datapoints
|
|
292
|
+
|
|
293
|
+
base: float, optional
|
|
294
|
+
Log basis, default 10
|
|
295
|
+
|
|
296
|
+
fmt: str, optional
|
|
297
|
+
Style
|
|
298
|
+
|
|
299
|
+
alpha: float, optional
|
|
300
|
+
Opacity
|
|
301
|
+
|
|
302
|
+
color or c: all matplotlib color formats (without X11/xkcd), optional
|
|
303
|
+
color of line and markers: RGB/RGBA (tuple), HEX (str), grayscale (float), single-char (str), name (str), default cycle ("CX", X int), none for invisible
|
|
304
|
+
|
|
305
|
+
label: str, optional
|
|
306
|
+
Legned entry
|
|
307
|
+
|
|
308
|
+
linestyle or ls: str, optional
|
|
309
|
+
Line style
|
|
310
|
+
|
|
311
|
+
linewidth or lw: float, optional
|
|
312
|
+
Line width in pt
|
|
313
|
+
|
|
314
|
+
marker: str, optional
|
|
315
|
+
Marker type
|
|
316
|
+
|
|
317
|
+
markersize or ms: float, optional
|
|
318
|
+
Mark size in pt
|
|
319
|
+
"""
|
|
320
|
+
...
|
|
321
|
+
def semilogx(self, x: ArrayLike = ..., y: ArrayLike = ..., base: Optional[float] = 10, fmt: Optional[str] = ...,*, alpha: Optional[float] = ..., color: Optional[ColorLike] = ..., c: Optional[ColorLike] = ...,
|
|
322
|
+
linestyle: Optional[LineStyle] = ..., ls: Optional[LineStyle] = ..., linewidth: Optional[float]= ..., lw: Optional[float] = ...,
|
|
323
|
+
marker: Optional[MarkerStyle] = ..., markersize: Optional[float] = ..., ms: Optional[float] = ...) -> None:
|
|
324
|
+
"""
|
|
325
|
+
Draw a general plot to the selected axis and change the current x-axis into log mode.
|
|
326
|
+
|
|
327
|
+
Parameters
|
|
328
|
+
----------
|
|
329
|
+
x,y : ArrayLike or float
|
|
330
|
+
Datapoints
|
|
331
|
+
|
|
332
|
+
base: float, optional
|
|
333
|
+
Log basis, default 10
|
|
334
|
+
|
|
335
|
+
fmt: str, optional
|
|
336
|
+
Style
|
|
337
|
+
|
|
338
|
+
alpha: float, optional
|
|
339
|
+
Opacity
|
|
340
|
+
|
|
341
|
+
color or c: all matplotlib color formats (without X11/xkcd), optional
|
|
342
|
+
color of line and markers: RGB/RGBA (tuple), HEX (str), grayscale (float), single-char (str), name (str), default cycle ("CX", X int), none for invisible
|
|
343
|
+
|
|
344
|
+
label: str, optional
|
|
345
|
+
Legned entry
|
|
346
|
+
|
|
347
|
+
linestyle or ls: str, optional
|
|
348
|
+
Line style
|
|
349
|
+
|
|
350
|
+
linewidth or lw: float, optional
|
|
351
|
+
Line width in pt
|
|
352
|
+
|
|
353
|
+
marker: str, optional
|
|
354
|
+
Marker type
|
|
355
|
+
|
|
356
|
+
markersize or ms: float, optional
|
|
357
|
+
Mark size in pt
|
|
358
|
+
"""
|
|
359
|
+
...
|
|
360
|
+
def vlines(
|
|
361
|
+
self,
|
|
362
|
+
x: Union[float, Sequence[float]],
|
|
363
|
+
ymin: Union[float, Sequence[float]],
|
|
364
|
+
ymax: Union[float, Sequence[float]],
|
|
365
|
+
colors: Union[str, Sequence[str]] = "k",
|
|
366
|
+
linestyles: Union[str, Sequence[str]] = "solid",
|
|
367
|
+
) -> None:
|
|
368
|
+
"""
|
|
369
|
+
Draw vertical lines to the selected axis.
|
|
370
|
+
"""
|
|
371
|
+
...
|
|
372
|
+
def imshow(self, *args: Any, cmap: Optional[str] = ...) -> Tuple[Any, str, float, float]:
|
|
373
|
+
"""
|
|
374
|
+
Draw image to the selected axis from array. Uses matplotlib imshow() to export to PDF, then inputs the image to the axis. Return may be used to initialize Colorbar().
|
|
375
|
+
"""
|
|
376
|
+
...
|
|
377
|
+
def set_xlabel(self, label: str) -> None:
|
|
378
|
+
"""
|
|
379
|
+
Set x-axis label.
|
|
380
|
+
"""
|
|
381
|
+
...
|
|
382
|
+
def set_title(self, title: str) -> None:
|
|
383
|
+
"""
|
|
384
|
+
Set plot title.
|
|
385
|
+
"""
|
|
386
|
+
...
|
|
387
|
+
def grid(self, visible: bool = True, which: Literal["major","minor","both"] = "major", alpha: Optional[float] = ..., color: Optional[ColorLike] = ..., c: Optional[ColorLike] = ...,
|
|
388
|
+
linestyle: Optional[LineStyle] = ..., ls: Optional[LineStyle] = ..., linewidth: Optional[float]= ..., lw: Optional[float] = ...) -> None:
|
|
389
|
+
"""
|
|
390
|
+
Set grid.
|
|
391
|
+
|
|
392
|
+
Parameters
|
|
393
|
+
----------
|
|
394
|
+
visible: bool, default True
|
|
395
|
+
Show grid
|
|
396
|
+
which: {"major", "minor", "both"}, default "major"
|
|
397
|
+
Grid selector
|
|
398
|
+
alpha: float, optional
|
|
399
|
+
Opacity
|
|
400
|
+
color or c: all matplotlib color formats (without X11/xkcd), optional
|
|
401
|
+
Grid color: RGB/RGBA (tuple), HEX (str), grayscale (float), single-char (str), name (str), default cycle ("CX", X int), none for invisible
|
|
402
|
+
linestyle or ls: str, optional
|
|
403
|
+
Grid line style
|
|
404
|
+
linewidth or lw: float, optional
|
|
405
|
+
Grid line width in pt
|
|
406
|
+
"""
|
|
407
|
+
def set_minorticks_on(self, num: int) -> None:
|
|
408
|
+
...
|
|
409
|
+
"""
|
|
410
|
+
Set number of minor ticks between major ticks.
|
|
411
|
+
|
|
412
|
+
Parameters
|
|
413
|
+
----------
|
|
414
|
+
num: int
|
|
415
|
+
Number of minor ticks between major ticks.
|
|
416
|
+
"""
|
|
417
|
+
def set_xlim(self, *args: Any, left: Optional[float] = ..., right: Optional[float] = ...) -> None:
|
|
418
|
+
"""
|
|
419
|
+
Set x-axis limit(-s). Set as tuple or as kwargs (left, right).
|
|
420
|
+
|
|
421
|
+
"""
|
|
422
|
+
...
|
|
423
|
+
def set_xscale(self, *args: Any, base: Optional[float] = ...) -> None:
|
|
424
|
+
"""
|
|
425
|
+
Set x-axis scale (to log).
|
|
426
|
+
"""
|
|
427
|
+
...
|
|
428
|
+
def set_xticks(self, ticks: Sequence[float], labels: Optional[Sequence[str]] = ...) -> None:
|
|
429
|
+
"""
|
|
430
|
+
Set x-axis ticks and their labels.
|
|
431
|
+
"""
|
|
432
|
+
...
|
|
433
|
+
def set_xticklabels(self, labels: Sequence[str]) -> None:
|
|
434
|
+
"""
|
|
435
|
+
Set y-axis tick labels.
|
|
436
|
+
"""
|
|
437
|
+
...
|
|
438
|
+
def twinx(self) -> "Secondary":
|
|
439
|
+
"""
|
|
440
|
+
Initialize secondary y-axis.
|
|
441
|
+
"""
|
|
442
|
+
...
|
|
443
|
+
|
|
444
|
+
class Secondary(BaseAxes):
|
|
445
|
+
def __init__(self, primary: Axes) -> None: ...
|