|
From: Eric F. <ef...@ha...> - 2008-02-24 19:20:10
|
Bernhard, Are you sure you want a colorbar with lines and not a legend? A colorbar with lines only, matching a LineCollection, can be done with the facilities in mpl's colorbar.py module; you might take a look at the code in that module to see how it is being done in the line contour case. Note that ColorbarBase has a method, add_lines, for this. I'm sorry I don't have time to be more specific now, though. Eric Bernhard Voigt wrote: > Dear all! > > I'm folowing the line_collection2.py example to create a LineCollection > plot with a colorbar. > How can I force the colorbar to show distinct lines like it does in > contour plots for a LineCollection plot? > > Thanks! Bernhard |