Re: [Matplotlib-users] Display chinese labels

2010-10-12 Thread sunqiang
maybe change the line axim.set_yticklabels(ytics,fontsize=15,family='fantasy') to axim.set_yticklabels(ytics,fontsize=15, fontname= simsun (founder extended)) (or replace fontname with simhei or microsoft yahei) is enough. or, put these two lines: mpl.rcParams['font.sans-serif'] = ['SimHei']

[Matplotlib-users] [ANN] IPython 0.10.1 is out.

2010-10-12 Thread Fernando Perez
Hi all, we've just released IPython 0.10.1, full release notes are below. Downloads in source and windows binary form are available in the usual location: http://ipython.scipy.org/dist/ But since our switch to github, we also get automatic distribution of archives there:

[Matplotlib-users] colormap from blue to transparent to red

2010-10-12 Thread Stefan Mauerberger
Hi everyone, I am having trouble with colormaps unsing pcolormesh. I would like to plot and colorise a seismic wave field above a map. Plotting works fine but I do not know how to bring transparency into colormaps. For negative values I want the coloration being blue then it should become

Re: [Matplotlib-users] colormap from blue to transparent to red

2010-10-12 Thread Benjamin Root
On Tue, Oct 12, 2010 at 7:57 AM, Stefan Mauerberger stefan.mauerber...@mnet-online.de wrote: Hi everyone, I am having trouble with colormaps unsing pcolormesh. I would like to plot and colorise a seismic wave field above a map. Plotting works fine but I do not know how to bring transparency

[Matplotlib-users] How to adjust position of axis labels in 3D plots

2010-10-12 Thread Justin Bois
I am preparing 3D plots and have found that the default axis labels are too close to the tick labels, especially when large font sizes are chosen. As such, I would like to specify the position of the axis label. Unfortunately, I haven't met much success. See the code below (based on one of the

Re: [Matplotlib-users] colormap from blue to transparent to red

2010-10-12 Thread Scott Sinclair
On 12 October 2010 14:57, Stefan Mauerberger stefan.mauerber...@mnet-online.de wrote: I am having trouble with colormaps unsing pcolormesh. I would like to plot and colorise a seismic wave field above a map. Plotting works fine but I do not know how to bring transparency into colormaps. For

Re: [Matplotlib-users] colormap from blue to transparent to red

2010-10-12 Thread Benjamin Root
On Tue, Oct 12, 2010 at 9:25 AM, Benjamin Root ben.r...@ou.edu wrote: On Tue, Oct 12, 2010 at 7:57 AM, Stefan Mauerberger stefan.mauerber...@mnet-online.de wrote: Hi everyone, I am having trouble with colormaps unsing pcolormesh. I would like to plot and colorise a seismic wave field

Re: [Matplotlib-users] Display chinese labels

2010-10-12 Thread Benoit Gaillard
Thank you for your help, but it does not seem to work. I have downloaded simhei fonts and added it in my directory /usr/shared/fonts/truetype but even by using fontname=simhei , or: mpl.rcParams['font.sans-serif'] = ['SimHei'] mpl.rcParams['axes.unicode_minus'] = False i still display empty

Re: [Matplotlib-users] [ANN] IPython 0.10.1 is out.

2010-10-12 Thread Fernando Perez
Hi all, Illustrating the need to *always* remember we credit in the commit message the name of the person who made a contribution originally... 2010/10/12 Fernando Perez fperez@gmail.com: Hi all, - New IPython Sphinx directive.  You can use this directive to mark blocks in  

[Matplotlib-users] user group video

2010-10-12 Thread Carl Karsten
I just noticed the videos section of http://matplotlib.sourceforge.net Here is one that I made at ChiPy (Chicago Python user group) http://carlfk.blip.tv/file/2557425 Anyone know if this message is archived somewhere: Jeez, you guys have some crazy examples. I am surprised there isn't dolphins

[Matplotlib-users] dolphin save as svg broken

2010-10-12 Thread Carl Karsten
I am sure this is not a matplotlib problem, but I am not sure whos it is, so I'll start here: http://matplotlib.sourceforge.net/examples/pylab_examples/dolphin.html the blue and green dots should only be inside the circle. Run the code, you get a window that has a 'save' button, the dialog has a

Re: [Matplotlib-users] dolphin save as svg broken

2010-10-12 Thread Fernando Perez
On Tue, Oct 12, 2010 at 3:03 PM, Carl Karsten c...@personnelware.com wrote: Run the code, you get a window that has a 'save' button, the dialog has a 'type svg' option the svg renders with the blue/green dots everywhere (rendering using both rsvg-view and inkscape, which use different

Re: [Matplotlib-users] Display chinese labels

2010-10-12 Thread sunqiang
oh, only test it on Windows yet. both sim heiand microsoft yahei are fontname on Windows Platform. maybe just copy Sim Hei to font directory is not enough? no clue here. I just test the script on Linux (Ubuntu 8.04, Python 2.5, matplotlib 0.98.4) with the follow steps: 1, find the configure