Re: [Matplotlib-users] Multiprocessing and matplotlib

2010-11-01 Thread Sameer Grover
It's a backend issue:the code works with wxagg but not with gtkagg. On 1 November 2010 00:54, Sameer Grover wrote: > Can matplotlib be used in scripts with multiple processes, such as > when using the multiprocessing module? > > I had some difficulty getting code to work in which I was carrying o

Re: [Matplotlib-users] Error on matplotlib with the hist() method [ archlinux ]

2010-11-01 Thread daryl herzmann
On Sun, 31 Oct 2010, David Kremer wrote: > File "/usr/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py", python 2.7 ^^ > RuntimeError: Could not open facefile /usr/lib/python2.6/site- > packages/matplotlib/mpl-data/fonts/ttf/Vera.ttf; Cannot_Open_Resource python 2.6 ^^ I believe

[Matplotlib-users] Auto-wrapping text within a plot... Is there a simpler solution?

2010-11-01 Thread Joe Kington
Hi folks, First off, I apologize for the wall of text... Spurred on by this Stack Overflow question, and by an itch I've been wanting to scratch lately, I put together a a callback function that (attempts, anyway)

[Matplotlib-users] Can't force draw

2010-11-01 Thread starz1010101
I can't force pyplot to draw in the middle a function. For example, this function does not plot the sine before the user prompt, only after the entire function executes: import matplotlib.pyplot as plt import numpy as np def plot_now(): plt.ion() plt.figure() x = 2*np.pi*np.linspace(0.0,

[Matplotlib-users] Ticks direction

2010-11-01 Thread Bartosz Telenczuk
Hi all, Is it possible to set direction (in or out) individually for each tick. I know about the rc setting ("(x/y)tick.direction") , but I need a finer control over the ticks. Thanks, Bartek -- Nokia and AT&T present

[Matplotlib-users] colormaps - combine linear segmented with discrete sections?

2010-11-01 Thread Timothy W. Hilton
Hello, I have a 2D numpy masked array of geo-located data -- with some data missing -- that I wish to plot on a map. Basemap provides a nice tool to do this, but I am stumped trying to get the colorscheme I want. My data are only physically meaningful on land, so I am using Basemap.maskoceans()