ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 07 Jan 2017 05:21:19 -0600Legend for histogramhttp://ask.sagemath.org/question/36210/legend-for-histogram/I can't make the legend for histograms work as I want it to. I can make a legend with the labels appear but the corresponding indicator doesn't show the colors just two black vertical lines.
Here's a minimial example:
d1=[randint(0,10) for i in range(20)]
d2=[randint(0,10) for i in range(20)]
h=histogram([d1,d2],label=["d1","d2"])
h.legend(True)
h
Any ideas?AckslSat, 07 Jan 2017 05:21:19 -0600http://ask.sagemath.org/question/36210/