AttributeError while adding colorbar in matplotlib?

Note: I am using python 2.6.2. The same error was raised with your code and the following modification solved the problem I read the following colorbar example: matplotlib.sourceforge.net/examples/pyla... from matplotlib import pylab as pl import numpy as np data = np.random. Rand(6,6) fig = pl.

Figure(1) fig.clf() ax = fig. Add_subplot(1,1,1) cax = ax. Imshow(data, interpolation='nearest', vmin=0.5, vmax=0.99) fig.

Colorbar(cax) pl.show() Not sure why your example didn't work. I'm not that familiar with matplotlib.

Note: I am using python 2.6.2. The same error was raised with your code and the following modification solved the problem. I read the following colorbar example: matplotlib.sourceforge.net/examples/pyla... from matplotlib import pylab as pl import numpy as np data = np.random.

Rand(6,6) fig = pl. Figure(1) fig.clf() ax = fig. Add_subplot(1,1,1) cax = ax.

Imshow(data, interpolation='nearest', vmin=0.5, vmax=0.99) fig. Colorbar(cax) pl.show() Not sure why your example didn't work. I'm not that familiar with matplotlib.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions