rand() produces a numpy array, so long as numpy is imported into the
namespace.
I was simply using the random numbers as example data.
In your case you would take your 1x100 vector of heat data and re-shape it
to a 10x10 array. data=data.reshape(10,10)
Pete
2008/8/8 stuartornum <[EMAIL PROTECTED]>
>
> 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 does..? Apparently I
> shouldn't use it unless a specific C library is required...?
>
> Also what does rand(3,3) actually produce? is it a list, dict, im not
> really
> sure.
>
> if I print rand(3,3) I get this:
>
> [[ 0.66877509 0.58785363 0.32387598]
> [ 0.30220588 0.39593143 0.82576463]
> [ 0.41322716 0.49939853 0.99874519]]
>
> Which looks like a list but without commas, also how would I address a grid
> position.. say.. (2,3) and plot a value to that?
>
> Thank you
> --
> View this message in context:
> http://www.nabble.com/Contour-Contourf-Plot-Heatmap---Grid---Multiple-Items-tp18872991p18887443.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users