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
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
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
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
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.
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
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
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.
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),
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
26 matches
Mail list logo