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
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
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
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
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
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().
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
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,
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
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
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
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
12 matches
Mail list logo