[Matplotlib-users] Error messages with xpdf / LaTeX

2009-02-23 Thread Paul Anton Letnes
Hi everyone, I'm having issues using LaTeX text processing with the xpdf distiller. After playing with my settings, I finally managed to get vector graphics output using LaTeX test processing. However, a weird error message pops up in the terminal every time (mostly annoying, the

[Matplotlib-users] Adding custom axes within a subplot

2009-02-23 Thread Johann Rohwer
I'm trying to insert a custom set of axes within a subplot, much like the axes_demo.py. Only difference is, now I want an inset graph inside each of a number of subplots. Using ASCII art, much like the following: |---| | | | | |

[Matplotlib-users] Backend problem

2009-02-23 Thread Nils Wagner
Hi all, How can I resolve the following backend problem ? What are the default library and include directories for tcl and tk ? Where should I define DISPLAY in that context ? python setup.py build --help OPTIONAL BACKEND DEPENDENCIES libpng: 1.2.7 Tkinter:

Re: [Matplotlib-users] Error messages with xpdf / LaTeX

2009-02-23 Thread Darren Dale
On Mon, Feb 23, 2009 at 3:59 AM, Paul Anton Letnes paul.anton.let...@gmail.com wrote: Hi everyone, I'm having issues using LaTeX text processing with the xpdf distiller. After playing with my settings, I finally managed to get vector graphics output using LaTeX test processing. However, a

Re: [Matplotlib-users] Crash when trying to show a semilog or log-log plot

2009-02-23 Thread Michael Droettboom
Strange. I am unable to reproduce this with 0.98.2 (0.98.3 or 0.98.5)... It's happening inside of the math expression renderer, which is used to draw the exponents that happen with semilog and log-log axes. It doesn't, however, appear to be font-related, which is a frequent

Re: [Matplotlib-users] ginput then show causes segfault

2009-02-23 Thread Michael Droettboom
I can't reproduce this here (on RHEL4 with mpl 0.98.5). What version of matplotlib is in the enthought distribution? python Python 2.5.2 (r252:60911, May 7 2008, 12:40:32) [GCC 3.4.6 20060404 (Red Hat 3.4.6-9)] on linux2 Type help, copyright, credits or license for more information. import

Re: [Matplotlib-users] Backend problem

2009-02-23 Thread Michael Droettboom
What platform are you on? There is apparently no good way to find the path to the Tcl/Tk header files. The setup script currently tries to import Tkinter, and create a window, in order to make an API call that returns the path. (Crazy, I know). Therefore, if it can't create a window (for

[Matplotlib-users] Tkinter problems

2009-02-23 Thread Gregor Skrt
1. Where can I find a good tutorial or set of examples for embeding matplotlib in Tkinter ? 2. Problem: I created a simple test with Tkinter. First I plot my graph on __init__ (it works ok). Then I want to clear graph and plot on the same canvas with different

[Matplotlib-users] basemap drawcountries consistency

2009-02-23 Thread Andres Luhamaa
Hello! When trying to make a simple map of Europe with countries drawn, one can see that coastlines and country borders are not consistent. Borders between Finland-Russia, Sweden-Norway, Germany-Denmark finish somewhere in the sea, to name just a few. Is this a known issue and is there a

Re: [Matplotlib-users] basemap drawcountries consistency

2009-02-23 Thread Jeff Whitaker
Andres Luhamaa wrote: Hello! When trying to make a simple map of Europe with countries drawn, one can see that coastlines and country borders are not consistent. Borders between Finland-Russia, Sweden-Norway, Germany-Denmark finish somewhere in the sea, to name just a few. Is this a known

Re: [Matplotlib-users] Crash when trying to show a semilog or log-log plot

2009-02-23 Thread Michael Droettboom
Thanks for getting to the bottom of this. I'll add some comments to the bug, too. Mike Craig Finch wrote: Okay, I figured it out. The people who maintain the Gentoo ebuild for matplotlib decided to remove the unnecessary copies of fonts, pycxx and pyparser that are bundled with

Re: [Matplotlib-users] matplotlib issue: cannot auto-scale X axis of plop properly

2009-02-23 Thread brent.nash
Thanks for the feedback. So strangely enough it seems to have something to do with my installation of matplotlib or some of the other background libraries. I took the exact same example that I sent it and ran it on Redhat Enterprise Linux 4 and it works just fine. My team develops on Mac OS X

Re: [Matplotlib-users] Crash when trying to show a semilog or log-log plot

2009-02-23 Thread Craig Finch
Okay, I figured it out. The people who maintain the Gentoo ebuild for matplotlib decided to remove the unnecessary copies of fonts, pycxx and pyparser that are bundled with matplotlib. The latest version of the ebuild contains code that explicitly removes the bundled fonts, pyparser and

Re: [Matplotlib-users] Polar Plot: Extraneous Circles

2009-02-23 Thread Eric Firing
mcdevitts wrote: Hello, I've been trying to implement a smith chart like a previous gentlemen on the list and have run into a similar problem. When my angle value goes from -pi to pi I get an extraneous circle from the interpolation. From the previous posts, I am under the impression that

Re: [Matplotlib-users] Polar bars and matplotlib 0.98.5

2009-02-23 Thread Eric Firing
Laurent Mychkine wrote: hi, I'm using polar bars to plot windroses. Since the 0.98.5 version i have some issues with the plots. The 0° bar is not displayed in the good way. This bar is located between -0.26 radian and 0.26 radian but it is printed counterclockwise. It was working perfectly with

Re: [Matplotlib-users] Error messages with xpdf / LaTeX

2009-02-23 Thread Paul Anton Letnes
On 23. feb.. 2009, at 14.51, Darren Dale wrote: On Mon, Feb 23, 2009 at 3:59 AM, Paul Anton Letnes paul.anton.let...@gmail.com wrote: Hi everyone, I'm having issues using LaTeX text processing with the xpdf distiller. After playing with my settings, I finally managed to get vector

Re: [Matplotlib-users] basemap drawcountries consistency

2009-02-23 Thread Andres Luhamaa
Jeff Whitaker wrote: Andres Luhamaa wrote: Hello! When trying to make a simple map of Europe with countries drawn, one can see that coastlines and country borders are not consistent. Borders between Finland-Russia, Sweden-Norway, Germany-Denmark finish somewhere in the sea, to name

Re: [Matplotlib-users] very simple question, aspect ratio

2009-02-23 Thread Eric Firing
Dante Plicato wrote: Hi Eric, first of all thank you for your reply. My problem is so simple that it is diffucult to explain :) may be pictures speak better than me. Let me show you 2 simple pictures and you'll understand: this is what i want to do: (done with excel)

Re: [Matplotlib-users] Adding custom axes within a subplot

2009-02-23 Thread Johann Rohwer
-- 20090223 import numpy as np import matplotlib from matplotlib import pyplot as plt fig = plt.figure(figsize=(8,6)) fw = fig.get_figwidth()*fig.get_dpi() fh = fig.get_figheight()*fig.get_dpi() x = np.linspace(1,10,100) y = np.sin(x) for i in range(4): ax = fig.add_subplot(2,2,i+1) ax.plot

[Matplotlib-users] Fontsize of tick labels

2009-02-23 Thread Johann Rohwer
Is there any way of conveniently changing the font size of tick labels using the object-oriented interface? I'm aware of plt.xticks(fontsize=6), which does this globally for a figure, but if I have a number of custom axes of which I only want to change the tick-fontsize of a selected few, I've

Re: [Matplotlib-users] Adding custom axes within a subplot

2009-02-23 Thread Jae-Joon Lee
Here is my modification. Bbox = matplotlib.transforms.Bbox.from_bounds(.4, .1, .5, .3) trans = ax.transAxes + fig.transFigure.inverted() l, b, w, h = matplotlib.transforms.TransformedBbox(Bbox, trans).bounds axins = fig.add_axes([l, b, w, h]) On Mon, Feb 23, 2009 at 2:49 PM,

Re: [Matplotlib-users] Fontsize of tick labels

2009-02-23 Thread Jae-Joon Lee
On Mon, Feb 23, 2009 at 3:06 PM, Johann Rohwer j...@sun.ac.za wrote: Is there any way of conveniently changing the font size of tick labels using the object-oriented interface? I'm aware of plt.xticks(fontsize=6), which does this globally for a figure, but if I have a number of custom axes of

Re: [Matplotlib-users] Tkinter problems

2009-02-23 Thread Delbert Franz
On Monday 23 February 2009, Gregor Skrt wrote: 1. Where can I find a good tutorial or set of examples for embeding matplotlib in Tkinter ? 2. Problem: I created a simple test with Tkinter. First I plot my graph on __init__ (it works ok). Then I want to clear graph and

Re: [Matplotlib-users] basemap drawcountries consistency

2009-02-23 Thread Jeff Whitaker
Andres Luhamaa wrote: Jeff Whitaker wrote: Andres Luhamaa wrote: Hello! When trying to make a simple map of Europe with countries drawn, one can see that coastlines and country borders are not consistent. Borders between Finland-Russia, Sweden-Norway, Germany-Denmark finish

Re: [Matplotlib-users] basemap drawcountries consistency

2009-02-23 Thread Eric Firing
Jeff Whitaker wrote: Andres Luhamaa wrote: Jeff Whitaker wrote: Andres Luhamaa wrote: Hello! When trying to make a simple map of Europe with countries drawn, one can see that coastlines and country borders are not consistent. Borders between Finland-Russia, Sweden-Norway,

Re: [Matplotlib-users] Python 2.6 installer for Windows?

2009-02-23 Thread Adam Mercer
On Sun, Feb 22, 2009 at 16:59, Wai Yip Tung tungwai...@yahoo.com wrote: I find that Matplotlib only have Python 2.5 build for Windows. Is there any plan to release a 2.6 build soon? I am trying to build it from source but I run into numerous problem. I am still struggling to find all

Re: [Matplotlib-users] Python 2.6 installer for Windows?

2009-02-23 Thread Patrick Marsh
I have built matplotlib (and numpy since it is required for matplotlib) with python2.6. Please note that these are UNSUPPORTED and you use them at your own risk. They were built from the 9 February 2009 SVN so use at your own risk. You will have to install numpy first and matplotlib second. I

[Matplotlib-users] TclError Couldn't Connect to display :0.0

2009-02-23 Thread rlp_GMC
-- View this message in context: http://www.nabble.com/TclError-Couldn%27t-Connect-to-display-%22%3A0.0%22-tp22176082p22176082.html Sent from the matplotlib - users mailing list archive at Nabble.com. -- Open Source

[Matplotlib-users] TclError Couldn't Connect to display :0.0

2009-02-23 Thread rlp_GMC
When I try to save a fig to a file I get the error TclError Couldn't Connect to display :0.0 I looked in the Maplotlib users manual (latest version pg 144-146) and tried the following with no luck. BTW why is the same module named differently Linux/Win ? import matplotlib

[Matplotlib-users] plot windows

2009-02-23 Thread Paul Anton Letnes
Hello, I want to save a large number of figures to file, roughly like this: import pylab for i in xrange(100): pylab.plot(x[i], y[i]) pylab.savefig('plot' + str(i) + '.eps') pylab.figure() However, a large number of figure windows show up on screen, and eventually, the

Re: [Matplotlib-users] plot windows

2009-02-23 Thread Eric Firing
Paul Anton Letnes wrote: Hello, I want to save a large number of figures to file, roughly like this: import pylab for i in xrange(100): pylab.plot(x[i], y[i]) pylab.savefig('plot' + str(i) + '.eps') pylab.figure() However, a large number of figure windows show up on

Re: [Matplotlib-users] Adding custom axes within a subplot

2009-02-23 Thread Johann Rohwer
Hi JJ On Monday, 23 February 2009, Jae-Joon Lee wrote: Here is my modification. Bbox = matplotlib.transforms.Bbox.from_bounds(.4, .1, .5, .3) trans = ax.transAxes + fig.transFigure.inverted() l, b, w, h = matplotlib.transforms.TransformedBbox(Bbox, trans).bounds axins =