Hi Andrew: On 2010-09-27 20:36+0100 Andrew Ross wrote:
> Alan, > > I've had a quick look at this [pllegend API]. It is something I've desired > for a while > so it is great to see it! A few random thoughts. > > 1) This is great for non-interactive uses. For interactive use you may > not know in advance how many legend entries there are. It would be nice > to add entries as you go along. This is a lot more complicated, and > may well not be worth the effort. It doesn't fit with the plplot > design very neatly. How does plplot cope with multiple calls to > pllegend if you update the legend as you go? I think interactive use like you describe would be mostly fine. For solid backgrounds, you could just increment nlegend and fill in data for the last index to (re-)produce the legend enlarged by one legend line each time. For no background, you could turn off all legends for any legend index by setting opt_array to zero for that index. For later calls, you could do that for all prior indices, increment nlegend, and fill in data for the last index to produce just one legend line in the correct place per call to pllegend. Transparent backgrounds, however, would be problematic for repeated interactive use. > > 2) A different, but related, issue is colourbars for colour contour > plots. Support for this would also be good. I think a separate plcolorbar API for that capability should be worked on post-release. > > 3) I'm not quite sure from the examples or what you have said whether > a legend outside the plot is possible, but I certainly think it > should be. Yes, that capability is available now. In fact, the legend x,y position and plot_width are now expressed in normalized sub-page coordinates rather than normalized viewport coordinates as before. > > Overall I think the current API is probably fit for most uses. Thanks for your review. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel