Skip to content

PolarChart

Base classes

Name Children Inherits
ChartMixin
prettyqt.charts.chart
QPolarChart
PySide6.QtCharts
QPolarChart(self, /, parent: PySide6.QtWidgets.QGraphicsItem | None \= None, wFlags: PySide6.QtCore.Qt.WindowType \= Default(Qt.WindowFlags)) -> None

⋔ Inheritance diagram

graph TD
  4048374476["charts.PolarChart"]
  2717399598["charts.ChartMixin"]
  1217014474["widgets.GraphicsWidgetMixin"]
  1453500865["widgets.GraphicsObjectMixin"]
  3227531497["core.ObjectMixin"]
  2751680898["builtins.object"]
  1638127052["widgets.GraphicsItemMixin"]
  1752462451["widgets.GraphicsLayoutItemMixin"]
  1803882013["QtCharts.QPolarChart"]
  3027499738["QtCharts.QChart"]
  356746758["QtWidgets.QGraphicsWidget"]
  941044538["QtWidgets.QGraphicsObject"]
  3984060476["QtCore.QObject"]
  37984305["Shiboken.Object"]
  2584426969["QtWidgets.QGraphicsItem"]
  2053307106["QtWidgets.QGraphicsLayoutItem"]
  2717399598 --> 4048374476
  1217014474 --> 2717399598
  1453500865 --> 1217014474
  3227531497 --> 1453500865
  2751680898 --> 3227531497
  1638127052 --> 1453500865
  2751680898 --> 1638127052
  2751680898 --> 1453500865
  1752462451 --> 1217014474
  2751680898 --> 1752462451
  2751680898 --> 1217014474
  2751680898 --> 2717399598
  1803882013 --> 4048374476
  3027499738 --> 1803882013
  356746758 --> 3027499738
  941044538 --> 356746758
  3984060476 --> 941044538
  37984305 --> 3984060476
  2751680898 --> 37984305
  2584426969 --> 941044538
  37984305 --> 2584426969
  2053307106 --> 356746758
  37984305 --> 2053307106

🛈 DocStrings

Bases: ChartMixin, QPolarChart

Source code in prettyqt/charts/polarchart.py
class PolarChart(charts.ChartMixin, charts.QPolarChart):
    def add_axis(
        self,
        axis: charts.QAbstractAxis,
        orientation: PolarOrientationStr | charts.QPolarChart.PolarOrientation,
    ):
        """Add axis with given orientation."""
        self.addAxis(axis, POLAR_ORIENTATIONS.get_enum_value(orientation))

add_axis(axis: charts.QAbstractAxis, orientation: PolarOrientationStr | charts.QPolarChart.PolarOrientation)

Add axis with given orientation.

Source code in prettyqt/charts/polarchart.py
def add_axis(
    self,
    axis: charts.QAbstractAxis,
    orientation: PolarOrientationStr | charts.QPolarChart.PolarOrientation,
):
    """Add axis with given orientation."""
    self.addAxis(axis, POLAR_ORIENTATIONS.get_enum_value(orientation))

:fa-brands-github: Show source on GitHub