class_docstr: Class Docstring
  
  - Styling (.style)
  - Plotting (.plot)
  - Callouts (.callout)
  - Axes (.axes)
  - Bokeh figure (.figure)
class_docstr_tok: ["Class","Docstring","-","Styling","(",".style",")","-","Plotting","(",".plot",")","-","Callouts","(",".callout",")","-","Axes","(",".axes",")","-","Bokeh","figure","(",".figure",")"]
code: def _initialize_figure(self, x_axis_type, y_axis_type):
      range_args = {}
      if x_axis_type == "categorical":
          range_args["x_range"] = []
          x_axis_type = "auto"
      if y_axis_type == "categorical":
          range_args["y_range"] = []
          y_axis_type = "auto"
      if x_axis_type == "density":
          x_axis_type = "linear"
      if y_axis_type == "density":
          y_axis_type = "linear"
      figure = bokeh.plotting.figure(
          **range_args,
          y_axis_type=y_axis_type,
          x_axis_type=x_axis_type,
          width=self.style.plot_width,
          height=self.style.plot_height,
          tools="save",
          # toolbar_location='right',
          active_drag=None,
      )
      return figure
  
imports: from collections import OrderedDict
  from functools import wraps
  import io
  from io import BytesIO
  import tempfile
  import warnings
  import bokeh
  from bokeh.io.export import _SVG_SCRIPT, wait_until_render_complete
  import bokeh.plotting
  from bokeh.embed import file_html
  from bokeh.resources import INLINE
  from IPython.display import display
  from PIL import Image
  from PIL.Image import Resampling
  from selenium import webdriver
  from selenium.webdriver.chrome.options import Options
  from chartify._core.style import Style
  from chartify._core.axes import BaseAxes, SecondYNumericalAxis, SecondAxis
  from chartify._core.plot import BasePlot
  from chartify._core.callout import Callout
  from chartify._core.options import options
label_desc: Use image node_id 3 for calling the Chart obj's underlying member method code with example usage: obj._initialize_figure(x_axis_type, y_axis_type) and returns: figure