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 p.schell...@gmail.com: 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

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

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 p.schell...@gmail.com: 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

[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

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 lee.j.j...@gmail.com wrote: From: Jae-Joon Lee lee.j.j...@gmail.com Subject: Re: [Matplotlib-users] Clip text in bars To: wrpd_mnd wrpd_...@yahoo.com Cc: matplotlib-users@lists.sourceforge.net Date: Thursday, May 27, 2010, 9:24 AM The

[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

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.

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 lee.j.j...@gmail.com wrote: ax1 = subplot(121) ax2 = subplot(122, sharex=ax1, sharey=ax1)

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 January, and

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 efir...@hawaii.edu 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

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 Firingefir...@hawaii.edu 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