[Matplotlib-users] continous colour bar

2011-07-11 Thread Ben Elliston
Hi. I have a set of data with a range of (say) 0 to 100. Is it possible to get matplotlib to use the same colour for 0 and 100, so that the colours meet at the ends of the color bar? One workaround is to just manipulate the data (eg. using abs (x-50)), but I would rather not, if possible.

Re: [Matplotlib-users] broken demo

2011-07-11 Thread Josh Hemann
There is an open bug filed on this issue, #608932. Specifically, the issue is that multiple plots in the gallery examples work when run from a Python prompt, yet the html page that gets generated for the documentation shows the exception message. For what it is worth, I submitted the radar chart

[Matplotlib-users] Decouple the colorbar form subplot

2011-07-11 Thread SiggiN
Hi all! following code shows the problem I have with placing a colorbar for several subplots. #-code import matplotlib import numpy as np import matplotlib.cm as cm import matplotlib.mlab as mlab import matplotlib.pyplot as plt

Re: [Matplotlib-users] Decouple the colorbar form subplot

2011-07-11 Thread Sebastian Berg
Hi, On Mon, 2011-07-11 at 07:13 -0700, SiggiN wrote: Hi all! following code shows the problem I have with placing a colorbar for several subplots. #-code import matplotlib import numpy as np import matplotlib.cm as cm import matplotlib.mlab as

Re: [Matplotlib-users] Decouple the colorbar form subplot

2011-07-11 Thread Benjamin Root
On Mon, Jul 11, 2011 at 11:16 AM, Sebastian Berg sebast...@sipsolutions.net wrote: Hi, On Mon, 2011-07-11 at 07:13 -0700, SiggiN wrote: Hi all! following code shows the problem I have with placing a colorbar for several subplots. #-code

Re: [Matplotlib-users] Decouple the colorbar form subplot

2011-07-11 Thread Paul Ivanov
Sebastian Berg, on 2011-07-11 18:16, wrote: On Mon, 2011-07-11 at 07:13 -0700, SiggiN wrote: is ther a way to not let the colorbar cut space from the 2nd subplot. I would like to have them both the same size. yes, you can pass the cax parameter to colorbar which will put it inside that

Re: [Matplotlib-users] Change color for fill_between to contour plot

2011-07-11 Thread Nader A
Thanks Ian... The tricontourf worked perfectly. I was able to manipulate it further for my needs, but your sample code saved me... Best regards, Nader Abedrabbo Try tricontourf; I've attached an example. Most of the example code is manipulating your input data and calculating the

Re: [Matplotlib-users] displaying plain data without fancy features (wx)

2011-07-11 Thread Benjamin Root
On Mon, Jun 20, 2011 at 8:13 PM, kafooster dmoze...@gmail.com wrote: Hello, I am trying to display an array with imshow(), however I want to 'turn off' display of axes, numbers, and all that extra stuff which comes with it. I want only my array(grayscale image) to be shown

Re: [Matplotlib-users] continous colour bar

2011-07-11 Thread gary ruben
The pre-defined hsv colour map has this property - can you use that? Otherwise, yes, it is possible to define any map you like. Gary R On Fri, Jul 8, 2011 at 12:55 PM, Ben Elliston b...@air.net.au wrote: Hi. I have a set of data with a range of (say) 0 to 100.  Is it possible to get

[Matplotlib-users] formatter for durations of varying units

2011-07-11 Thread C M
I need to make a dates (on x) vs. durations of time (on y) plots and need to have smart formatting for the y axis. My y data is in the database in the format: '0:00:02.994000', (that is, 2.9 seconds) and I'd like the y axis to be expressed in ticks of, e.g., 2 hrs, or 10 minutes, or 25 seconds,