Hi,
I read the legend guide, so when I did this:
ax.legend([Circle((0,0),1,fc='red')], ['red circle'])
I expected the symbol in the legend to be a red circle, but got a red
rectangle. In fact, no matter what artists I pass in as the first
argument, the legend shows rectangles (the colors are co
I am trying to plot a line area graph similar to a stacked bar chart.
E.g
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
ax = fig.add_subplot(111)
ind = np.arange(3)
y1 = np.array([1,2,3])
y2 = y1 * 2
a = ax.fill_between(ind, y1, np.zeros(len(ind)), facecolor='r')
b = ax.fil
Hi,
Unfortunately, the current legend frame work does not support errorbars.
And I don't think implementing this is easy. The thing is that
errorbar creates multiple artists instead of single one.
The best workaround I can think of is to make the legend only with
markers (and lines if you want),
Hi,
This script will not show the correct symbol in the legend for any errorbar
plots after the first one. The actual plots do show the correct symbols. I
am using the Enthought Python distribution 2.52001 for windows. I believe
that Matplotlib 0.91 is the included version. The code is as follows
I'm sure the radio silence to your question is just due to holidays.
Thanks for looking into this. I'd be happy to incorporate your patch
when it is ready.
As for your question about plots that can include patches -- patches are
virtually anything plotted that aren't lines or images. This inc