Skip to content

ValueAxisMixin

Base classes

Name Children Inherits
AbstractAxisMixin
prettyqt.charts.abstractaxis

Subclasses

Class Module Description
ValueAxis prettyqt.charts.valueaxis
CategoryAxis prettyqt.charts.categoryaxis

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: AbstractAxisMixin

Source code in prettyqt\charts\valueaxis.py
class ValueAxisMixin(charts.AbstractAxisMixin):
    def set_tick_type(self, tick_type: TickTypeStr | charts.QValueAxis.TickType):
        """Set the tick type of the legend.

        Args:
            tick_type: tick type for the legend
        """
        self.setTickType(TICK_TYPES.get_enum_value(tick_type))

    def get_tick_type(self) -> TickTypeStr:
        """Return current tick type.

        Returns:
            tick_type
        """
        return TICK_TYPES.inverse[self.tickType()]

get_tick_type() -> TickTypeStr

Return current tick type.

Source code in prettyqt\charts\valueaxis.py
def get_tick_type(self) -> TickTypeStr:
    """Return current tick type.

    Returns:
        tick_type
    """
    return TICK_TYPES.inverse[self.tickType()]

set_tick_type(tick_type: TickTypeStr | charts.QValueAxis.TickType)

Set the tick type of the legend.

Parameters:

Name Type Description Default
tick_type TickTypeStr | TickType

tick type for the legend

required
Source code in prettyqt\charts\valueaxis.py
def set_tick_type(self, tick_type: TickTypeStr | charts.QValueAxis.TickType):
    """Set the tick type of the legend.

    Args:
        tick_type: tick type for the legend
    """
    self.setTickType(TICK_TYPES.get_enum_value(tick_type))