Re: [Matplotlib-users] mpl.colors.BoundaryNorm question

2009-08-14 Thread Eric Firing
P.R. wrote: Hi, I'd like to generate a colormap index based on an array of levels using an existing colormap (Spectral). However, Id like the cmap index to start at the 0.3 value of the Spectral scale (orange/yellow area) instead of starting at the '0' scale value (red area), and then

[Matplotlib-users] trouble installing new matplotlib on mac os x

2009-08-14 Thread per freem
hi all, i am trying to install matplotlib-0.99 on a mac os x machine, with the following python: Python 2.5.1 (r251:54863, Jan 13 2009, 10:26:13) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin using version 10.5.6 of mac os x. when i go to http://sourceforge.net/projects/matplotlib/ it prompts

Re: [Matplotlib-users] trouble installing new matplotlib on mac os x

2009-08-14 Thread Jouni K . Seppänen
per freem perfr...@gmail.com writes: i am trying to install matplotlib-0.99 on a mac os x machine, with the following python: Python 2.5.1 (r251:54863, Jan 13 2009, 10:26:13) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin I think that's the system Python (/usr/bin/python), while the

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

2009-08-14 Thread Christophe Dupre
Thanks JJ, this works fairly well. I was wondering if the following would also be possible: at start up, draw all the minute bars in an invisible background, and on each update only display a subset of the background. Regards, Christophe -Original Message- From: Jae-Joon Lee

[Matplotlib-users] how do I get past show()

2009-08-14 Thread Dan Klinglesmith
I am writing a python script that is a continuous running script in which I want to update a weather data plot. In other words I am collecting weather data (temperature, RH, winds, etc) on a regular basis and want to update a plot of the last 24 hours worth of data. I can make the plots but

Re: [Matplotlib-users] how do I get past show()

2009-08-14 Thread Alan G Isaac
On 8/14/2009 11:54 AM Dan Klinglesmith apparently wrote: I am writing a python script that is a continuous running script in which I want to update a weather data plot. [...] I can make the plots but can not figure how to get past show().

Re: [Matplotlib-users] mpl.colors.BoundaryNorm question

2009-08-14 Thread Eric Firing
Eric Firing wrote: It occurred to me after posting that imshow by default gives a misleading picture of the effect of the cmap and boundary norm. To get a clear picture, add the interpolation='nearest' kwarg to the imshow call. Eric import numpy as np import matplotlib.pyplot as plt

Re: [Matplotlib-users] mpl.colors.BoundaryNorm question

2009-08-14 Thread P.R.
Eric, Thanks, that worked... I have a separate question about colormaps... I'd also like to try creating my own custom colormap by modifying an existing cmap, inserting/removing colors by changing the values in the rgb dictionary... How do I retrieve the actual rgb dictionary associated with,

[Matplotlib-users] colormap creation

2009-08-14 Thread P.R.
Can someone please recommend a (semi) automatic way to create the rgb dictionaries needed for colormap creation? Basically, I have a 'general' idea of how I want my colors ordered, but Im finding it difficult to create the smooth transitions by manually editing the rgb dictionary for my custom

Re: [Matplotlib-users] colormap creation

2009-08-14 Thread Jeff Whitaker
P.R. wrote: Can someone please recommend a (semi) automatic way to create the rgb dictionaries needed for colormap creation? Basically, I have a 'general' idea of how I want my colors ordered, but Im finding it difficult to create the smooth transitions by manually editing the rgb dictionary

Re: [Matplotlib-users] colormap creation

2009-08-14 Thread P.R.
Jeff, Ok, so this is what I was trying to achieve... c=['#6C9F7B','#783F68','#F4F4F2','#22F322','#F3F322','#F3'] mycm=mpl.colors.LinearSegmentedColormap.from_list('mycm',c) plt.imshow(rand(10,10),cmap=mycm,interpolation='nearest') colorbar() plt.show() That was the initial goal; being able

Re: [Matplotlib-users] Align Text (Relative)

2009-08-14 Thread jason-sage
Andrew Kelly wrote: I am currently using the annotate() method for my data points and I was curious if there is a way to center a line of text relative to a line of text below it. I am currently using two annotate() function calls in a row (I need the text to be different colors) but I