class_docstr: Draw a spline using the given handle coordinates and handle
  codes. The constructor accepts a tuple in format (coords, codes).
  
  Follows format of matplotlib spline definitions as used in
  matplotlib.path.Path with the following codes:
  
  Path.STOP     : 0
  Path.MOVETO   : 1
  Path.LINETO   : 2
  Path.CURVE3   : 3
  Path.CURVE4   : 4
  Path.CLOSEPLOY: 79
class_docstr_tok: ["Draw","a","spline","using","the","given","handle","coordinates","and","handle","codes",".","The","constructor","accepts","a","tuple","in","format","(","coords",",","codes",")",".","Follows","format","of","matplotlib","spline","definitions","as","used","in","matplotlib.path.Path","with","the","following","codes",":","Path.STOP",":","0","Path.MOVETO",":","1","Path.LINETO",":","2","Path.CURVE3",":","3","Path.CURVE4",":","4","Path.CLOSEPLOY",":","79"]
docstr: Return the values along the requested dimension.
  
  Args:
      dimension: The dimension to return values for
      expanded (bool, optional): Whether to expand values
      flat (bool, optional): Whether to flatten array
  
  Returns:
      NumPy array of values along the requested dimension
code: def dimension_values(self, dimension, expanded=True, flat=True):
      """Return the values along the requested dimension.
  
      Args:
          dimension: The dimension to return values for
          expanded (bool, optional): Whether to expand values
          flat (bool, optional): Whether to flatten array
  
      Returns:
          NumPy array of values along the requested dimension
      """
      index = self.get_dimension_index(dimension)
      if index in [0, 1]:
          return np.array([point[index] for point in self.data[0]])
      else:
          return super().dimension_values(dimension)
  
imports: from numbers import Number
  import numpy
  import param
  from ..core import Dimension, Element, Element2D
  from ..core.data import Dataset
  from ..core.util import datetime_types
label_desc: Use image node_id 3 for calling the Spline obj's underlying member method code with example usage: obj.dimension_values(dimension, expanded, flat) and returns: np, super