[Matplotlib-users] Adding a colorbar --- how?

2014-06-15 Thread Virgil Stokes
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?

Re: [Matplotlib-users] Adding a colorbar --- how?

2014-06-15 Thread Raymond Smith
Hi Virgil, I did something very much like this recently by simply adding an axes to my figure and using it to show a linspace of the data range off which the line color was based. See http://matplotlib.org/examples/color/colormaps_reference.html. Best, Ray On Sun, Jun 15, 2014 at 6:17 PM,

Re: [Matplotlib-users] Adding a colorbar --- how?

2014-06-15 Thread Eric Firing
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

Re: [Matplotlib-users] Adding a colorbar --- how?

2014-06-15 Thread Virgil Stokes
On 16-Jun-14 00:46, Raymond Smith wrote: Hi Virgil, I did something very much like this recently by simply adding an axes to my figure and using it to show a linspace of the data range off which the line color was based. See http://matplotlib.org/examples/color/colormaps_reference.html.

Re: [Matplotlib-users] Adding a colorbar --- how?

2014-06-15 Thread Virgil Stokes
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