Re: [Matplotlib-users] figure facecolor lost during save

2007-09-14 Thread fatuheeva
Darren Dale <[EMAIL PROTECTED]> wrote: On Friday 14 September 2007 02:19:35 pm fatuheeva wrote: > Hello, > I can successfully change the facecolor in a figure but when I try and save > it to a file (jpg or png) the color goes away - the rest of the plot > remains only the facecolor reverts to wh

Re: [Matplotlib-users] figure facecolor lost during save

2007-09-14 Thread Darren Dale
On Friday 14 September 2007 02:19:35 pm fatuheeva wrote: > Hello, > I can successfully change the facecolor in a figure but when I try and save > it to a file (jpg or png) the color goes away - the rest of the plot > remains only the facecolor reverts to white. I have tried using GTK and > GTKAgg.

[Matplotlib-users] figure facecolor lost during save

2007-09-14 Thread fatuheeva
Hello, I can successfully change the facecolor in a figure but when I try and save it to a file (jpg or png) the color goes away - the rest of the plot remains only the facecolor reverts to white. I have tried using GTK and GTKAgg. I have also tried changing the 'savefig' value in the RC file

[Matplotlib-users] strange placement of bars with log=True

2007-09-14 Thread jetxee
Hello, I noticed, that bar() with log=True plots very strange graphs. In fact, the bars in this case grow from the bottom of the graph (I guess from the value of log(+0), i.e. -∞). This way the relative height of the bars says almost nothing about the value of data, because the bars are higher, th

Re: [Matplotlib-users] hatching background

2007-09-14 Thread Jouni K . Seppänen
Christian Meesters <[EMAIL PROTECTED]> writes: > is it somehow possible to have a hatch in parts of the background, which > would achieve something like this pseudo-parameter to axvspan > pylab.axvspan(2, 10, hatch='//')? Do you mean something like this? In [34]: phi=pi*array((0,.2,.4,.6,.8,1,-

Re: [Matplotlib-users] eliminating end labels on axes

2007-09-14 Thread Jouni K . Seppänen
James Boyle <[EMAIL PROTECTED]> writes: > I have not been able to figure out how to just make the first and > last ytick labels vanish. [...] > I thought that the following might work but this just makes all the > labels disappear - my understanding is incomplete. > ytl = a.get_yticklabels

Re: [Matplotlib-users] bar graph and legend

2007-09-14 Thread Gianluca Santarossa
> You want legend((bar1[0],bar2[0]), ('First','Second')). What happened > was that matplotlib made a legend entry for two of the blue bars in > bar1; it would have made six entries, but stopped because you only gave > it two labels. > > Dear Jouni, thanks for all the answers. Gianluca ---

Re: [Matplotlib-users] bar graph and legend

2007-09-14 Thread Jouni K . Seppänen
Gianluca Santarossa <[EMAIL PROTECTED]> writes: > In this example, on my PC both the entries in the legend appear in blue > color: > legend((bar1,bar2), ('First','Second')) You want legend((bar1[0],bar2[0]), ('First','Second')). What happened was that matplotlib made a legend entry for two of t

[Matplotlib-users] bar graph and legend

2007-09-14 Thread Gianluca Santarossa
Dear all, I am an unexperienced matplotlib user, and I have a couple of questions about adding a legend to a graph. In this example, on my PC both the entries in the legend appear in blue color: #!/usr/bin/env python import numarray as na from pylab import * labels = ["A", "B", "C"] first = [