[Matplotlib-users] discrepancy between plotted line styles and legend styles?

2008-04-09 Thread Joseph Xu
Hi: I'm having a problem where the lines I plot show up in one style (all solid, with different colors) while the legend shows them to be a different style (all blue, different dashes). I used the following code to plot: labels = [] dir_names = {'U' : 'UP', 'D' : 'DOWN', 'L' : 'LEFT', 'R' :

[Matplotlib-users] multicolor concatenated text.

2008-04-09 Thread Olivier De Wolf
Hi, I would like to add a Text that has three colors, bbb, , where is in blue, is in green and in red. I am able to create three texts but how can I have them position 'side by side'? Thanks, Olivier

Re: [Matplotlib-users] multicolor concatenated text.

2008-04-09 Thread Michael Droettboom
Unfortunately, matplotlib doesn't automatically provide anything like the rich text formatting you describe. The best you could do is to manually position the text. Cheers, Mike Olivier De Wolf wrote: Hi, I would like to add a Text that has three colors, bbb, , where

Re: [Matplotlib-users] discrepancy between plotted line styles and legend styles?

2008-04-09 Thread Joseph Xu
That worked, thanks. On Wed, Apr 9, 2008 at 5:42 AM, Matthias Michler [EMAIL PROTECTED] wrote: Hello Joseph, I'm not sure I understand correctly, but it seems to me that the number of plotted lines (from errorbar, len(gca().lines) ) is large compared to your 3 labels. That's why only the

Re: [Matplotlib-users] matplotlib threadsafe?

2008-04-09 Thread Chris Withers
Eric Firing wrote: Out of interest, how does one tell MPL to start a new figure and forget everything that's gone before? You can minimize the amount of package and module-level state information by using the oo interface: see examples/agg_oo.py. I tried this example, and it generates

[Matplotlib-users] location of figure window

2008-04-09 Thread Chris Withers
Hey All, Is there any way I can control the location that a tk figure window is shown on screen? I can control the size fine with: pylab.figure(figsize=(10,10)) ...but this produces a figure that, while it's the right size, is rendered with the top left of the window in the middle of the

Re: [Matplotlib-users] matplotlib threadsafe?

2008-04-09 Thread Eric Firing
Chris Withers wrote: Eric Firing wrote: Out of interest, how does one tell MPL to start a new figure and forget everything that's gone before? You can minimize the amount of package and module-level state information by using the oo interface: see examples/agg_oo.py. I tried this