Thank you very much for your detailed explanations. When I try

plot1 = fig.add_subplot(231,aspect='equal')
plot1.pcolor(xsr)
plot1.axis([0, 127, 0, 127])
plt.colorbar()
I get the error message
AttributeError: 'NoneType' object has no attribute 'autoscale_None'
WARNING: Failure executing file: <test.py>
But I don't really know, what this means.


> It may be a good idea and refer to the return value of fig.add_subplot
> as "ax" or something that, rather than "plot1" because add_subplot
> returns an Axes instance and thus ax is a better mnemonic; see
> 
Thank you very much, I was not aware of that. However, if I try

fig = plt.figure()
ax1 = fig.add_subplot(231,aspect='equal')
ax1.pcolor(xsr)
ax1.axis([0, 127, 0, 127])
fig.colorbar()
I also get an error message:
TypeError: colorbar() takes at least 2 arguments (1 given)
WARNING: Failure executing file: <test.py>

Cheers,
Markus


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to