parameters: (self, convergence, variable, ref_variable=None, ax=None, add_labels=True, **kwargs)
docstring: Add a plot to the given axes.
  
          Parameters
          ----------
          convergence : str
              'spatial' or 'temporal'
          variable : str
              The name of the error variable to plot
          ref_variable : str
              If it is specified, the variable will be scaled to it
          ax : Axes
              An axes instance. Optional
          add_labels : bool
              Add labels to the plot
          kwargs
              Other arguments to pass to the plot
docstring_summary: Add a plot to the given axes.
docstring_tokens: Add a plot to the given axes .
function: def Plot(self, convergence, variable, ref_variable=None, ax=None, add_labels=True, **kwargs):
          '''Add a plot to the given axes.
  
          Parameters
          ----------
          convergence : str
              'spatial' or 'temporal'
          variable : str
              The name of the error variable to plot
          ref_variable : str
              If it is specified, the variable will be scaled to it
          ax : Axes
              An axes instance. Optional
          add_labels : bool
              Add labels to the plot
          kwargs
              Other arguments to pass to the plot
          '''
          # Get the data
          error, increments = self._GetData(convergence, variable, ref_variable)
  
          # Get the labels
          x_label, y_label = self._GetLabels(convergence, add_labels)
  
          # Generate the figure
          if ax is None:
              ax = plt.gca()
          if len(error) > 0:
              ax.loglog(increments, error, **kwargs)
              ax.set_xlabel(x_label)
              ax.set_ylabel(y_label)
          else:
              print("[WARNING]: There is no data to plot")
function_tokens: def Plot ( self , convergence , variable , ref_variable = None , ax = None , add_labels = True , * * kwargs ) : # Get the data error , increments = self . _GetData ( convergence , variable , ref_variable ) # Get the labels x_label , y_label = self . _GetLabels ( convergence , add_labels ) # Generate the figure if ax is None : ax = plt . gca ( ) if len ( error ) > 0 : ax . loglog ( increments , error , * * kwargs ) ax . set_xlabel ( x_label ) ax . set_ylabel ( y_label ) else : print ( "[WARNING]: There is no data to plot" )