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, Virgil Stokes <v...@it.uu.se> 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?
>
> --V
>
>
> ------------------------------------------------------------------------------
> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
> Find What Matters Most in Your Big Data with HPCC Systems
> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
> Leverages Graph Analysis for Fast Processing & Easy Data Exploration
> http://p.sf.net/sfu/hpccsystems
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users