On 08/29/2011 05:44 AM, Benjamin Root wrote: > On Mon, Aug 29, 2011 at 9:59 AM, James McMurray <jamesmc...@gmail.com > <mailto:jamesmc...@gmail.com>> wrote: > > Okay, so using cm.set_over() and set_under works, but is there any > way of adding the set colors to the edges of the colorbar? > > > > This example should do what you want: > > http://matplotlib.sourceforge.net/examples/api/colorbar_only.html
Also http://matplotlib.sourceforge.net/examples/pylab_examples/contourf_demo.html. Note that "extend=both" is the relevant kwarg. With contourf, the kwarg goes in the contourf call, and colorbar automatically gets it from the ContourSet. With other types of color mappable plot, the kwarg needs to be given directly to the colorbar call. Eric > > I hope that helps! > Ben Root > > > > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > > > > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users