Hello,
I am working on a Bokeh application in pure JS and HTML and this is just a basic example. Is there a reason why I cannot change some properties of figures? For example I can define the axis label when I define the figure, but I can not change the axis label afterwards. Weirdly, sometimes the opposite is true. The size of the plot can not be changed within the definition of the plot, but they can be changed after defining the plot.
Does anybody have any insight on this issue. Apologies for wrong terminology, I am new to this stuff
Thank you!
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bokeh Test</title>
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-2.3.3.min.js"></script>
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-widgets-2.3.3.min.js"></script>
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-tables-2.3.3.min.js"></script>
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-api-2.3.3.min.js"></script>
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-api-2.3.3.min.js"></script>
<script>
var g_xdr = new Bokeh.Range1d({ start: -5, end: 20 });
var g_ydr = new Bokeh.Range1d({ start: -100, end: 5000 });
var g = new Bokeh.Plotting.figure({
title: "Graph",
x_range: g_xdr,
y_range: g_ydr,
x_axis_label: "X Axis",
plot_width: 400,
plot_height: 400,
background_fill_color: "#F2F2F7"
});
g.x_axis_label_size = "30px"
g.x_axis_label = "Test"
g.plot_width = 500
Bokeh.Plotting.show(Bokeh.Plotting.gridplot([[g]]));
</script>
</head>
<body>
</body>
</html><!doctype html>