Re: [Tutor] Help with Matplotlib labels

2012-06-19 Thread Mark Lawrence
On 19/06/2012 00:46, Alan Gauld wrote: On 19/06/12 00:13, Sean Carolan wrote: and not the total of all the individual items. Anyone matplotlib experts out there who can weigh in? Not me, but I notice there is a gmane newsfeed for matplotlib: gmane.comp.python.matplotlib.general Probably wor

Re: [Tutor] Help with Matplotlib labels

2012-06-18 Thread Sean Carolan
> I also noticed another issue with my stacked bar graph; the total > height of the bar is the size of the largest number of the dataset, > and not the total of all the individual items.  Anyone matplotlib > experts out there who can weigh in? I figured out what was going on here; the bars were al

Re: [Tutor] Help with Matplotlib labels

2012-06-18 Thread Sean Carolan
> Unfortunately my graph is generated dynamically. How can I create my > legend when my 'bar' objects have no names to refer to? > >    for admin in bd: >        bar(ind, bd[admin], width, color=colordict[admin]) >    xticks(ind+width/2., datenames) >    legend() >    grid('on') >    outfile = 'tes

Re: [Tutor] Help with Matplotlib labels

2012-06-18 Thread Sean Carolan
> Not me, but I notice there is a gmane newsfeed for matplotlib: > > gmane.comp.python.matplotlib.general > > Probably worth posting questions there. Thank you, I will inquire on the newsfeed. ___ Tutor maillist - Tutor@python.org To unsubscribe or cha

Re: [Tutor] Help with Matplotlib labels

2012-06-18 Thread Alan Gauld
On 19/06/12 00:13, Sean Carolan wrote: and not the total of all the individual items. Anyone matplotlib experts out there who can weigh in? Not me, but I notice there is a gmane newsfeed for matplotlib: gmane.comp.python.matplotlib.general Probably worth posting questions there. -- Alan G

Re: [Tutor] Help with Matplotlib labels

2012-06-18 Thread Sean Carolan
> Unfortunately my graph is generated dynamically. How can I create my > legend when my 'bar' objects have no names to refer to? I also noticed another issue with my stacked bar graph; the total height of the bar is the size of the largest number of the dataset, and not the total of all the indivi

[Tutor] Help with Matplotlib labels

2012-06-18 Thread Sean Carolan
I'm working on a simple python web app that generates graphs, because managers love graphs. I've got it about 90% done, but I'm having trouble getting labels onto my stacked graph. In the matplotlib documentation there is a nice example showing how to create the legend. Note how the variables p1