我在同一个图中绘制多条线,源是相同的数据框。这导致绘图默认将 y 轴最大范围显示为 100。要查看大于 100 的值,我必须缩小。
这是当前图表 enter image description here
我可能应该使用多行来做我正在做的事情,但目前我有这个
datetime_tick_formats = {
key: ["%a %b %d %H:%M:%S"]
for key in ("seconds", "minsec", "minutes", "hourmin", "hours", "days")}
p1 = figure(title="Usage MB",plot_width=1400, plot_height=600,x_axis_type="datetime")
p1.xaxis.axis_label="Time"
p1.yaxis.axis_label="Usage(mb)"
p1.xaxis.formatter = DatetimeTickFormatter(**datetime_tick_formats)
p1.line(x='log_time',y='usage_mb',source=source_heap,line_width=2,color="red",legend_label='heap')
p1.line(x='log_time',y='usage_mb',source=source_nonheap,line_width=2,color="green",legend_label='non heap')
p1.line(x='log_time',y='usage_mb',source=source_metaspace,line_width=2,color="blue",legend_label='metaspace')
p1.line(x='log_time',y='usage_mb',source=source_compressed_class_space,line_width=2,color="black",legend_label='class space')
p1.line(x='log_time',y='usage_mb',source=source_g1_oldgen,line_width=2,color="aqua",legend_label='G1 OldGen')
p1.line(x='log_time',y='usage_mb',source=source_codecache,line_width=2,color="violet",legend_label='codecache')
有没有办法确保坐标轴自动缩放图中的多条线?