[Matplotlib-users] legends with fill_between

2009-03-31 Thread empty83
i can't make a legend for a fill_between and don't understand what i'm doing wrong. the following code seems like the most obvious way to make a legend for a fill_between, but does do what i expect. the code plots, but complains that "No labeled objects found." any help would be much appreciate

Re: [Matplotlib-users] imshow without resampling

2009-03-31 Thread Thomas Robitaille
The problem with pcolor is that it draws all the pixels as polygons, which is very inefficient in terms of file size. For example, import matplotlib matplotlib.use('PS') from matplotlib.pyplot import * import numpy as np image = np.random.random((100,100)) fig = figure(figsize=(4,4)) ax = fig

Re: [Matplotlib-users] imshow without resampling

2009-03-31 Thread John Hunter
On Tue, Mar 31, 2009 at 2:56 PM, Thomas Robitaille wrote: > Hello, > > I am using matplotlib to create postscript and SVG files. I am > currently using imshow to show the contents of an array, but this > means that when saving vector graphics files, matplotlib resamples the > image/array onto a fi

[Matplotlib-users] imshow without resampling

2009-03-31 Thread Thomas Robitaille
Hello, I am using matplotlib to create postscript and SVG files. I am currently using imshow to show the contents of an array, but this means that when saving vector graphics files, matplotlib resamples the image/array onto a finer grid. What I would like, is for code such as this: import

Re: [Matplotlib-users] Possible to cut out pease of axes

2009-03-31 Thread Eric Firing
Troels Kofoed Jacobsen wrote: > Hi All > > Is it possible to cut out a peace of an axes, as shown in the attached > mockup. > This could typically be used if you have some important data in the interval > [0,6] and some other important data in another interval [30,40] as shown in > the figure.

[Matplotlib-users] Possible to cut out pease of axes

2009-03-31 Thread Troels Kofoed Jacobsen
Hi All Is it possible to cut out a peace of an axes, as shown in the attached mockup. This could typically be used if you have some important data in the interval [0,6] and some other important data in another interval [30,40] as shown in the figure. Best Regards Troels Kofoed Jaobsen mockup

Re: [Matplotlib-users] Warning from pylab.plot on Linux

2009-03-31 Thread David E. Sigeti
Friends, Oops! "WXAgg" and "TkAgg" rather than "WXApp" and "TkApp", of course. I did say that I was just getting my bearings. Yours, David At 12:13 PM 3/31/2009, David E. Sigeti wrote: Dear Mike and Jouni, Since my post from yesterday, I have discovered that I was using the WXApp backend

Re: [Matplotlib-users] Warning from pylab.plot on Linux

2009-03-31 Thread David E. Sigeti
Dear Mike and Jouni, Since my post from yesterday, I have discovered that I was using the WXApp backend and that using the TkApp backend fixed the problem. Thanks for the help and sorry about the naive question. I am almost completely new to Matplotlib and am only now getting my bearings.

Re: [Matplotlib-users] legend with errorbar() problem

2009-03-31 Thread Jae-Joon Lee
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),

Re: [Matplotlib-users] Warning from pylab.plot on Linux

2009-03-31 Thread Jouni K . Seppänen
Michael Droettboom writes: > sigeti wrote: >> Dear Matplotlib Folks, >> >> When I run pylab.plot, I get a weird warning: >> >> ** (python:20754): WARNING **: Couldn't connect to system bus > > Which backend are you using? I suspect this is actually a bug in the GUI > framework being used, which

Re: [Matplotlib-users] error bars on a log log plot

2009-03-31 Thread Cohen-Tanugi Johann
I did not look at the code, but I thought that the errors were automatically recomputed in log scale as delta_Y/Y/log(10) Johann Michael Droettboom wrote: > I have to say I don't really have a lot of experience with error bars > on log plots -- but the root cause here is that the lower bound of

Re: [Matplotlib-users] problem with label if x/yscale are both log

2009-03-31 Thread Michael Droettboom
It seems there's some order dependence here. I have changed the Axes constructor so the scale is set before the labels, and this seems to resolve this bug. Fixed in SVN r7016 Mike Matthias Michler wrote: > Hello list, > > in the small example below with xscale and yscale logarithmic I'm not

Re: [Matplotlib-users] error bars on a log log plot

2009-03-31 Thread Michael Droettboom
I have to say I don't really have a lot of experience with error bars on log plots -- but the root cause here is that the lower bound of the error bar goes negative, and as we all know, the log of a negative number is undefined. If you can suggest where the lower bound should be drawn or provi

[Matplotlib-users] legend with errorbar() problem

2009-03-31 Thread Wendell Cropper
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

[Matplotlib-users] unpacking multiple files

2009-03-31 Thread Bala subramanian
Friends, 1) I want to make a plot of multiple lines. I want to make something like ./multiplot.py 1.dat 2.dat 3.dat .. n.dat All files contain two columns and are of same length. plotfile() and load() do not take list of file but one file name only. In such cases, I want to unpack the x,y va

Re: [Matplotlib-users] Bug when saving in PNG?

2009-03-31 Thread Michael Droettboom
I am not able to reproduce this with 0.98.3 either, with the two example lines you've shown. Perhaps it's an interaction with some other part of your script? Can you provide a complete example that duplicates this problem? Or are those two lines enough for you? Mike Markus Haider wrote: > A

Re: [Matplotlib-users] Warning from pylab.plot on Linux

2009-03-31 Thread Michael Droettboom
Which backend are you using? I suspect this is actually a bug in the GUI framework being used, which we could rule out by running a simple script to do something basic (like show a window) and see if we get the same warning. Mike sigeti wrote: > Dear Matplotlib Folks, > > When I run pylab.plot

[Matplotlib-users] plotting in a separate process

2009-03-31 Thread Robert Cimrman
Hi all! I have a long running (non-GUI) python application, that needs to plot some curves and update them in time, as new data are computed. I'm well aware of ezplot, but would like to use a matplotlib-multiprocessing-only solution, as I have already enough dependencies. The best thing I have

Re: [Matplotlib-users] Removing the white border around graph

2009-03-31 Thread John Hunter
On Tue, Mar 31, 2009 at 3:40 AM, Matthias Michler wrote: >> Hmm...i am also curious if it is possible to display the tick markers >> inside the graph. There is an rc parameter (see http://matplotlib.sourceforge.net/users/customizing.html) controlling this xtick.direction : in # dir

Re: [Matplotlib-users] We are on the Home strech and NEED help

2009-03-31 Thread John Hunter
On Tue, Mar 31, 2009 at 3:33 AM, Matthias Michler wrote: > > Hello, > > I'm not familiar with the draw_artist functionality, but for me there seems > to to be the following replacement needed (due to a typo): > > self.ax.draw_artist(plt.contourf) -> self.ax.draw_artist(self.contour) > > because o

Re: [Matplotlib-users] problem with label if x/yscale are both log

2009-03-31 Thread Cohen-Tanugi Johann
yes I can exactly reproduce your error. Something is fishy with errorbar and log scales Johann Matthias Michler wrote: > Hello list, > > may be the last message got lost among the lots of mpl-mails, but I really > want to know if anyone else can reproduce this behaviour and if this > behavi

Re: [Matplotlib-users] error bars on a log log plot

2009-03-31 Thread Cohen-Tanugi Johann
yes exactly I should have provided a test case, thanks for following up! Johann Matthias Michler wrote: > Hello Johann, > > is the problem you are reporting the one I observe in the attached picture? > Namely some vertical and horizontal lines are missing when using > yscale="log". More prec

Re: [Matplotlib-users] problem with label if x/yscale are both log

2009-03-31 Thread Matthias Michler
Hello list, may be the last message got lost among the lots of mpl-mails, but I really want to know if anyone else can reproduce this behaviour and if this behaviour is expected. Thanks in advance for any comments. I still get the same error with matplotlib __version__ : '0.98.6svn' __revision

Re: [Matplotlib-users] error bars on a log log plot

2009-03-31 Thread Matthias Michler
Hello Johann, is the problem you are reporting the one I observe in the attached picture? Namely some vertical and horizontal lines are missing when using yscale="log". More precisely everything below y=1 seems to be missing. The picture was generated with the code below and matplotlib.__versio

Re: [Matplotlib-users] Removing the white border around graph

2009-03-31 Thread Matthias Michler
Hello , i'm not sure if your problem was resolved in the mean time. If this is not the case the following may help: plt.axes(axisbg=white, frameon = True) -> plt.axes([0,0,1,1], axisbg=white, frameon = True) where the first list descibes [left, bottom, width, height] in normalized (0, 1) coord

Re: [Matplotlib-users] We are on the Home strech and NEED help

2009-03-31 Thread Matthias Michler
Hello, I'm not familiar with the draw_artist functionality, but for me there seems to to be the following replacement needed (due to a typo): self.ax.draw_artist(plt.contourf) -> self.ax.draw_artist(self.contour) because otherwise you are trying to draw a matplotlib function, which seems to b