in chartify/_core/chart.py [0:0]
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