I am trying to plot line chart for the length of the list "w" in below code. when i use spectral11 from bokeh all i get are only 11 lines on the chart where as the list contain 24 parameters. are there any other palettes which allows me to plot all the lines from the list "w"
#Import the library
import pandas
import bokeh
import MySQLdb
from bokeh.plotting import figure, output_file, show
from bokeh.palettes import Spectral11
w=['F1','F2','F3','F4','F5','F6','F7','F8','F9','F10','F11','F12','G1','G2','G3','G4','G5','G6','G7','G8','G9','G10','G11','G12']
p = figure(plot_width=800, plot_height=500, x_axis_type="datetime")
p.title.text = 'Click on legend entries to hide the corresponding lines'
# Open database connection
db = MySQLdb.connect("localhost","user","password","db" )
In the below for loop only 11 dataframes are formed which eventually plotting those 11 lines.
for name, color in zip(w, Spectral11):
stmnt='select date_time,col1,w,test_value from db where w="%s"'%(name)
df=pandas.read_sql(stmnt,con=db)
p.line(df['date_time'], df['test_value'], line_width=2, color=color, alpha=0.8, legend=name)
p.legend.location = "top_left"
p.legend.click_policy="hide"
output_file("interactive_legend.html", title="interactive_legend.py example")
show(p)



wellsorSpectra11(although the fact that it is named "11" and you have 11 plots seems to not be a coincidence...). Are you sure you're supposed to get 24 plots?