[DRE-maint] Bug#512033: libgruff-ruby: Repeats last color from defined set, resulting in the wrong output image

Gunnar Wolf gwolf at gwolf.org
Fri Jan 16 15:59:25 UTC 2009


Package: libgruff-ruby
Version: 0.3.4-1
Severity: normal

Gruff repeats the last color in its 'colors' hash when generating a
graph - So, with the default color set, whenever it is requested to
graph over 7 rows, a graph with two adjacent equal colors will be
generated - See the attached 'gruff_colors.png' file, which is the
output of this:

    #!/usr/bin/ruby
    require 'gruff'

    g = Gruff::Pie.new
    g.title = 'Gruff colors test'
    10.times { |row| g.data(row, 1) }

    g.write('gruff_colors.png')

Adding an extra color does not help the problem - The output from
adding "g.add_color '#777777'" just after the Gruff initialization
results in the attached gruff_added_color.png.

-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-vserver-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libgruff-ruby depends on:
ii  libgruff-ruby1.8              0.3.4-1    library to create graphs and chart

libgruff-ruby recommends no packages.

libgruff-ruby suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gruff_colors.png
Type: image/png
Size: 79590 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20090116/15a5c6fc/attachment-0002.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gruff_added_color.png
Type: image/png
Size: 79849 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20090116/15a5c6fc/attachment-0003.png 


More information about the Pkg-ruby-extras-maintainers mailing list