[Matplotlib-users] plot_date() - Correct format to plot

2008-08-27 Thread stuartornum
Hi, I would like to be able to plot dates along the X axis' with values up the Y. However Im having problems with the correct format in order to pass to plot_date(). This is what I have so far: (example) List = [ [datetime.datetime(2008, 7, 12, 5, 12)],

[Matplotlib-users] Set MPLCONFIGDIR to something different

2008-08-18 Thread stuartornum
Hi, Im getting the error: type 'exceptions.RuntimeError': Failed to create /$dirstring$/common/.matplotlib; consider setting MPLCONFIGDIR to a writable directory for matplotlib configuration data The problem is I do not have write access to the MatPlotLib module sourse, so I cannot change the

[Matplotlib-users] colorbar() fix limit on Heat map

2008-08-11 Thread stuartornum
Hi All, You may remember from my previous post I was having problems plotting a heatmap, however Pete came through for me and made it work. Anyway, I have almost finished what I want to do. The only issue is fixing the colorbar() range limit. Sometimes the my values are 0.01 to 0.2 for

Re: [Matplotlib-users] Contour/Contourf Plot Heatmap - Grid - Multiple Items

2008-08-08 Thread stuartornum
Hi Pete / All, Thank you for the help so far, really appreciate it. I have managed to plot the graph above using the code you gave me: ### z=rand(3,3) pcolormesh(z) colorbar() savefig('colour.png') ### However, I am trying to find out what rand() actually

Re: [Matplotlib-users] Contour/Contourf Plot Heatmap - Grid - Multiple Items

2008-08-08 Thread stuartornum
Thanks again Pete for your help. I have numpy imported, and here is what my code looks like: import matplotlib import numpy from numpy import * from pylab import * list = [0.66877509, 0.58785363, 0.32387598, 0.16877509, 0.48785363, 0.22387598, 0.96877509,

Re: [Matplotlib-users] Contour/Contourf Plot Heatmap - Grid - Multiple Items

2008-08-08 Thread stuartornum
AH HA! Pete, you are a life saver! Thank you so much for all your help ! -- View this message in context: http://www.nabble.com/Contour-Contourf-Plot-Heatmap---Grid---Multiple-Items-tp18872991p1931.html Sent from the matplotlib - users mailing list archive at Nabble.com.

[Matplotlib-users] Contour/Contourf Plot Heatmap - Grid - Multiple Items

2008-08-07 Thread stuartornum
Hi, I have been using matplotlib for about 2 weeks now. I thought it would be good to try plotting heatmaps to show some data. The idea: I have 100 values all ranging from 0.00 to 1.00, I would like to create a graph with a 10 by 10 grid. Therefore each value has 1 section of the grid. So,

Re: [Matplotlib-users] Contour/Contourf Plot Heatmap - Grid - Multiple Items

2008-08-07 Thread stuartornum
Hi Pete, Thanks for the quick response. Will imshow() actually plot the graph? Do I not need to do something like: contourf(X, Y, Z, levels) Thanks -- View this message in context: http://www.nabble.com/Contour-Contourf-Plot-Heatmap---Grid---Multiple-Items-tp18872991p18874222.html Sent

[Matplotlib-users] Using Hex number with shape syntax

2008-08-04 Thread stuartornum
Hi, I am just playing around with different shapes and colours at the moment, I have managed the standard colours like this: plot(Time, Value, 'r.') Which obviously prints a red dot. However how do use the hex colour map with the ., I have tried: plot(Time, Value, '#330066.') plot(Time,

Re: [Matplotlib-users] Using Hex number with shape syntax

2008-08-04 Thread stuartornum
Perfect! Thanks guys Did this in the end: plot(Time, Value, 'o', markersize = 1, markerfacecolor = '#330066', markeredgecolor = '#330066' -- View this message in context: http://www.nabble.com/Using-Hex-number-with-shape-syntax-tp18808107p18811425.html Sent from the matplotlib - users

Re: [Matplotlib-users] Plot a Dictionary, time and value

2008-07-31 Thread stuartornum
Thank you John, Just what I was looking for. John Hunter-4 wrote: On Wed, Jul 30, 2008 at 9:17 AM, stuartornum [EMAIL PROTECTED] wrote: Hi, Wondering if anyone has done something similar and could point me in the right direction. I have a dictionary like this: Dict{'00:00:00':'23

[Matplotlib-users] Plot Multiple List by concatenating to a string?

2008-07-31 Thread stuartornum
Hi again, This is slightly similar to my previous post, however using lists, not dictionaires. So, I have a for loop that produces two list, as follows: Hours = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22',

Re: [Matplotlib-users] Plot Multiple List by concatenating to a string?

2008-07-31 Thread stuartornum
, stuartornum apparently wrote: Is there a way to build a plot string, and then plot the string once the for loop has finished. What gain are you looking for over your lists, which seems an efficient approach? You realize plot accepts 2d objects, right? http://matplotlib.sourceforge.net

[Matplotlib-users] Plot a Dictionary, time and value

2008-07-30 Thread stuartornum
Hi, Wondering if anyone has done something similar and could point me in the right direction. I have a dictionary like this: Dict{'00:00:00':'23', '00:01:00':'29', '00:02:00':'13', '00:03:00':'78', '00:04:00':'45', '23:59:00':54} So as you can see there is 24 hours worth of minutes, with