X軸が 'datetime'型のBokehでグラフを作成しました。 残念ながら、X軸に表示されるラベルは切り捨てられます。 この切り詰めを防止するにはどうすればよいですか?x軸上で切り捨てられたボケラベル
これは私のコードです:
TOOLS = "pan,wheel_zoom,box_zoom,reset,save"
p = figure(x_axis_type="datetime", tools=TOOLS, plot_width=1000, plot_height=600, title = "Feed")
p.xaxis.formatter=DatetimeTickFormatter(
hours=["%d %B %Y"],
days=["%d %B %Y"],
months=["%d %B %Y"],
years=["%d %B %Y"],
)
p.grid.grid_line_alpha=0.3
p.line(_df.datetime, [i for i in range(len(_df.datetime))], color='firebrick', legend='Fast Ask')
output_file("bokeh.html", title="example")
output_notebook()
show(p) # open a browser
そして、これはチャート:
おかげで、 ジェラルド
ありがとうございました! – nutrina