Hi Hez

> > Speaking as someone who regularly prepares plots for scientific publication,
> > having a custom labelling function for the axis labels would be great.
> > Currently the bulk of my work isn't done using plplot but rather with a
> > custom plotting framework I wrote around plotutils, but as part of that API
> > I included precisely this functionality because I was always needing to
> > label things with something apart from just the literal numeric value.
> 
> Given that bit of encouragement and my own use for such functionality,
> I have started digging in to plbox.c to see what needs to happen.
> :
> To sum up:
> 1) This would add one new function to the public PLplot API: plslabelfunc()
> 2) New constants could be added as well for the xyz argument described above
> 3) This would add 2 (3) new letters to the format string taken by
> plbox (plbox3).  I propose "x" "y" and "z" for custom X, Y and Z axes,
> respectively.
> 4) This should not change any existing code - everything which does
> not use plslabelfunc() would continue to function as-is.
> 
> Does this seem like a reasonable approach?  Any suggestions for
> improvements?

For what it's worth this all looks good to me - if I had the time it's
pretty much what I would do.  It's a clean solution which doesn't break
existing code.  My only comment is that when a custom label is requested but
no function has been supplied, I think falling back to the default labelling
system (probably with a warning) is probably the sensible thing to do.

> Is plslabelfunc an acceptable name or is there something better anyone
> wants to suggest?

It makes sense to me.

Regards
  jonathan

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to