code: def ylim(*limits):
      """
      This is a shortcut for supplying the `limits` parameter to the y axis.
      Observations outside the range will be dropped.
      
      Parameters
      ----------
      limits
          Limits (2 parameters) for the y axis.
          1st parameter defines lower limit, 2nd parameter defines upper limit.
          None value means no bounds.
  
      Returns
      -------
      `FeatureSpec`
          Scale specification.
  
      Examples
      --------
      .. jupyter-execute::
          :linenos:
          :emphasize-lines: 9
  
          import numpy as np
          from lets_plot import *
          LetsPlot.setup_html()
          n = 1000
          np.random.seed(42)
          x = np.random.normal(size=n)
          y = np.random.normal(size=n)
          ggplot({'x': x, 'y': y}, aes('x', 'y')) + \\
              geom_point() + ylim(-1, 1)
  
      """
      return _limits("y", *limits)
  
file_path: lets-plot/python-package/lets_plot/plot/scale_convenience.py
imports: from .core import DummySpec
  from .scale_position import scale_x_continuous, scale_y_continuous, scale_x_discrete, scale_y_discrete
label_desc: Use image node_id 3 for calling a global function with example usage: ylim() and returns: _limits