|
From: Raymond S. <sm...@mi...> - 2014-06-15 22:47:28
|
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 <vs...@it...> 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |