On Mon, Oct 4, 2010 at 9:36 PM, Alan W. Irwin <irwin@...> wrote:
> As of revision 11247 I have propagated the pllegend API to python just
> to prove that I could do so. Because my python swig skills are rusty
> it was a bit of a struggle dealing with the char ** text array because
> we had not dealt with that type before with swig. Those who
> eventually propagate pllegend to Java and Lua (and probably other
> languages) should be aware that this type is going to cause you some
> extra work.
>
> As a result of my propagation work, I now get consistent results for
> python and C for both examples 4 and 26. Others may also want to
> propagate pllegend to their favorite languages at this time. However,
> you should be aware that once Hez and Andrew have propagated pllegend
> to OCaml and Octave and compared its capabilities with the older
> legend capabilities for those languages, we might get some suggested
> changes in the pllegend API out of those comparisons. If those
> changes actually occur I am willing to modify my python propagation
> accordingly, but others may want to wait to propagate pllegend until
> we get feedback from Hez and Andrew on their experiences with pllegend
> for OCaml and Octave.
>
I have propagated the pllegend API and example changes (examples 4 and
26) to OCaml as of revision 11262. This revision gives clean "make
test_diff_psc" results between C and OCaml on my system.
One suggestion I have for the API is to add a box/outline option for
the pllegend window (PL_LEGEND_BOX as another option for the opt
parameter?). I'm not sure how the color of the box should be added to
the API - we already get a background color argument, and I'm
concerned about pllegend's already long argument list becoming longer
with every new option added.
The previous OCaml legend support does not have this feature, but it
would be a nice addition.
> We also need a volunteer to create an initial version of plcolorbar
> functionality in our core C library to complement the current discrete
> pllegend functionality. Hez, would you also be willing/able to take a
> shot at this?
>
I'll see what I can do with this.
Hez