'How do I erase the double axis in my bokeh plot
#output to file
output_file('index.html', title='Sales Volume')
# Create a ColumnDataSource
sales_cds = ColumnDataSource(df_panda)
# Create and configure the figure
fig = figure(x_axis_type='datetime',
plot_height=300, plot_width=600,
title='Sales Volume',
x_axis_label='Date', y_axis_label='Amount',
toolbar_location=None)
# Render the figure
glyph = VBar(x="Date", top="Earning", bottom=0, width=0.1, fill_color="#b3de69")
fig.add_glyph(sales_cds, glyph)
xaxis = LinearAxis()
fig.add_layout(xaxis, 'below')
yaxis = LinearAxis()
fig.add_layout(yaxis, 'left')
# Move the legend to the upper left corner
fig.legend.location = 'top_left'
# Preview and save
show(fig) # See what I made, and save if I like it
How do I erase the double axis on the left side of my plot and below my plot, that you see in the image above?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
