Method: Graph#colorscheme
- Defined in:
- lib/graph.rb
#colorscheme(name, n = nil) ⇒ Object
Shortcut method to create and set the graph to use a colorscheme.
224 225 226 227 228 229 230 231 |
# File 'lib/graph.rb', line 224 def colorscheme name, n = nil self.scheme = Attribute.new "colorscheme = #{name}#{n}" max = COLOR_SCHEME_MAX[name.to_sym] node_attribs << scheme if max scheme end |