Thanks for your reply, Giorgio. I had a look at the documentation for pcolor
but unfortunately, I can't pick out where I have gone wrong. I have attached
my data array as a txt file. In ipython, I use the 'loadtxt' command to load
the dataset and then assigned the variables x,y, and z to the first, second
and third columns respectively. I then specified the meshgrid X,Y from the x
and y arrays of my data and used pcolor(X,Y,z) to try and plot the color
map.

Thanks a lot!



On Thu, Nov 12, 2009 at 4:36 AM, Giorgio_Luciano
<giorgio_luci...@libero.it>wrote:

> Can you send and example of the matrix you are using ?
> Are you sure to have specified correct input according to
>
> http://matplotlib.sourceforge.net/api/pyplot_api.html?highlight=pcolor#matplotlib.pyplot.pcolor
> Cheers
> Giorgio
>
0 0 195.552
-13.2 9 107.092
-13.2 11.6421 158.136
-13.2 14.2842 105.09
-13.2 16.9263 123.106
-13.2 19.5684 133.114
-13.2 22.2105 93.0799
-13.2 24.8526 91.0782
-13.2 27.4947 83.0713
-13.2 30.1368 89.0765
-13.2 32.7789 97.0834
-13.2 35.4211 89.0765
-13.2 38.0632 93.0799
-13.2 40.7053 92.0791
-13.2 43.3474 86.0739
-13.2 45.9895 90.0773
-13.2 48.6316 89.0765
-13.2 51.2737 89.0765
-13.2 53.9158 88.0756
-13.2 56.5579 89.0765
-13.2 59.2 81.0696
-10.3895 9 107.092
-10.3895 11.6421 111.095
-10.3895 14.2842 123.106
-10.3895 16.9263 136.117
-10.3895 19.5684 133.114
-10.3895 22.2105 98.0842
-10.3895 24.8526 94.0808
-10.3895 27.4947 96.0825
-10.3895 30.1368 93.0799
-10.3895 32.7789 86.0739
-10.3895 35.4211 91.0782
-10.3895 38.0632 93.0799
-10.3895 40.7053 92.0791
-10.3895 43.3474 82.0705
-10.3895 45.9895 83.0713
-10.3895 48.6316 91.0782
-10.3895 51.2737 97.0834
-10.3895 53.9158 94.0808
-10.3895 56.5579 108.093
-10.3895 59.2 88.0756
-7.57895 9 81.0696
-7.57895 11.6421 83.0713
-7.57895 14.2842 89.0765
-7.57895 16.9263 93.0799
-7.57895 19.5684 87.0748
-7.57895 22.2105 100.086
-7.57895 24.8526 83.0713
-7.57895 27.4947 96.0825
-7.57895 30.1368 85.073
-7.57895 32.7789 94.0808
-7.57895 35.4211 87.0748
-7.57895 38.0632 87.0748
-7.57895 40.7053 100.086
-7.57895 43.3474 94.0808
-7.57895 45.9895 89.0765
-7.57895 48.6316 89.0765
-7.57895 51.2737 98.0842
-7.57895 53.9158 86.0739
-7.57895 56.5579 94.0808
-7.57895 59.2 87.0748
-4.76842 9 92.0791
-4.76842 11.6421 86.0739
-4.76842 14.2842 93.0799
-4.76842 16.9263 89.0765
-4.76842 19.5684 85.073
-4.76842 22.2105 97.0834
-4.76842 24.8526 84.0722
-4.76842 27.4947 98.0842
-4.76842 30.1368 93.0799
-4.76842 32.7789 89.0765
-4.76842 35.4211 79.0679
-4.76842 38.0632 96.0825
-4.76842 40.7053 97.0834
-4.76842 43.3474 91.0782
-4.76842 45.9895 86.0739
-4.76842 48.6316 82.0705
-4.76842 51.2737 104.089
-4.76842 53.9158 100.086
-4.76842 56.5579 97.0834
-4.76842 59.2 91.0782
-1.95789 9 102.088
-1.95789 11.6421 82.0705
-1.95789 14.2842 101.087
-1.95789 16.9263 95.0816
-1.95789 19.5684 82.0705
-1.95789 22.2105 89.0765
-1.95789 24.8526 92.0791
-1.95789 27.4947 103.089
-1.95789 30.1368 85.073
-1.95789 32.7789 81.0696
-1.95789 35.4211 96.0825
-1.95789 38.0632 85.073
-1.95789 40.7053 94.0808
-1.95789 43.3474 85.073
-1.95789 45.9895 94.0808
-1.95789 48.6316 91.0782
-1.95789 51.2737 93.0799
-1.95789 53.9158 87.0748
-1.95789 56.5579 109.094
-1.95789 59.2 90.0773
0.852632 9 103.089
0.852632 11.6421 89.0765
0.852632 14.2842 84.0722
0.852632 16.9263 95.0816
0.852632 19.5684 95.0816
0.852632 22.2105 86.0739
0.852632 24.8526 91.0782
0.852632 27.4947 96.0825
0.852632 30.1368 87.0748
0.852632 32.7789 95.0816
0.852632 35.4211 98.0842
0.852632 38.0632 92.0791
0.852632 40.7053 88.0756
0.852632 43.3474 85.073
0.852632 45.9895 93.0799
0.852632 48.6316 84.0722
0.852632 51.2737 89.0765
0.852632 53.9158 78.067
0.852632 56.5579 100.086
0.852632 59.2 96.0825
3.66316 9 83.0713
3.66316 11.6421 94.0808
3.66316 14.2842 91.0782
3.66316 16.9263 85.073
3.66316 19.5684 90.0773
3.66316 22.2105 90.0773
3.66316 24.8526 81.0696
3.66316 27.4947 94.0808
3.66316 30.1368 100.086
3.66316 32.7789 92.0791
3.66316 35.4211 85.073
3.66316 38.0632 100.086
3.66316 40.7053 92.0791
3.66316 43.3474 80.0687
3.66316 45.9895 91.0782
3.66316 48.6316 88.0756
3.66316 51.2737 94.0808
3.66316 53.9158 96.0825
3.66316 56.5579 86.0739
3.66316 59.2 92.0791
6.47368 9 97.0834
6.47368 11.6421 104.089
6.47368 14.2842 80.0687
6.47368 16.9263 87.0748
6.47368 19.5684 118.101
6.47368 22.2105 120.103
6.47368 24.8526 86.0739
6.47368 27.4947 91.0782
6.47368 30.1368 81.0696
6.47368 32.7789 90.0773
6.47368 35.4211 84.0722
6.47368 38.0632 90.0773
6.47368 40.7053 83.0713
6.47368 43.3474 87.0748
6.47368 45.9895 92.0791
6.47368 48.6316 97.0834
6.47368 51.2737 91.0782
6.47368 53.9158 91.0782
6.47368 56.5579 96.0825
6.47368 59.2 103.089
9.28421 9 104.089
9.28421 11.6421 104.089
9.28421 14.2842 117.101
9.28421 16.9263 93.0799
9.28421 19.5684 106.091
9.28421 22.2105 97.0834
9.28421 24.8526 96.0825
9.28421 27.4947 94.0808
9.28421 30.1368 89.0765
9.28421 32.7789 89.0765
9.28421 35.4211 97.0834
9.28421 38.0632 84.0722
9.28421 40.7053 91.0782
9.28421 43.3474 88.0756
9.28421 45.9895 95.0816
9.28421 48.6316 97.0834
9.28421 51.2737 94.0808
9.28421 53.9158 94.0808
9.28421 56.5579 83.0713
9.28421 59.2 89.0765
12.0947 9 96.0825
12.0947 11.6421 90.0773
12.0947 14.2842 91.0782
12.0947 16.9263 92.0791
12.0947 19.5684 88.0756
12.0947 22.2105 94.0808
12.0947 24.8526 93.0799
12.0947 27.4947 97.0834
12.0947 30.1368 90.0773
12.0947 32.7789 100.086
12.0947 35.4211 91.0782
12.0947 38.0632 81.0696
12.0947 40.7053 85.073
12.0947 43.3474 98.0842
12.0947 45.9895 92.0791
12.0947 48.6316 87.0748
12.0947 51.2737 93.0799
12.0947 53.9158 91.0782
12.0947 56.5579 85.073
12.0947 59.2 90.0773
14.9053 9 108.093
14.9053 11.6421 93.0799
14.9053 14.2842 79.0679
14.9053 16.9263 89.0765
14.9053 19.5684 86.0739
14.9053 22.2105 94.0808
14.9053 24.8526 98.0842
14.9053 27.4947 81.0696
14.9053 30.1368 94.0808
14.9053 32.7789 89.0765
14.9053 35.4211 94.0808
14.9053 38.0632 100.086
14.9053 40.7053 101.087
14.9053 43.3474 81.0696
14.9053 45.9895 105.09
14.9053 48.6316 99.0851
14.9053 51.2737 88.0756
14.9053 53.9158 96.0825
14.9053 56.5579 87.0748
14.9053 59.2 92.0791
17.7158 9 119.102
17.7158 11.6421 96.0825
17.7158 14.2842 86.0739
17.7158 16.9263 83.0713
17.7158 19.5684 92.0791
17.7158 22.2105 85.073
17.7158 24.8526 84.0722
17.7158 27.4947 94.0808
17.7158 30.1368 90.0773
17.7158 32.7789 92.0791
17.7158 35.4211 101.087
17.7158 38.0632 115.099
17.7158 40.7053 95.0816
17.7158 43.3474 93.0799
17.7158 45.9895 83.0713
17.7158 48.6316 94.0808
17.7158 51.2737 103.089
17.7158 53.9158 111.095
17.7158 56.5579 95.0816
17.7158 59.2 86.0739
20.5263 9 197.169
20.5263 11.6421 100.086
20.5263 14.2842 82.0705
20.5263 16.9263 89.0765
20.5263 19.5684 86.0739
20.5263 22.2105 85.073
20.5263 24.8526 91.0782
20.5263 27.4947 95.0816
20.5263 30.1368 100.086
20.5263 32.7789 102.088
20.5263 35.4211 93.0799
20.5263 38.0632 91.0782
20.5263 40.7053 91.0782
20.5263 43.3474 104.089
20.5263 45.9895 105.09
20.5263 48.6316 590.507
20.5263 51.2737 141.121
20.5263 53.9158 87.0748
20.5263 56.5579 90.0773
20.5263 59.2 86.0739
23.3368 9 150.129
23.3368 11.6421 103.089
23.3368 14.2842 91.0782
23.3368 16.9263 105.09
23.3368 19.5684 88.0756
23.3368 22.2105 91.0782
23.3368 24.8526 85.073
23.3368 27.4947 91.0782
23.3368 30.1368 96.0825
23.3368 32.7789 86.0739
23.3368 35.4211 87.0748
23.3368 38.0632 98.0842
23.3368 40.7053 94.0808
23.3368 43.3474 91.0782
23.3368 45.9895 101.087
23.3368 48.6316 181.156
23.3368 51.2737 120.103
23.3368 53.9158 80.0687
23.3368 56.5579 92.0791
23.3368 59.2 96.0825
26.1474 9 97.0834
26.1474 11.6421 90.0773
26.1474 14.2842 83.0713
26.1474 16.9263 84.0722
26.1474 19.5684 90.0773
26.1474 22.2105 98.0842
26.1474 24.8526 92.0791
26.1474 27.4947 96.0825
26.1474 30.1368 102.088
26.1474 32.7789 97.0834
26.1474 35.4211 86.0739
26.1474 38.0632 84.0722
26.1474 40.7053 93.0799
26.1474 43.3474 112.096
26.1474 45.9895 98.0842
26.1474 48.6316 112.096
26.1474 51.2737 84.0722
26.1474 53.9158 91.0782
26.1474 56.5579 92.0791
26.1474 59.2 101.087
28.9579 9 78.067
28.9579 11.6421 89.0765
28.9579 14.2842 98.0842
28.9579 16.9263 90.0773
28.9579 19.5684 86.0739
28.9579 22.2105 94.0808
28.9579 24.8526 91.0782
28.9579 27.4947 94.0808
28.9579 30.1368 90.0773
28.9579 32.7789 94.0808
28.9579 35.4211 94.0808
28.9579 38.0632 91.0782
28.9579 40.7053 109.094
28.9579 43.3474 93.0799
28.9579 45.9895 93.0799
28.9579 48.6316 98.0842
28.9579 51.2737 101.087
28.9579 53.9158 97.0834
28.9579 56.5579 96.0825
28.9579 59.2 88.0756
31.7684 9 84.0722
31.7684 11.6421 103.089
31.7684 14.2842 86.0739
31.7684 16.9263 88.0756
31.7684 19.5684 90.0773
31.7684 22.2105 98.0842
31.7684 24.8526 85.073
31.7684 27.4947 87.0748
31.7684 30.1368 104.089
31.7684 32.7789 93.0799
31.7684 35.4211 95.0816
31.7684 38.0632 98.0842
31.7684 40.7053 110.095
31.7684 43.3474 93.0799
31.7684 45.9895 90.0773
31.7684 48.6316 111.095
31.7684 51.2737 91.0782
31.7684 53.9158 98.0842
31.7684 56.5579 105.09
31.7684 59.2 96.0825
34.5789 9 95.0816
34.5789 11.6421 85.073
34.5789 14.2842 97.0834
34.5789 16.9263 91.0782
34.5789 19.5684 83.0713
34.5789 22.2105 81.0696
34.5789 24.8526 94.0808
34.5789 27.4947 91.0782
34.5789 30.1368 102.088
34.5789 32.7789 84.0722
34.5789 35.4211 98.0842
34.5789 38.0632 86.0739
34.5789 40.7053 94.0808
34.5789 43.3474 98.0842
34.5789 45.9895 94.0808
34.5789 48.6316 83.0713
34.5789 51.2737 106.091
34.5789 53.9158 93.0799
34.5789 56.5579 76.0653
34.5789 59.2 97.0834
37.3895 9 97.0834
37.3895 11.6421 89.0765
37.3895 14.2842 109.094
37.3895 16.9263 200.172
37.3895 19.5684 82.0705
37.3895 22.2105 96.0825
37.3895 24.8526 97.0834
37.3895 27.4947 96.0825
37.3895 30.1368 90.0773
37.3895 32.7789 87.0748
37.3895 35.4211 95.0816
37.3895 38.0632 84.0722
37.3895 40.7053 98.0842
37.3895 43.3474 92.0791
37.3895 45.9895 88.0756
37.3895 48.6316 96.0825
37.3895 51.2737 93.0799
37.3895 53.9158 82.0705
37.3895 56.5579 96.0825
37.3895 59.2 86.0739
40.2 9 89.0765
40.2 11.6421 103.089
40.2 14.2842 93.0799
40.2 16.9263 89.0765
40.2 19.5684 85.073
40.2 22.2105 88.0756
40.2 24.8526 97.0834
40.2 27.4947 97.0834
40.2 30.1368 90.0773
40.2 32.7789 87.0748
40.2 35.4211 101.087
40.2 38.0632 106.091
40.2 40.7053 107.092
40.2 43.3474 103.089
40.2 45.9895 100.086
40.2 48.6316 94.0808
40.2 51.2737 97.0834
40.2 53.9158 87.0748
40.2 56.5579 96.0825
40.2 59.2 128.11
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to