forked from bschnurr/python-type-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlegend.pyi
More file actions
94 lines (91 loc) · 2.97 KB
/
Copy pathlegend.pyi
File metadata and controls
94 lines (91 loc) · 2.97 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
from .font_manager import FontProperties
from typing import Literal, Sequence
from .transforms import Bbox, BboxBase, Transform
from .text import Text
from .backend_bases import Event, RendererBase
from .patches import Patch, Rectangle
from .lines import Line2D
from .figure import Figure
from .axes import Axes
from .artist import Artist, allow_rasterization
from .offsetbox import DraggableOffsetBox
class DraggableLegend(DraggableOffsetBox):
def __init__(
self, legend: Legend, use_blit: bool = ..., update: Literal["loc", "bbox"] = ...
) -> None: ...
def finalize_offset(self): ...
class Legend(Artist):
codes = ...
zorder = ...
def __str__(self) -> str: ...
def __init__(
self,
parent: Axes | Figure,
handles: Sequence[Artist],
labels: Sequence[str],
loc=...,
numpoints=...,
markerscale=...,
markerfirst=...,
scatterpoints=...,
scatteryoffsets=...,
prop=...,
fontsize=...,
labelcolor=...,
borderpad=...,
labelspacing=...,
handlelength=...,
handleheight=...,
handletextpad=...,
borderaxespad=...,
columnspacing=...,
ncols=...,
mode=...,
fancybox=...,
shadow=...,
title=...,
title_fontsize=...,
framealpha=...,
edgecolor=...,
facecolor=...,
bbox_to_anchor=...,
bbox_transform=...,
frameon=...,
handler_map=...,
title_fontproperties=...,
*,
ncol=...
) -> None: ...
def set_ncols(self, ncols: int) -> None: ...
@allow_rasterization
def draw(self, renderer: RendererBase): ...
@classmethod
def get_default_handler_map(cls): ...
@classmethod
def set_default_handler_map(cls, handler_map: dict): ...
@classmethod
def update_default_handler_map(cls, handler_map: dict): ...
def get_legend_handler_map(self) -> dict: ...
@staticmethod
def get_legend_handler(legend_handler_map: dict, orig_handle): ...
def get_children(self): ...
def get_frame(self) -> Rectangle: ...
def get_lines(self) -> list[Line2D]: ...
def get_patches(self) -> list[Patch]: ...
def get_texts(self) -> list[Text]: ...
def set_title(self, title, prop: FontProperties = ...)-> None: ...
def get_title(self) -> Text: ...
def get_window_extent(self, renderer: RendererBase = ...): ...
def get_tightbbox(self, renderer: RendererBase = ...) -> Bbox: ...
def get_frame_on(self) -> bool: ...
def set_frame_on(self, b: bool) -> None: ...
draw_frame = ...
def get_bbox_to_anchor(self) -> Bbox: ...
def set_bbox_to_anchor(
self, bbox: BboxBase | Sequence[float] | None, transform: Transform = ...
) -> None: ...
def contains(self, event: Event) -> bool: ...
def set_draggable(
self, state: bool, use_blit: bool = ..., update: Literal["loc", "bbox"] = ...
) -> DraggableLegend: ...
def get_draggable(self) -> bool: ...