Logo Search packages:      
Sourcecode: matplotlib version File versions

pylab_examples::colorbar_tick_labelling_demo Namespace Reference


Detailed Description

Produce custom labelling for a colorbar.

Contributed by Scott Sinclair


Variables

tuple ax = fig.add_subplot(111)
tuple cax = ax.imshow(data, interpolation='nearest')
tuple cbar = fig.colorbar(cax, ticks=[-1, 0, 1])
tuple data = np.clip(randn(250, 250), -1, 1)
tuple fig = plt.figure()


Generated by  Doxygen 1.6.0   Back to index