From: Markus H. <mar...@st...> - 2009-05-20 15:22:58
|
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 |