Open daviddoji opened 3 years ago
You need to erase/comment the following lines:
plot!(Shape([],[]),color=6,label=yi)
the Shape method there doesn't work anymore.
my workaround to plot the legend correctly was:
years_of_interst = ["2010-02","2020-02"]
...
if si==states_of_interest[end]
violin!([si], curprices,alpha=0.8,side=:right,color=7,label=yi)
else
violin!([si], curprices,alpha=0.8,side=:right,color=7,label="")
end
same for the other year. Check that I changed the type of the year_of_interest
so that the label kwarg works.
When executing the last cell of the "Plot 1: Symmetric violin plots and annotations" section, the notebook throws the following error:
I'm using Julia 1.6.0. Same happens to you apparently :)