PyPlot legends

Andriy basilisk96 at gmail.com
Wed Aug 8 14:56:29 PDT 2007


Hi all,

I really enjoy using this module, since my work currently involves
plotting a bunch of measured data in creative ways!

My question is about the legend display: if a PlotCanvas contains
several PlotGraphics objects, doing a SetEnableLegend will draw all
the legends. That's OK, but I want to be able to NOT draw those
legends that are blank, e.g., empty strings, and still draw the ones
that are not empty. I currently draw a number of PolyLine objects
(anywhere from 5 to 20), and the same number of PolyMarker objects
that appear as dots along the PolyLine points. I want to show the
legend just for the PolyMarker data and not for the PolyLine data,
because they are the same thing.

Is it possible? Has anyone else tried this?

-amv-




More information about the wxpython-users mailing list