Andre, my guess is that there's an attempt made to connect to the
(non-existant) X server. You can disable this by forcing a backend that
doesn't need the X server. Try
import matplotlib
matplotlib.use('Agg')
before the rest of your script.
Andre Wong wrote:
Hi
I am attempting to generate
Hi,
I'm using wxpython with matplotlib, I now have a figurecanvas embedded in my
program and I can plot stuff using:
a = self.fig.gca()
a.plot(x,y)
But what is the easiest and fastest way to draw a circle? I saw that the
artist class has a draw_arc function.. but I don't know how to use the
Søren Nielsen wrote:
Hi,
I'm using wxpython with matplotlib, I now have a figurecanvas embedded in my
program and I can plot stuff using:
a = self.fig.gca()
a.plot(x,y)
But what is the easiest and fastest way to draw a circle? I saw that the
artist class has a draw_arc function.. but
Hi Nicolas,
The attached script should illustrate one way to solve your problem.
Cheers,
Scott
Nicolas [EMAIL PROTECTED] 05/07/08 2:25 PM
Hi all
sorry for posting this question that might have been answered before,
but
I'm in the urgent need of finding a way to overlay a rectangular box on
a
Hello all,
first of all I want to thank the developers for the plotfile-function.
Nevertheless I would like to report a bug of the function and propose addional
functionality. I added a patch including the following changes:
- circumvent the NameError in the case of len(cols)==1 (N is not
On Thursday 08 May 2008 5:13:20 am Yves Revaz wrote:
Dear List,
How is it possible to write legend text with LateX fonts ?
Even with
rc('text', usetex=True)
the legend created with the command legend do not appear with LateX
fonts.
I try something like :
pt.legend(('$\rm{total
We need some more information.
Can you set verbose.level to debug-annoying in your
~/.matplotlib/matplotlibrc file?
Also, if you have the development tools (XCode) installed on your mac,
can you run python in gdb?
gdb python
GNU gdb Red Hat Linux (6.3.0.0-1.153.el4_6.2rh)
Copyright 2004
It's a bug in 0.91.2. This has been fixed on the maintenance branch (if
you're comfortable using SVN), or we do plan to release a bugfix 0.91.3
release soon.
Cheers,
Mike
Maxim Fedorovsky wrote:
Dear all,
The following TeX expression did not produce any error message with
It looks like matplotlib was built for a different version of iconv than
what you have on your machine. This may be a scisoft packaging problem,
you may want to bring this question to their attention. Perhaps the
version of OSX that scisoft was built on/for is different than what
you're
Is there anything I can do to update it by myself in the meanwhile?
Thanks,
Nino
Michael Droettboom wrote:
It looks like matplotlib was built for a different version of iconv than
what you have on your machine. This may be a scisoft packaging problem,
you may want to bring this question to
You could try rebuilding matplotlib yourself. There are some OS-X
directions here:
http://www.astro.washington.edu/owen/BuildingMatplotlibForMac.html
This may mean, however, that it won't play nice with other parts of
scisoft. But this really is a matter of how and where scisoft was built
Hi,
I have a displayed an image with imshow() under wxPython, and it looks great
with the WxAgg figure canvas.. but sometimes I want to actually see pixels
when I zoom.. and not just a nice smoothed image. Is it possible to disable
the smoothing? The way it is now, I will never see square pixels
Hi Mike,
I re-install the astronomy scisoft package and now the segmentation
fault is not anymore present when I import matplotlib.mathtext.
But when I import pylab I have the following error.
I think it's something related with my backend choise. I tried to change
all the GUI possibilities in
Thanks,
I just had to replace the /usr/lib/libiconv.2.dylib with the one I have
in /sw/lib/ directory .
Now the GTK, GTKAgg backend work.
Nino
Michael Droettboom wrote:
You could try rebuilding matplotlib yourself. There are some OS-X
directions here:
You can pass an interpolation parameter to imshow, or set a default in
image.interpolation in your matplotlibrc. From the imshow docstring:
* interpolation is one of:
'nearest', 'bilinear', 'bicubic', 'spline16', 'spline36',
'hanning', 'hamming', 'hermite',
Thanks a lot for the help) I have noticed that \angstrom is not anymore
supported in 0.91.
With best regards,
Maxim Fedorovsky.
Forgot to mention -- you could also apply this patch to your local
copy of mathtext.py
Great. You may still want to let the scisoft guys know about this so
others won't hit up against it.
Cheers,
Mike
Antonino Cucchiara wrote:
Thanks,
I just had to replace the /usr/lib/libiconv.2.dylib with the one I
have in /sw/lib/ directory .
Now the GTK, GTKAgg backend work.
Nino
You can use \AA for angstrom (to conform to the (La)TeX standard).
Cheers,
Mike
Maxim Fedorovsky wrote:
Thanks a lot for the help) I have noticed that \angstrom is not
anymore supported in 0.91.
With best regards,
Maxim Fedorovsky.
Forgot to mention -- you could also apply this patch to
Hi List,
I recently subjected some figures to an online 'quality analysis' done
by a journal I am submitting a paper to. The analysis stated that my
figures (created with mpl's pdf backend, and using whatever default
fonts are used) used type 3 fonts, and that I should use type 1 whenever
Hallo,
I'm quite new to matplotlib and have a problem, I was searching a solution
for the whole day :(
The thing is, I want to show different Figures at different states of my
main application.
So it is not possible for me, to perform the standard procedure, that may
looks like:
code
Hi,
First I want to thanks for this amazing Matplotlib. It's fantastic!
My newbie question is how I can show the (zoom, pan, etc) toolbar in
embedding_in_qt.py example?
I have noticed that in animation_blit_qt.py the toolbar is available, but it
seems to be done in a different way.
Appreciate
Christopher Brown [EMAIL PROTECTED] writes:
I have read a little bit online about the difference between types 1
and 3, but I can't find a description of which font is which type. So
what font should I use?
Try setting the pdf.fonttype parameter in your matplotlibrc file to 42
and see if the
Christopher Brown [EMAIL PROTECTED] writes:
I have read a little bit online about the difference between types 1
and 3, but I can't find a description of which font is which type. So
what font should I use?
Try setting the pdf.fonttype parameter in your matplotlibrc file to 42
and see if the
On Thu, May 8, 2008 at 3:52 PM, Michael Droettboom [EMAIL PROTECTED] wrote:
You can pass an interpolation parameter to imshow, or set a default in
image.interpolation in your matplotlibrc. From the imshow docstring:
* interpolation is one of:
'nearest', 'bilinear',
Can someone tell me if there is a way to rotate an axes instance?
I have,
figure(1)
ax1 = axes([0.0, 0.0, 1.0, 1.0], axisbg='0.95')
ax2 = axes([0.2, 0.1, 0.6, 0.8], axisbg='white')
and I would like to rotate ax2 30 degrees. It would look something like the
attached file.
--
The toolbar is just a widget so you can do that the same way you show any
other widget in Qt. Something along the lines of:
- build a widget
- add a layout
- add the figure widget to the layout
- add the toolbar to the layout
- connect them
Hi Jouni,
JKS Try setting the pdf.fonttype parameter in your matplotlibrc file to
JKS 42 and see if the resulting file passes validation. Matplotlib
This produces a good-looking pdf. Unfortunately, It'll be a few weeks
before I can test it with the online figure check program, since the
that
Hi,
When matplotlib uses an axis multiplier, as in x-axis in the script
below, the scale factor is not positioned properly on the figure as is
shown in the attached picture. The 'x1e+30' in the bottom right corner
is clipped unless I enlarge the window.
import Numeric, gtk
28 matches
Mail list logo