Your message dated Sat, 18 Mar 2006 19:52:08 +0200
with message-id <[EMAIL PROTECTED]>
and subject line floating-point value for max_val option is broken
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: libchart-perl
Version: 2.2-1
Severity: normal

Hello Stephen,

I am trying to migrate from the woody version to this version and I
have problems. The first I managed to identify is that setting
max_val to a non-integral value break ticks:

------ lines.pl---------
#! /usr/bin/perl -w

use Chart::Lines
$obj=Chart::Lines->new;
$obj->add_dataset('foo');
for($i=0;$i<$ARGV[0];$i++)
{
  $obj->add_dataset($i);
}
$obj->set ('max_val' => 11.1);
$obj->png ("foo.png");
-------------------------

I get :
$ perl lines.pl 5
Chart::Base : Caution: Tick limit of 100 exceeded. Backing of to an interval of 
0.02 which plots 57 ticks

The second problem is that the colors used are different from the woody
version (and less readable), but I am not sure why.

Cheers,
-- 
Bill. <[EMAIL PROTECTED]>

Imagine a large red swirl here. 

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.24
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8

Versions of packages libchart-perl depends on:
ii  libgd-gd2-perl                2.110-2    Perl module wrapper for libgd - gd
ii  perl                          5.8.3-1    Larry Wall's Practical Extraction 


--- End Message ---
--- Begin Message ---
Package: libchart-perl
Version: 2.4.1-1

On Sun, Feb 08, 2004 at 05:00:46PM +0100, Bill Allombert wrote:
> Package: libchart-perl
> Version: 2.2-1
> Severity: normal
 
> I am trying to migrate from the woody version to this version and I
> have problems. The first I managed to identify is that setting
> max_val to a non-integral value break ticks:

> Chart::Base : Caution: Tick limit of 100 exceeded. Backing of to an interval 
> of 0.02 which plots 57 ticks

Hi,

I think this problem can be considered fixed in the current libchart-perl
version, 2.4.1-1. The error message doesn't occur any more, and there
are now variables 'min_y_ticks' and 'max_y_ticks' that control the number
of ticks:

'min_y_ticks'
 Sets the minimum number of y_ticks to draw when generating a scale.
 Default is 6, The minimum is 2.

'max_y_ticks'
 Sets the maximum number of y_ticks to draw when generating a scale.
 Default is 100. This limit is used to avoid ploting an unreasonably large
 number of ticks if non-round values are used for the min_val and max_val.

 The value for 'max_y_ticks' should be at least 5 times larger than 
 'min_y_ticks'.

By setting min_y_ticks=2 and max_y_ticks=10, your example with
max_val=11.1 gets ticks of 2 units each, ranging from 0 to 12. This
behaviour seems sensible to me.  I see no way to reproduce the exact
woody behaviour with 2.22-unit ticks, though.

> The second problem is that the colors used are different from the woody
> version (and less readable), but I am not sure why.

If you think this needs fixing, could you please provide an example? Anyway,
color selections are more a matter of taste, I suppose, as long as they can
be overridden explicitly (which seems to be the case here).

As the primary issue here ('floating-point value for max_val option
is broken') is IMO fixed, I'm closing the bug. Please feel free to
reply/reopen if you think this is inappropriate.

Cheers,
-- 
Niko Tyni       [EMAIL PROTECTED]

--- End Message ---

Reply via email to