Hi, I need to add a colorbar to each plot in a subplot but cant seem to get it to work. My code is as follows,
# Plot time series of slowness, baz, abs.power and rel.power labels = 'rel.power abs.power baz slow'.split() fig = plt.figure() for i, lab in enumerate(labels): ax = fig.add_subplot(4, 1, i + 1) ax.scatter(out[:, 0], out[:, i + 1], c=out[:, 1], alpha=0.6, edgecolors='none') ax.set_ylabel(lab) colorbar() fig.autofmt_xdate() fig.subplots_adjust(top=0.95, right=0.95, bottom=0.2, hspace=0.25) plt.show() Dont get any error but the colorbar is missing from the plot, anyone know how it is done???? -- View this message in context: http://old.nabble.com/How-to-use-colorbar-in-subplot-tp33097878p33097878.html Sent from the matplotlib - users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users