Creating a histogram on my own, how can I sort the legend and make the identifiers look the same (besides the color)?
Or even better, how could I put the legend values directly under the x-axis?
And how can I code which part of the y-axis should be shown (e.g. it should start by 0).
Either it is not possible yet, or I can’t use the documentation (not finding the right).
Please, give some suggestions. Or hint at me if Bokeh is not right for this. I am using IPyNb for this and don’t want to use matplotlib because of the inline functionality.
Greetings
Thomas
Part of my code:
[…]
figure()
hold(False)
#I need to initiate the viewable part of the plot with an invisible rect, else most of the plot’s part would be outside the area
rect([mitten[0]],[1],
width=0, height=1, plot_width=400, color = None, plot_height=400,
title = "Histogramm")
hold(True)
for i in range(len(mitten)):
rect([mitten[i]],[anteil[i]/2],
width=balkenbreite,
height=anteil[i],
plot_width=400, plot_height=400,
color = colors.pop(),
plots = "",
legend = str(gruppenBereiche[i])+"-"+str(gruppenBereiche[i+1]))
xaxis()[0].axis_label=“Bereiche in ?”
yaxis()[0].axis_label=“Häufigkeit in %”
show()