class_docstr: Discrete Stroke Scale
  
  Parameters
  ----------
  range :
      Range ([Minimum, Maximum]) of output stroke values.
      Should be between 0 and 1.
  {superclass_parameters}
class_docstr_tok: ["Discrete","Stroke","Scale","Parameters","--","--","--","--","--","range",":","Range","(","[","Minimum",",","Maximum","]",")","of","output","stroke","values",".","Should","be","between","0","and","1",".","{","superclass_parameters","}"]
code: def __init__(self, range: tuple[float, float] = (1, 6), **kwargs):
      def palette(value: int):
          return np.linspace(range[0], range[1], value)
  
      self.palette = palette
      scale_discrete.__init__(self, **kwargs)
  
file_path: plotnine/plotnine/scales/scale_stroke.py
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_discrete import scale_discrete
label_desc: Use image node_id 1 to create a new scale_stroke_ordinal object from inherited base classes: scale_discrete with example: obj = scale_stroke_ordinal(range)