[Matplotlib-users] Basemap: High resolution output cutout marks on contours

2010-10-04 Thread nickj
Hello all, I'm playing with Matplotlib Basemap for the first time, and attempting to render data from the NOAA GFS models. With joy I finally got something on screen, however I was wondering what I might be able to do, to better improve the contour rendering of the final map. To better

Re: [Matplotlib-users] unicode minus sign glyph missing with serif fonts in macosx backend

2010-10-04 Thread Michael Droettboom
On 09/17/2010 08:57 PM, Joey Richards wrote: Hello. First, let me apologize if this has been covered---I tried to search the mailing list archives but was unable to get that to work (even queries that should have returned many hits were returning nothing). When I plot with the MacOSX

Re: [Matplotlib-users] Basemap: High resolution output cutout marks on contours

2010-10-04 Thread Daπid
On Mon, Oct 4, 2010 at 11:36 AM, nickj nickja...@gmail.com wrote: To better illustrate my problem, here is a screenshot with added red lines pointing to the odd slicing I get around the contours: http://www.bigoceans.com/slices.png A low-tech option is to plot first all the oceans in light

Re: [Matplotlib-users] Worries with ~/.matplotlib and fonts

2010-10-04 Thread Michael Droettboom
There is a fix for this in SVN in r8712 that will make it into the next release. In the meantime, as a workaround, you can safely delete the font cache file in ~/.matplotlib/fontList.cache Mike On 10/04/2010 08:44 AM, Matthieu Brucher wrote: Hello, I ahve several installation of

[Matplotlib-users] matplotlib server side with pdf backend

2010-10-04 Thread damiano michael
hi ! i would like to write a server side python script that generate .pdf documents. for the moment i have Python 2.7 installed server side and matplolib installed server side too. A simple script that create a simple plot and generate a .png picture works. this is the script i use :

Re: [Matplotlib-users] Basemap: High resolution output cutout marks on contours

2010-10-04 Thread Jeff Whitaker
On 10/4/10 3:36 AM, nickj wrote: Hello all, I'm playing with Matplotlib Basemap for the first time, and attempting to render data from the NOAA GFS models. With joy I finally got something on screen, however I was wondering what I might be able to do, to better improve the contour

[Matplotlib-users] Worries with ~/.matplotlib and fonts

2010-10-04 Thread Matthieu Brucher
Hello, I ahve several installation of matplotlib on several computers with different OS but the same HOME directory. Matplotlib caches a lot of stuff in ~/.matplotlib, like fonts, but they are not located in the same folder in different computers I use. The issue is that the cache makes

Re: [Matplotlib-users] WebP support

2010-10-04 Thread Michael Droettboom
On 10/02/2010 01:39 PM, Jouni K. Seppänen wrote: Benjamin Rootben.r...@ou.edu writes: And yet, we still allow for saving to jpegs. Wow, I didn't know. Last time I tried that I got a traceback, and assumed that it was not supported exactly because jpeg is a nonsensical format for

Re: [Matplotlib-users] postscript fonts: examples in matplotlib

2010-10-04 Thread Michael Droettboom
You can set the rcParam ps.useafm to True, which will use the built-in Postscript fonts (and not embed any in the file), or set ps.fonttype to 42 which will embed the complete Truetype font in the file. Mike On 10/02/2010 01:55 PM, Ed Lazarus wrote: All, I am wondering if anyone knows of a

[Matplotlib-users] RuntimeError: CGContextRef is NULL

2010-10-04 Thread Nicolas Rougier
I'm trying to have animated plots using draw_artist on mac os x and I got an error with the following script: import numpy as np import matplotlib.pyplot as plt plt.ion() plt.figure() subplot = plt.subplot(1,1,1) axis = plt.imshow(np.random.random((10,10))) plt.draw()

Re: [Matplotlib-users] WebP support

2010-10-04 Thread Jouni K . Seppänen
Michael Droettboom md...@stsci.edu writes: On 10/02/2010 01:39 PM, Jouni K. Seppänen wrote: Benjamin Rootben.r...@ou.edu writes: And yet, we still allow for saving to jpegs. Wow, I didn't know. Last time I tried that I got a traceback, and assumed that it was not supported

Re: [Matplotlib-users] unicode minus sign glyph missing with serif fonts in macosx backend

2010-10-04 Thread Joey Richards
On Oct 4, 2010, at 6:54 AM, Michael Droettboom wrote: On 09/17/2010 08:57 PM, Joey Richards wrote: Hello. First, let me apologize if this has been covered---I tried to search the mailing list archives but was unable to get that to work (even queries that should have returned many hits

Re: [Matplotlib-users] unicode minus sign glyph missing with serif fonts in macosx backend

2010-10-04 Thread Jouni K . Seppänen
Joey Richards j...@caltech.edu writes: When I plot with the MacOSX backend using a serif font, the negative signs on the axis labels show up as the missing glyph open squares rather than minus signs. I am using matplotlib 1.0 installed from the dmg file for Python 2.6 on OSX 10.6. I'm

[Matplotlib-users] ERROR

2010-10-04 Thread Waléria Antunes David
Hi all, My problem is this error: http://pastebin.com/bfu29WuFhttp://pastebin.com/ZPzdC5c8 my code: http://pastebin.com/KzwEmucN What could be? Thanks Waleria -- Virtualization is moving to the mainstream and

Re: [Matplotlib-users] unicode minus sign glyph missing with serif fonts in macosx backend

2010-10-04 Thread Tony S Yu
On Oct 4, 2010, at 2:56 PM, Jouni K. Seppänen wrote: Joey Richards j...@caltech.edu writes: When I plot with the MacOSX backend using a serif font, the negative signs on the axis labels show up as the missing glyph open squares rather than minus signs. I am using matplotlib 1.0

Re: [Matplotlib-users] unicode minus sign glyph missing with serif fonts in macosx backend

2010-10-04 Thread Jouni K . Seppänen
Joey Richards j...@caltech.edu writes: The system-installed fonts all should have the minus sign, though I don't know for sure which fonts matplotlib is using. You can find out with dtrace: start up python as usual but don't plot anything yet, then in another terminal type ps a to find out the

Re: [Matplotlib-users] unicode minus sign glyph missing with serif fonts in macosx backend

2010-10-04 Thread Jouni K . Seppänen
Tony S Yu tsy...@gmail.com writes: This is probably unrelated, but I can't even use serif fonts on the MacOSX backend (it just shows up as sans-serif). I tried Times New Roman, Vera, and a Computer Modern unicode font that I normally use). I noticed that I didn't really get Vera either,

[Matplotlib-users] 3D surfaces and scatter plots have weird alpha behavior?

2010-10-04 Thread Erik Tollerud
I've noticed some odd behavior in the mplot3d toolkit when using scatter3D with plot_surface. What I want to do is generate the surface with an alpha level of 0.5, such that any points that are between me and the surface should come out fully opaque, and any points behind the surface should be

Re: [Matplotlib-users] Can't import pyplot, symbol not found error instead

2010-10-04 Thread Friedrich Romstedt
Yaaa, this was some time ago, I guess you did the following: * export CC=gcc-4.2 * export MACOSX_DEPLOYMENT_TARGET= * maybe also modifying the setupext.py I must say, that Python distutils (or distribute, whatever you use) overrides the CC environment variable with the gcc version Python

Re: [Matplotlib-users] unicode minus sign glyph missing with serif fonts in macosx backend

2010-10-04 Thread Tony S Yu
On Oct 4, 2010, at 3:14 PM, Jouni K. Seppänen wrote: Tony S Yu tsy...@gmail.com writes: This is probably unrelated, but I can't even use serif fonts on the MacOSX backend (it just shows up as sans-serif). I tried Times New Roman, Vera, and a Computer Modern unicode font that I normally

Re: [Matplotlib-users] ERROR

2010-10-04 Thread Benjamin Root
On Mon, Oct 4, 2010 at 1:57 PM, Waléria Antunes David waleriantu...@gmail.com wrote: Hi all, My problem is this error: http://pastebin.com/bfu29WuFhttp://pastebin.com/ZPzdC5c8 my code: http://pastebin.com/KzwEmucN What could be? Thanks Waleria Waleria, I am not entirely familiar

Re: [Matplotlib-users] 3D surfaces and scatter plots have weird alpha behavior?

2010-10-04 Thread Benjamin Root
On Mon, Oct 4, 2010 at 2:21 PM, Erik Tollerud erik.tolle...@gmail.comwrote: I've noticed some odd behavior in the mplot3d toolkit when using scatter3D with plot_surface. What I want to do is generate the surface with an alpha level of 0.5, such that any points that are between me and the

Re: [Matplotlib-users] Combination of a box plot and a histogram

2010-10-04 Thread Friedrich Romstedt
First attempt at a histogram strip chart (made up name). if-main block taken from [1] except that I've replaced uniform distributions with normal distributions. [1] http://matplotlib.sourceforge.net/examples/pylab_examples/boxplot_demo3.html import numpy as np import matplotlib.pyplot

Re: [Matplotlib-users] RuntimeError: CGContextRef is NULL

2010-10-04 Thread Friedrich Romstedt
2010/10/4 Nicolas Rougier nicolas.roug...@loria.fr: I'm trying to have animated plots using draw_artist on mac os x and I got an error with the following script: import numpy as np import matplotlib.pyplot as plt plt.ion() plt.figure() subplot = plt.subplot(1,1,1) axis =

Re: [Matplotlib-users] Combination of a box plot and a histogram

2010-10-04 Thread John Hunter
On Thu, Sep 30, 2010 at 8:44 PM, Tony S Yu tsy...@gmail.com wrote: I'd like to make something in between a box plot [1] and a histogram. Each histogram would be represented by a single, tall, rectangular patch (like the box in a box plot), and the patch would be subdivided by the bin edges of

Re: [Matplotlib-users] Combination of a box plot and a histogram

2010-10-04 Thread Tony S Yu
On Oct 4, 2010, at 4:09 PM, Friedrich Romstedt wrote: First attempt at a histogram strip chart (made up name). if-main block taken from [1] except that I've replaced uniform distributions with normal distributions. [1]

Re: [Matplotlib-users] Combination of a box plot and a histogram

2010-10-04 Thread Tony S Yu
On Oct 4, 2010, at 4:30 PM, John Hunter wrote: On Thu, Sep 30, 2010 at 8:44 PM, Tony S Yu tsy...@gmail.com wrote: I'd like to make something in between a box plot [1] and a histogram. Each histogram would be represented by a single, tall, rectangular patch (like the box in a box plot), and

Re: [Matplotlib-users] Combination of a box plot and a histogram

2010-10-04 Thread John Hunter
On Mon, Oct 4, 2010 at 3:37 PM, Tony S Yu tsy...@gmail.com wrote: Thanks! I'll give both imshow and pcolor a try. Most likely I'll use pcolor, since lighter bins would completely disappear without faceting (... or maybe that's a good thing). The barcode demo shows something similar with a

Re: [Matplotlib-users] strip chart: thanks for your help

2010-10-04 Thread Russell E. Owen
In article rowen-467156.12085929092...@news.gmane.org, Russell E. Owen ro...@uw.edu wrote: I finished my strip chart widget thanks to help from Tony S Yu, Benjamin Root and others here. It supports multiple subplots and multiple lines/subplot. Here's a copy if anyone is interested:

Re: [Matplotlib-users] RuntimeError: CGContextRef is NULL

2010-10-04 Thread Nicolas Rougier
Thanks. Unfortunately wx and tk backends are broken on my machine (but they may be easier to fix). I will file a bug report for the native backend bug. Nicolas On Oct 4, 2010, at 22:27 , Friedrich Romstedt wrote: 2010/10/4 Nicolas Rougier nicolas.roug...@loria.fr: I'm trying to have

Re: [Matplotlib-users] 3D surfaces and scatter plots have weird alpha behavior?

2010-10-04 Thread Erik Tollerud
You're right - if I just change the surface to be opaque, some of the scatter points randomly disappear and reappear depending on camera angle. So how does it decide which points are behind/in front of the surface, then? I can't figure out any obvious pattern... And is it possible to use the

Re: [Matplotlib-users] Compilation Error

2010-10-04 Thread Justin McCann
On Mon, Oct 4, 2010 at 4:50 PM, Sanjay Kairam sanjay.kai...@gmail.com wrote: Hi there, I'm having a problem installing matplotlib, I'm guessing that I am missing some dependency, but I am having trouble figuring out what the issue is (I ... REQUIRED DEPENDENCIES numpy: 1.5.0