class_docstr: Ordinal Alpha Scale
  
  Parameters
  ----------
  range :
      Range ([Minimum, Maximum]) of output alpha values.
      Should be between 0 and 1.
  {superclass_parameters}
code: def __init__(self, range: tuple[float, float] = (0.1, 1), **kwargs):
      def palette(value):
          return np.linspace(range[0], range[1], value)
  
      self.palette = palette
      scale_discrete.__init__(self, **kwargs)
  
imports: from warnings import warn
  import numpy
  from .._utils.registry import alias
  from ..doctools import document
  from ..exceptions import PlotnineWarning
  from .scale_continuous import scale_continuous
  from .scale_datetime import scale_datetime
  from .scale_discrete import scale_discrete
label_desc: Use image node_id 1 to create a new scale_alpha_ordinal object from inherited base classes: scale_discrete with example: obj = scale_alpha_ordinal(range)