Skip to content

ValueAxisMixin

Sub classes

Name Children Inherits
ValueAxis
prettyqt.charts.valueaxis
    CategoryAxis
    prettyqt.charts.categoryaxis

      Base classes

      Name Children Inherits
      AbstractAxisMixin
      prettyqt.charts.abstractaxis

      ⋔ Inheritance diagram

      graph TD
        3516352003["charts.ValueAxisMixin"]
        1234850145["charts.AbstractAxisMixin"]
        3227531497["core.ObjectMixin"]
        2751680898["builtins.object"]
        1234850145 --> 3516352003
        3227531497 --> 1234850145
        2751680898 --> 3227531497

      🛈 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))
      

      :fa-brands-github: Show source on GitHub