Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Commit

Permalink
add ability to suppress full size mode option
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew O'Connor & Damon McCormick authored and robolson committed Jul 6, 2011
1 parent f6b26ba commit c1b2aef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/simplerrd/graph.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def initialize(opts={})
@y2_shift = nil
@y2_label = nil
@elements = []
@no_full_size_mode = nil

call_hash_methods(opts)
end
Expand Down Expand Up @@ -208,7 +209,7 @@ def command_flags
flags.concat(['--right-axis', "#{y2_scale}:#{y2_shift}"])
flags.concat(['--right-axis-label', @y2_label.to_s]) if @height
end
flags.concat(['--full-size-mode']) if @width or @height
flags.concat(['--full-size-mode']) if (@width or @height) && !@no_full_size_mode
flags.concat(['--imgformat', @format]) if @format
return flags
end
Expand Down

0 comments on commit c1b2aef

Please sign in to comment.