class_docstr: List of scales
  
  This class has methods the simplify the handling of
  the ggplot object scales
class_docstr_tok: ["List","of","scales","This","class","has","methods","the","simplify","the","handling","of","the","ggplot","object","scales"]
docstr: Return a list of the position scales that are present
docstr_tok: ["Return","a","list","of","the","position","scales","that","are","present"]
code: def position_scales(self) -> Scales:
      """
      Return a list of the position scales that are present
      """
      l = [
          s
          for s in self
          if ("x" in s.aesthetics) or ("y" in s.aesthetics)
      ]
      return Scales(l)
  
imports: from __future__ import annotations
  import itertools
  import typing
  from contextlib import suppress
  from typing import List
  from warnings import warn
  import numpy
  import pandas.api.types
  from .._utils import array_kind
  from .._utils.registry import Registry
  from ..exceptions import PlotnineError, PlotnineWarning
  from ..mapping.aes import aes_to_scale
  from .scale import scale
label_desc: Use image node_id 8 for calling the Scales obj's underlying member method code with example usage: obj.position_scales() and returns: Scales