code: def _get_xdata_for_function(self, n, xdata):
          
          
          # Use the xdata itself for the function
          if self['fpoints'][n] in [None, 0]: return _n.array(xdata)
              
          # Otherwise, generate xdata with the number of fpoints
          
          # do exponential ranging if xscale is log
          if self['xscale'][n] == 'log':
              return _n.logspace(_n.log10(min(xdata)), _n.log10(max(xdata)),
                                 self['fpoints'][n], True, 10.0)
          
          # otherwise do linear spacing
          else:
              return _n.linspace(min(xdata), max(xdata), self['fpoints'][n])
docs: Generates the x-data for plotting the function.
          
          Parameters
          ----------
          n
              Which data set we're using
          xdata
              Data set upon which to base this
  
          Returns
          -------
          float