ChartMixin
Base classes
Name | Children | Inherits |
---|---|---|
GraphicsWidgetMixin prettyqt.widgets.graphicswidget |
Subclasses
Class | Module | Description |
---|---|---|
Chart | prettyqt.charts.chart | |
PolarChart | prettyqt.charts.polarchart |
⋔ Inheritance diagram
graph TD
1473367661504["charts.ChartMixin"]
1473296164144["widgets.GraphicsWidgetMixin"]
1473293697024["widgets.GraphicsObjectMixin"]
1473299815024["core.ObjectMixin"]
140713234304496["builtins.object"]
1473293706784["widgets.GraphicsItemMixin"]
1473293712640["widgets.GraphicsLayoutItemMixin"]
1473296164144 --> 1473367661504
1473293697024 --> 1473296164144
1473299815024 --> 1473293697024
140713234304496 --> 1473299815024
1473293706784 --> 1473293697024
140713234304496 --> 1473293706784
1473293712640 --> 1473296164144
140713234304496 --> 1473293712640
🛈 DocStrings
Bases: GraphicsWidgetMixin
Source code in prettyqt\charts\chart.py
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 |
|
adjust_style_to_palette()
Adjusts the chart theme to current Palette.
Checks if palette is dark-ish and applies an appropriate theme to the chart.
Source code in prettyqt\charts\chart.py
apply_nice_numbers()
get_axes(orientation: constants.OrientationStr | constants.Orientation | None = None, series: charts.QAbstractBarSeries | None = None) -> list[charts.QAbstractAxis]
Get axes of chart.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
orientation |
OrientationStr | Orientation | None
|
Orientation of the axes that should get returned. |
None
|
series |
QAbstractBarSeries | None
|
Series to return axes for. Returns all axes if None. |
None
|
Source code in prettyqt\charts\chart.py
set_legend_alignment(alignment: constants.SideStr | constants.AlignmentFlag)
update_boundaries()
Set new min/max values based on axis.
Source code in prettyqt\charts\chart.py
zoom_by_factor(factor: float)
Zoom in/out by factor (1.0 = no change).
Make sure that we dont zoom out too far