Re: [Matplotlib-users] Compiling matplotlib against 64 bit python 2.6 on OSX Snow Leopard

2010-05-27 Thread Friedrich Romstedt
2010/5/25 Pim Schellart : > I tried both and although it now seems to find the libraries it still > fails to link something. > > src/_png.cpp:293: error: ‘png_infopp_NULL’ was not declared in this scope > src/_png.cpp:293: error: ‘png_infopp_NULL’ was not declared in this scope I compiled matplotl

Re: [Matplotlib-users] Compiling matplotlib against 64 bit python 2.6 on OSX Snow Leopard

2010-05-27 Thread Pim Schellart
Dear Friedrich, sorry for the confusion. It may very well be that I misinterpreted part of the problem as I am no expert either. The problem came to be as follows. At first I used the binaries for the latest stable releases of Python 2.6 + numpy + matplotlib from the respected websites. But in ord

Re: [Matplotlib-users] Compiling matplotlib against 64 bit python 2.6 on OSX Snow Leopard

2010-05-27 Thread Friedrich Romstedt
Dear Pim, 2010/5/27 Pim Schellart : > At first I used the binaries for the latest stable releases of Python > 2.6 + numpy + matplotlib from the respected websites. > But in order to compile a custom library I needed Python to be compiled 64 > bit. For me this was the same with PIL ... though I d

Re: [Matplotlib-users] Matplotlib-users Digest, Vol 48, Issue 46

2010-05-27 Thread Alan G Isaac
On 5/27/2010 9:54 AM, Sandy Ydnas wrote: > it is the my point > show() can not be used during debuging > > but without debug option any tools is usless > since the main problem in coding is debuging ... But you have never explained your need here. You cannot start the mainloop (using ``show``)

[Matplotlib-users] Clip text in bars

2010-05-27 Thread wrpd_mnd
I'm trying to set up a chart that shows a runtime trace of a single frame. Most of it is straight forward, however one aspect of it is driving me crazy. I would like to label the inside of the bar fragments (each represent a function call with the x-extent being its runtime) with the name of the t

Re: [Matplotlib-users] Clip text in bars

2010-05-27 Thread Jae-Joon Lee
The bbox needs to be in a proper coordinate. from matplotlib.transforms import TransformedBbox bb = TransformedBbox(rect[0].get_bbox(), ax.transData) Also, do not use clip_on when clip_box is used. clip_on override clip_box with ax.bbox. text0 = ax.text(0,11,'JobName', clip_box=bb) A complete c

[Matplotlib-users] Fwd: Clearing A Figure (I Know That This Has Been Posted Before But I Does Not Work For Me)

2010-05-27 Thread Marius 't Hart
What I usually do is to clear the axis (using cla() only) right after creating or accessing it (either with figure() or subplot() or similar magic): from pylab import * fig = figure(num=1) for example in range(5): cla() plot(rand(100)) savefig('test-%d.png'%example) Original

Re: [Matplotlib-users] Clip text in bars

2010-05-27 Thread R Potter
Ah, thanks a lot. --- On Thu, 5/27/10, Jae-Joon Lee wrote: > From: Jae-Joon Lee > Subject: Re: [Matplotlib-users] Clip text in bars > To: "wrpd_mnd" > Cc: matplotlib-users@lists.sourceforge.net > Date: Thursday, May 27, 2010, 9:24 AM > The bbox needs to be in a proper > coordinate. > > from

[Matplotlib-users] Is there a way to link axes of imshow plots?

2010-05-27 Thread Adam Fraser
Suppose I have a figure canvas with 3 plots... 2 are images of the same dimensions plotted with imshow, and the other is a scatterplot. I'd like to be able to link the x and y axes of the imshow plots so that when I zoom in one, the other zooms to the same coordinates, and when I pan in one, the ot

Re: [Matplotlib-users] Is there a way to link axes of imshow plots?

2010-05-27 Thread PHobson
Do the "sharex" and "sharey" kwargs help? http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.axes http://matplotlib.sourceforge.net/examples/pylab_examples/shared_axis_demo.html -paul From: Adam Fraser [mailto:adam.n.fra...@gmail.com] Sent: Thursday, May 27, 2010 10:44 AM To:

Re: [Matplotlib-users] Is there a way to link axes of imshow plots?

2010-05-27 Thread Jae-Joon Lee
ax1 = subplot(121) ax2 = subplot(122, sharex=ax1, sharey=ax1) ax1.set_adjustable("box-forced") ax2.set_adjustable("box-forced") arr1 = np.arange(100).reshape((10, 10)) ax1.imshow(arr1) arr2 = np.arange(100, 0, -1).reshape((10, 10)) ax2.imshow(arr2) Note the use of set_adjustable("box-forced").

[Matplotlib-users] interpolation and colormaps, over and under colors

2010-05-27 Thread T J
Hi, I am plotting with imshow() and interpolation is turned on ('gaussian'). Part of my issue is that the distribution of values is such that I need to set the over/under colors to grab the most relevant values. If I set the over color to be the "maximum" color, then the result is too dark. Con

Re: [Matplotlib-users] Is there a way to link axes of imshow plots?

2010-05-27 Thread Adam Fraser
Thanks very much, I'm getting ValueError: argument must be "box", or "datalim" at set_adjustable... I'm using Matplotlib version 0.98.5.3, do I need to update? On Thu, May 27, 2010 at 2:59 PM, Jae-Joon Lee wrote: > ax1 = subplot(121) > ax2 = subplot(122, sharex=ax1, sharey=ax1) > > ax1.set_ad

Re: [Matplotlib-users] Is there a way to link axes of imshow plots?

2010-05-27 Thread Eric Firing
On 05/27/2010 09:08 AM, Adam Fraser wrote: > Thanks very much, > > I'm getting ValueError: argument must be "box", or "datalim" at > set_adjustable... > > I'm using Matplotlib version 0.98.5.3, do I need to update? > Yes. Unfortunately, you will need to build from svn. JJ added box-forced in Ja

Re: [Matplotlib-users] interpolation and colormaps, over and under colors

2010-05-27 Thread Eric Firing
On 05/27/2010 09:32 AM, T J wrote: > Hi, > > I am plotting with imshow() and interpolation is turned on > ('gaussian'). Part of my issue is that the distribution of values is > such that I need to set the over/under colors to grab the most > relevant values. If I set the over color to be the "max

Re: [Matplotlib-users] interpolation and colormaps, over and under colors

2010-05-27 Thread T J
On Thu, May 27, 2010 at 3:23 PM, Eric Firing wrote: > > I'm not sure I understand the problem; could you provide a tiny example > to illustrate? > Sure, let me focus just on the interpolation and I'll leave the filtering issue out. In the script below, I plot a 3x3 array with the center element

Re: [Matplotlib-users] interpolation and colormaps, over and under colors

2010-05-27 Thread Eric Firing
On 05/27/2010 01:58 PM, T J wrote: > On Thu, May 27, 2010 at 3:23 PM, Eric Firing wrote: >> >> I'm not sure I understand the problem; could you provide a tiny example >> to illustrate? >> > > Sure, let me focus just on the interpolation and I'll leave the > filtering issue out. > > In the script b