1. 因此,我们需要手动调整尺寸以使图更好 from bokeh.transform import factor_cmapfrom bokeh.palettes import Spectral6p = figure(x_range=list(titanic_groupby['class']))p.vbar(x='class', top='survived', width=0.9, source = titanic_groupby, fill_color=factor_cmap('class', palette=Spectral6, ...
When we did this, it changed the line colors to colors that are in the ‘hls’ palette. Python actually has avariety of color palettes. When you’re creating line charts, where each line represents a different category, I recommend that you use a “qualitative” color palette. Python has ...