class_docstr: Base for all plot classes.
class_docstr_tok: ["Base","for","all","plot","classes","."]
docstr: Set numeric axis range based on the input data.
docstr_tok: ["Set","numeric","axis","range","based","on","the","input","data","."]
code: def _set_numeric_axis_default_format(
      self, data_frame, x_column=None, y_column=None
  ):
      """Set numeric axis range based on the input data."""
  
      if isinstance(self._chart.axes, NumericalXMixin):
          # Warn user if they try to plot date data on a non-datetime axis.
          if data_frame[x_column].dtype == "datetime64[ns]":
              raise ValueError(
                  """Set chartify.Chart(x_axis_type='datetime')
                  when plotting datetime data."""
              )
          # Warn user if they try to plot date data that hasn't been cast
          # to the proper dtype.
          elif data_frame[x_column].dtype == "O":
              raise ValueError(
                  """Attempting to plot `{}` on a numeric
                      axis. Ensure that chartify.Chart x_axis_type and y_axis_type
                      are set properly, or cast your input data appropriately.
                      """.format(
                      x_column
                  )
              )
  
      if isinstance(self._chart.axes, NumericalXMixin):
          max_x_value = data_frame[x_column].max()
          min_x_value = data_frame[x_column].min()
          max_x_value, min_x_value = max(max_x_value, 0), min(
              min_x_value, 0
          )
          self._chart.axes.set_xaxis_tick_format(
              self._axis_format_precision(max_x_value, min_x_value)
          )
  
      if isinstance(self._chart.axes, NumericalYMixin):
          max_y_value = data_frame[y_column].max()
          min_y_value = data_frame[y_column].min()
          max_y_value, min_y_value = max(max_y_value, 0), min(
              min_y_value, 0
          )
          self._chart.axes.set_yaxis_tick_format(
              self._axis_format_precision(max_y_value, min_y_value)
          )
  
imports: import bokeh
  import pandas
  import numpy
  from chartify._core.colors import Color, color_palettes
  from chartify._core.axes import NumericalYMixin, NumericalXMixin
  from scipy.stats import gaussian_kde
label_desc: Use image node_id 10 for calling the BasePlot obj's underlying member method code with example usage: obj._set_numeric_axis_default_format(data_frame, x_column, y_column) without return types