Legend
Base classes
| Name | Children | Inherits |
|---|---|---|
| GraphicsWidgetMixin prettyqt.widgets.graphicswidget |
⋔ Inheritance diagram
graph TD
2201910579["charts.Legend"]
1217014474["widgets.GraphicsWidgetMixin"]
1453500865["widgets.GraphicsObjectMixin"]
3227531497["core.ObjectMixin"]
2751680898["builtins.object"]
1638127052["widgets.GraphicsItemMixin"]
1752462451["widgets.GraphicsLayoutItemMixin"]
1217014474 --> 2201910579
1453500865 --> 1217014474
3227531497 --> 1453500865
2751680898 --> 3227531497
1638127052 --> 1453500865
2751680898 --> 1638127052
2751680898 --> 1453500865
1752462451 --> 1217014474
2751680898 --> 1752462451
2751680898 --> 1217014474
🛈 DocStrings
Bases: GraphicsWidgetMixin
Source code in prettyqt/charts/legend.py
get_alignment() -> constants.SideStr
get_marker_shape() -> MarkerShapeStr
set_alignment(alignment: constants.SideStr | constants.AlignmentFlag)
Set the alignment of the legend.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
alignment
|
SideStr | AlignmentFlag
|
alignment for the legend |
required |
set_marker_shape(shape: MarkerShapeStr)
Set the marker shape.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
shape
|
MarkerShapeStr
|
marker shape |
required |