Ken Schutte kts.li...@gmail.com writes:
Is it possible to control (actually remove) the amount of white space
padded to a figure when saving to a file? For example, the white
border found on the output of something like the following:
[...]
ax = fig.add_subplot(111,frameon=False)
Use
On Tue, Mar 31, 2009 at 2:16 AM, Jouni K. Seppänen j...@iki.fi wrote:
Use fig.add_axes([0,0,1,1],frameon=False) instead - add_subplot reserves
some space for a title, axis labels, etc.
Great, that works. I have noticed that when I use ticks and labels,
the border sometimes cuts things off
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
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)
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
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'
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 precisely
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
behaviour
On Tue, Mar 31, 2009 at 3:33 AM, Matthias Michler
matthiasmich...@gmx.net 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) -
On Tue, Mar 31, 2009 at 3:40 AM, Matthias Michler
matthiasmich...@gmx.net 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
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
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,
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:
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
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
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
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
Michael Droettboom md...@stsci.edu 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,
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),
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 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
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.
A
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:
On Tue, Mar 31, 2009 at 2:56 PM, Thomas Robitaille
thomas.robitai...@gmail.com 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
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 =
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
26 matches
Mail list logo