Skip to content

Commit

Permalink
Fixed comment for 'replace_colors' to remove ref to padding your color
Browse files Browse the repository at this point in the history
array by one.  Also tell what happens if you pass too few colors.
  • Loading branch information
erebor committed Feb 24, 2009
1 parent 83e5fdb commit a63cc4f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/gruff/base.rb
Expand Up @@ -253,10 +253,12 @@ def add_color(colorname)
@colors << colorname
end

# Replace the entire color list with a new array of colors. You need to
# have one more color than the number of datasets you intend to draw. Also
# Replace the entire color list with a new array of colors. Also
# aliased as the colors= setter method.
#
# If you specify fewer colors than the number of datasets you intend
# to draw, 'increment_color' will cycle through the array as needed.
#
# Note that (as with the 'theme' method), you should set up your color
# list before you send your data (via the 'data' method). Calls to the
# 'data' method made prior to this call will use whatever color scheme
Expand Down

0 comments on commit a63cc4f

Please sign in to comment.