From: David Epstein <davideps@um...> - 2010-04-28 07:48:05
I'm trying to generate a single legend for a matrix of subplots. The
larger script uses the "tabular" module. I was not able to do a legend
that fit correctly, so I'm creating one in another figure. I'm plotting
again, but the point is just to create labels and line styles. I'm sure
there is a better way. I look up line style information from a "tabular"
table. Here is the problem: each row is read once and those that matche
the "if" statement are plotted once--but somehow generate TWO LABELS in
the legend. How is that possible?! I've attached a code snippet below. I
apologize for any sloppy coding--I'm new to python.
for row in range(len(naics_styles)):
if len(str(naics_styles[row]['Code'])) == 4:
From: Jae-Joon Lee <lee.joon@gm...> - 2010-05-02 01:00:57
On Wed, Apr 28, 2010 at 3:48 AM, David Epstein <davideps@...> wrote:
> Here is the problem: each row is read once and those that matche
> the "if" statement are plotted once--but somehow generate TWO LABELS in
> the legend. How is that possible?! I've attached a code snippet below. I
> apologize for any sloppy coding--I'm new to python.
Please post a simple, but complete code that reproduces your problem.