From: Jonathan W. <jw...@ph...> - 2009-04-27 02:52:08
|
Hi Hez > > I suggest you go ahead and implement any improvement you would like to see > > in PLplot axis scaling. Of course, be sure and test such improvements for > > all anticipated QSAS axis scaling needs. > > Would it be considered reasonable to some form of user-customizable > axis labeling API in PLplot by providing callbacks similar to the pltr > functions used by plcont and friends? The axis labeling code could > remain mostly as-is. However, when a custom labeling function is > defined, rather than rendering the text which matches the actual > number at a given axis location, that number would be passed to the > user-provided function. This function would return a string with the > appropriate label based on the provided floating point value. If the > user wants to capture extra label information in this function (scale > magnitude, for example) they could do so. 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. So, definitely +1 from me. :-) Regards jonathan |