散景:如何将y轴刻度从整数的子单位改为整数(即​​1,2,3)

时间:2017-06-22 19:27:08

标签: python django bokeh

The improperly formatted y axis graph units

这是我的Django app views.py

中的伴随python代码
plot2 = figure(title= title2,
               x_axis_label= 'Date',
               x_axis_type= 'datetime',
               y_axis_label= 'Ease of Sleep',
               y_axis_type='linear',
               plot_width =400,
               plot_height=400)

plot1.scatter(chart_values_x_graph1, 
              chart_values_y_graph1, 
              legend= 'f(x)', 
              line_width = 2)

script1, div1 = components(plot1, CDN)

plot2.scatter(chart_values_x_graph2, 
              chart_values_y_graph2, 
              legend='1 = Easily; 2 = After Some Time; 3 = With Difficulty', 
              line_width = 2)

script2, div2 = components(plot2, CDN)

0 个答案:

没有答案