|
From: Virgil S. <vs...@it...> - 2014-06-15 23:41:48
|
On 16-Jun-14 01:12, Eric Firing wrote: > On 2014/06/15, 12:17 PM, Virgil Stokes wrote: >> There are some rather nice and useful matplotlib examples for colormaps >> that are shown at: >> >> http://nbviewer.ipython.org/github/dpsanders/matplotlib-examples/blob/master/colorline.ipynb >> >> In*Example 1. Sine wave colored by time (uses the defaults for >> colorline)*, how can one add a colorbar? > lc = colorline(x, y) > cbar = fig.colorbar(lc) > > Eric > > This works fine --- thanks very much Eric. Have a good day |