Skip to content

AbstractAxisMixin

Base classes

Name Children Inherits
ObjectMixin
prettyqt.core.object

Subclasses

Class Module Description
AbstractAxis prettyqt.charts.abstractaxis
ValueAxisMixin prettyqt.charts.valueaxis
DateTimeAxis prettyqt.charts.datetimeaxis
LogValueAxis prettyqt.charts.logvalueaxis
BarCategoryAxis prettyqt.charts.barcategoryaxis

⋔ Inheritance diagram

graph TD
  1473367646864["charts.AbstractAxisMixin"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473299815024 --> 1473367646864
  140713234304496 --> 1473299815024

🛈 DocStrings

Bases: ObjectMixin

Source code in prettyqt\charts\abstractaxis.py
class AbstractAxisMixin(core.ObjectMixin):
    def get_alignment(self) -> constants.SideStr | None:
        """Return current alignment.

        Returns:
            alignment
        """
        alignment = self.alignment()
        if alignment == constants.ALIGN_NONE:
            return None
        return constants.SIDES.inverse[alignment]

    def get_orientation(self) -> constants.OrientationStr | None:
        """Return current orientation.

        Returns:
            orientation
        """
        orientation = self.orientation()
        if orientation == constants.ORIENTATION_NONE:
            return None
        return constants.ORIENTATION.inverse[orientation]

    def get_grid_line_color(self) -> gui.Color:
        return gui.Color(self.gridLineColor())

    def get_grid_line_pen(self) -> gui.Pen:
        return gui.Pen(self.gridLinePen())

    def get_line_pen(self) -> gui.Pen:
        return gui.Pen(self.linePen())

    def get_line_pen_color(self) -> gui.Color:
        return gui.Color(self.linePenColor())

    def get_labels_color(self) -> gui.Color:
        return gui.Color(self.labelsColor())

    def get_labels_brush(self) -> gui.Brush:
        return gui.Brush(self.labelsBrush())

    def get_labels_font(self) -> gui.Font:
        return gui.Font(self.labelsFont())

    def get_title_font(self) -> gui.Font:
        return gui.Font(self.titleFont())

    def get_title_brush(self) -> gui.Brush:
        return gui.Brush(self.titleBrush())

    def get_shades_color(self) -> gui.Color:
        return gui.Color(self.shadesColor())

    def get_shades_brush(self) -> gui.Brush:
        return gui.Brush(self.shadesBrush())

    def get_shades_pen(self) -> gui.Pen:
        return gui.Pen(self.shadesPen())

    def get_shades_border_color(self) -> gui.Color:
        return gui.Color(self.shadesBorderColor())

    def get_minor_grid_line_pen(self) -> gui.Pen:
        return gui.Pen(self.minorGridLinePen())

    def get_minor_grid_line_color(self) -> gui.Color:
        return gui.Color(self.minorGridLineColor())

get_alignment() -> constants.SideStr | None

Return current alignment.

Source code in prettyqt\charts\abstractaxis.py
def get_alignment(self) -> constants.SideStr | None:
    """Return current alignment.

    Returns:
        alignment
    """
    alignment = self.alignment()
    if alignment == constants.ALIGN_NONE:
        return None
    return constants.SIDES.inverse[alignment]

get_orientation() -> constants.OrientationStr | None

Return current orientation.

Source code in prettyqt\charts\abstractaxis.py
def get_orientation(self) -> constants.OrientationStr | None:
    """Return current orientation.

    Returns:
        orientation
    """
    orientation = self.orientation()
    if orientation == constants.ORIENTATION_NONE:
        return None
    return constants.ORIENTATION.inverse[orientation]