Re: An addition to qwt
Brought to you by:
rathmann
From: Pieter v. B. <va...@ko...> - 2001-07-16 22:11:56
|
On Monday 16 July 2001 23:19, you wrote: > > On Mon, Jul 16, 2001 at 10:10:28PM +0200, Uwe Rathmann wrote: > > On Monday 16 July 2001 17:50, Steven Knight wrote: > > > qwt-0.3.0.1 contains my addtions. > > > > - Maybe its better to use the names axisScaleMin/axisScaleMax to keep the > > naming conventions of the rest of the qwt API. > > > > - Both methods should return something, even when the axis is not valid. > > I guess 0.0 would better than a random value from the stack. > > http://lists.sourceforge.net/lists/listinfo/qwt-interest > > Done. I've attached two updated patches. > > Thanks. Maybe it would be better not to return 0.0 to indicate invalid axes, but HUGE_VAL for axisScaleMin and -HUGE_VAL for axisScaleMax. If i call axisScaleMin and get 0.0 in return, I still don't know if this is indeed the (valid) minimum, or of it flags some error. I'm not sure if HUGE_VAL is defined in win32 environments, though. anybody out there with BCC or MSVC? Pieter. -- KOBAYASHI SOFTWARE Gouden Leeuw 836 Phone: +31 20 4165015 http://www.kobasoft.nl 1103 KT Amsterdam Fax: +31 20 4166731 in...@ko... The Netherlands PGP ID: 0xEDD2D7DF CF 20 EB 70 C4 B0 96 D3 E1 EE E5 34 2D FE 25 03 |