I'm trying to plot a quad plot using Bokeh. The structure of the code that's giving me errors closely resembles what I have bellow.
my_dict = {...} # has the following keys [left, right, bottom, top, color]
p = figure(width = 800, height = 800)
source= ColumnDataSource(data = my_dict)
p.quad(source,
top="top",
bottom = "bottom",
left = "left",
right = "right",
color = "color")
This yields the following error:
TypeError: quad() got multiple values for argument 'left'
The length of all lists in my dict
are equal. I checked using:
for key in my_dict.keys():
print(len(my_dict[key ]))
I'm not sure how to proceed. I've also type checked each entry for 'left' to see if it was complaining about inconsistent typing. Any ideas?