Re: [Matplotlib-users] wxagg and cups printer

2009-08-04 Thread Janwillem
Sorry, had not yet noticed the option for more verbosity in matplotlibrc. The problem seems to be that some component related to wxagg wants to create the symbol "printer" which, because my printer was called "printer", apparently already existed. Renaming the printer on my system solved the probl

[Matplotlib-users] build problems with TkAgg backend

2009-08-04 Thread Johann Rohwer
Using the latest SVN matplotlib, the TkAgg backed does not get built even though all the libraries are installed (Linux 64-bit). The following error message occurs during the build: Tkinter: no * Using default library and include directories for * Tcl and Tk because a Tk window

[Matplotlib-users] Resolution of eps files

2009-08-04 Thread Maxim Khazimullin
Hi, I have a very simple script:: x = linspace(0,1) plot(x, sin(pi*x)) savefig("test-300.eps", dpi = 300) savefig("test-600.eps", dpi = 600) output of ll *.eps: -rw--- 1 maxim maxim 10759 2009-08-03 20:27 test-300.eps -rw--- 1 maxim maxim 10759 2009-08-03 20:27 test-600.eps Is it no

Re: [Matplotlib-users] Resolution of eps files

2009-08-04 Thread John Hunter
On Tue, Aug 4, 2009 at 4:22 AM, Maxim Khazimullin wrote: > Is it normal for eps files (when files with different dpi have the same > sizes), or something wrong with matplotlib? PS is a vector drawing backend, so the concept of "dots per inch" does not apply, unless you are explictly including a

Re: [Matplotlib-users] setting user defined color map as default

2009-08-04 Thread Philipp Lies
On Thu, 30 Jul 2009 09:41:43 -1000 Eric Firing wrote: > Jae-Joon Lee wrote: > > I don't think there is any user-visible support for registering a > > custom colormap. > > Now there is: svn r7309. Its use is illustrated via a modification of > examples/pylab_examples/custom_cmap.py. Awesome, wor

[Matplotlib-users] Some questions about text

2009-08-04 Thread Pim Schellart
Hi Everyone, I have been using matplotlib for quite some time now. However I have a few questions regarding the handling of text in title and axis labels. When creating an image using subplot the title and axis label text tends to overlap. Is there an option to prevent this. Of course one can do t

Re: [Matplotlib-users] build problems with TkAgg backend

2009-08-04 Thread John Hunter
On Tue, Aug 4, 2009 at 3:52 AM, Johann Rohwer wrote: > Using the latest SVN matplotlib, the TkAgg backed does not get built > even though all the libraries are installed (Linux 64-bit). The > following error message occurs during the build: > > Tkinter: no >         * Using default library and incl

Re: [Matplotlib-users] build problems with TkAgg backend

2009-08-04 Thread John Hunter
On Tue, Aug 4, 2009 at 3:52 AM, Johann Rohwer wrote: > Using the latest SVN matplotlib, the TkAgg backed does not get built > even though all the libraries are installed (Linux 64-bit). The > following error message occurs during the build: > > Tkinter: no >         * Using default library and incl

Re: [Matplotlib-users] Some questions about text

2009-08-04 Thread John Hunter
On Tue, Aug 4, 2009 at 8:16 AM, Pim Schellart wrote: > 1. option to force display of the full number on each tick (with the > option to display the numbers at an angle to prevent overlapping). This is controlled by the "set_scientific" method of the ScalarFormatter http://matplotlib.sourcefor

Re: [Matplotlib-users] build problems with TkAgg backend

2009-08-04 Thread Johann Rohwer
On Tuesday 04 August 2009, John Hunter wrote: > On Tue, Aug 4, 2009 at 3:52 AM, Johann Rohwer wrote: > > Using the latest SVN matplotlib, the TkAgg backed does not get > > built even though all the libraries are installed (Linux 64-bit). > > The following error message occurs during the build: > >

Re: [Matplotlib-users] build problems with TkAgg backend

2009-08-04 Thread John Hunter
On Tue, Aug 4, 2009 at 9:14 AM, Johann Rohwer wrote: > Type "help", "copyright", "credits" or "license" for more information. import Tkinter a=Tkinter.tkinter.create() > > which creates a tk window on my desktop. > > So really in the dark what's going on here Very odd. I suggest op

Re: [Matplotlib-users] build problems with TkAgg backend

2009-08-04 Thread Michael Droettboom
What distro are you on? It seems that Tcl/Tk moves the header files around on a regular basis while not providing a standard way to determine their location. It's like a wild goose chase ;) Perhaps you're running something new and blazing new territory here ;) Mike John Hunter wrote: > On T

Re: [Matplotlib-users] Change Font Properties of Annotations

2009-08-04 Thread Michael Droettboom
Can you add the following to the top of your script: import matplotlib matplotlib.rcParams['verbose.level'] = 'debug-annoying' and send the output here? Most likely the font matching is failing on some other property (e.g. Tahoma) and reverting to the default font, which is non-bold. I don't

Re: [Matplotlib-users] build problems with TkAgg backend

2009-08-04 Thread Johann Rohwer
Michael Droettboom wrote: > What distro are you on? It seems that Tcl/Tk moves the header files > around on a regular basis while not providing a standard way to > determine their location. It's like a wild goose chase ;) Perhaps > you're running something new and blazing new territory here ;

Re: [Matplotlib-users] Hiding data via legend

2009-08-04 Thread Josh Hemann
For this particular data set you might try simply using a log-scaled Y-axis. As to the larger question of interactively adding/removing plot elements, take a look at Enthought's Chaco toolkit. I think most people would agree that its plotting features are not as rich as mpl, but with respect to cu

[Matplotlib-users] 0.99.0-RC1 and the animation_blit_gtk2 example

2009-08-04 Thread Christophe Dupre
Hello, I've been playing with the animation_blit_gtk2 example ( http://matplotlib.sourceforge.net/examples/animation/animation_blit_gtk2 .html ) and the latest version of matplotlib version 0.99.0-RC1. I've modified the example so that it displays candlesticks moving towards the lelf. The exa

[Matplotlib-users] bug in scatter?

2009-08-04 Thread Thomas Robitaille
Hi, The following script produces a single point that is green and translucent: import matplotlib.pyplot as mpl fig = mpl.figure() ax = fig.add_subplot(111) ax.scatter([0.],[0.],c=1.,alpha=0.2,vmin=0,vmax=2.0,cmap=mpl.cm.jet) fig.canvas.draw() and the following script produces a single point t

Re: [Matplotlib-users] Hiding data via legend

2009-08-04 Thread John Hunter
On Mon, Aug 3, 2009 at 11:38 PM, Gökhan Sever wrote: > Hello, > > I was wondering if it is possible to hide some data on figures using a say > right click option to any of the legend entry and make it temporarily > hidden/visible to better analyse the rest of the data? > > Check this screenshot for

Re: [Matplotlib-users] bug in scatter?

2009-08-04 Thread Thomas Robitaille
Just a quick note - the last script in my previous email is wrong. I don't get the problem in that case, I get it if the arrays are 32-bit: import matplotlib.pyplot as mpl import numpy as np np.random.seed(-12421412) x = np.random.random(1).astype(np.float32) y = np.random.random(1).as

[Matplotlib-users] Using spines and set_yscale

2009-08-04 Thread Nicolas Pinto
Hello, In the following code (using matplotlib svn), I'm trying to set the left (log) axis "outward" using spines. Subplots 222 and 223 have "weird" behaviors. Am I using the API incorrectly? I got it to work by calling ax.set_yscale('log') twice (subplot 224). Where should I start if I want to co

Re: [Matplotlib-users] Hiding data via legend

2009-08-04 Thread Ryan May
On Tue, Aug 4, 2009 at 11:50 AM, John Hunter wrote: > On Mon, Aug 3, 2009 at 11:38 PM, Gökhan Sever > wrote: > > Hello, > > > > I was wondering if it is possible to hide some data on figures using a > say > > right click option to any of the legend entry and make it temporarily > > hidden/visible

Re: [Matplotlib-users] Hiding data via legend

2009-08-04 Thread Gökhan Sever
On Tue, Aug 4, 2009 at 11:50 AM, John Hunter wrote: > On Mon, Aug 3, 2009 at 11:38 PM, Gökhan Sever > wrote: > > Hello, > > > > I was wondering if it is possible to hide some data on figures using a > say > > right click option to any of the legend entry and make it temporarily > > hidden/visible

Re: [Matplotlib-users] Building current SVN trunk on Mac OS X 10.5

2009-08-04 Thread Uri Laserson
I was wondering if anyone had any possible suggestions to fix the build problem I am having below. I built libpng as a universal library as described below. MPL then builds without any complaints, but gives me an import error related to libpng. I'm not a unix expert, and I'm not sure how to proc

Re: [Matplotlib-users] Hiding data via legend

2009-08-04 Thread Michael Droettboom
Gökhan Sever wrote: > > I see a little change when I typed them in Ipython, however not > exactly sure the real reasoning behind this. > > In [4]: lines = ax.plot(t, y1, lw=2, color='red', label='1 hz') > > In [5]: lines > Out[5]: [] Here the variable lines is a list with one element (a Line2D ob

Re: [Matplotlib-users] Hiding data via legend

2009-08-04 Thread Ryan May
On Tue, Aug 4, 2009 at 2:27 PM, Michael Droettboom wrote: > > Gökhan Sever wrote: > >> >> I see a little change when I typed them in Ipython, however not exactly >> sure the real reasoning behind this. >> >> In [4]: lines = ax.plot(t, y1, lw=2, color='red', label='1 hz') >> >> In [5]: lines >> Ou

[Matplotlib-users] No legend using scatter function

2009-08-04 Thread Gökhan Sever
Hello, Could not get a legend shown on scatter function used plot: In [4]: a = rand(100) In [5]: b = rand(100) In [22]: scatter(a,b, c=a, s=b, label="") Out[22]: In [23]: scatter(a,b, c=a*5, s=b*5, label="") Out[23]: In [24]: legend() at rev 7355. with Python 2.6 (r26:66714, Jun

[Matplotlib-users] advice on time-series of histograms

2009-08-04 Thread Uri Laserson
Hi Everyone, I need some advice on the best way to create a certain plot: I have a series of time points. For each one, I have a collection of values for which I'd like to display the distribution with a histogram. On the x-axis would be the time points, while at each time point there is a vert

Re: [Matplotlib-users] Hiding data via legend

2009-08-04 Thread Jae-Joon Lee
On Tue, Aug 4, 2009 at 12:50 PM, John Hunter wrote: > On Mon, Aug 3, 2009 at 11:38 PM, Gökhan Sever wrote: >> Hello, >> >> I was wondering if it is possible to hide some data on figures using a say >> right click option to any of the legend entry and make it temporarily >> hidden/visible to better

Re: [Matplotlib-users] 0.99.0-RC1 and the animation_blit_gtk2 example

2009-08-04 Thread Jae-Joon Lee
On Tue, Aug 4, 2009 at 12:14 PM, Christophe Dupre wrote: > Hello, > > > > I've been playing with the animation_blit_gtk2 example > (http://matplotlib.sourceforge.net/examples/animation/animation_blit_gtk2.html > > ) and the latest version of matplotlib version 0.99.0-RC1. > > I've modified the exam

[Matplotlib-users] Re peated calls to Specgram for animation, memory leaking

2009-08-04 Thread xianthax
Hello, First thanks for the great library, recently came across it and seems quite useful for what i'm doing. What i'm trying to do is create an animated specgram(). I'm feeding in audio data from a microphone at the moment, although the ultimate use is to chart data that will be input via the

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

2009-08-04 Thread Fernando Perez
Hi all, on behalf of the IPython development team, I'm happy to announce that we've just put out IPython 0.10 final. Many thanks to all those who contributed ideas, bug reports and code. You can download it from the usual location: - http://ipython.scipy.org/moin/Download: direct links to vario