Legend
Base classes
Name | Children | Inherits |
---|---|---|
GraphicsWidgetMixin prettyqt.widgets.graphicswidget |
⋔ Inheritance diagram
graph TD
1473367687856["charts.Legend"]
1473296164144["widgets.GraphicsWidgetMixin"]
1473293697024["widgets.GraphicsObjectMixin"]
1473299815024["core.ObjectMixin"]
140713234304496["builtins.object"]
1473293706784["widgets.GraphicsItemMixin"]
1473293712640["widgets.GraphicsLayoutItemMixin"]
1473296164144 --> 1473367687856
1473293697024 --> 1473296164144
1473299815024 --> 1473293697024
140713234304496 --> 1473299815024
1473293706784 --> 1473293697024
140713234304496 --> 1473293706784
1473293712640 --> 1473296164144
140713234304496 --> 1473293712640
🛈 DocStrings
Bases: GraphicsWidgetMixin
Source code in prettyqt\charts\legend.py
get_alignment() -> constants.SideStr
get_marker_shape() -> MarkerShapeStr
set_alignment(alignment: constants.SideStr | QtCharts.QLegend.MarkerShape)
Set the alignment of the legend.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
alignment |
SideStr | MarkerShape
|
alignment for the legend |
required |
set_marker_shape(shape: MarkerShapeStr)
Set the marker shape.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
shape |
MarkerShapeStr
|
marker shape |
required |