
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Jake Voytko Sent: 31 July 2007 19:31 To: boost@lists.boost.org Subject: Re: [boost] [svg_plot] Progress of SVG_Plot
On 7/31/07, Marco <mrcekets@gmail.com> wrote:
(2) You define default for the x,y range as [-10, 10]. Shouldn't the default be guessed by the data values ?
Yes, but I'm finding that it's harder than it seems to pull this off right. Picking a range that contains all / a majority of the axis is relatively easy (scale axis to n standard deviations), but making the ticks fall on "nice" numbers is a little harder. This is a goal for this project, but is not my primary one for the time being.
Having slightly explored this choice of axis limits and ticks, I concur that it is more tricky to choose the nicest than you might imagine. There are lots of published algorithms, but (like Microsoft Excel for example), the results are not so pretty. But Jake is right - the algorithm(s) for this can be refined later. Paul --- Paul A Bristow Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB +44 1539561830 & SMS, Mobile +44 7714 330204 & SMS pbristow@hetp.u-net.com