Sha256: 2bd4e01922afbf86577130398f69a363cf94eff6af7add05872e8be0262cc261

Contents?: true

Size: 350 Bytes

Versions: 21

Compression:

Stored size: 350 Bytes

Contents

#!/usr/bin/ruby

$:.unshift( "../lib" );
require "graphviz"

GraphViz.new(:G){ |g|
  g[:ratio => "auto", :label => "I love the world!"]
  
	g.hello( :label => "Hello", :color => "blue" ) # You can do this
	g.none[ :label => "World", :color => "green" ] # or that
	(g.hello - g.none)[:style => :bold, :label => " I say"]
}.save( :png => "#{$0}.png" )

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
ruby-graphviz-1.0.7 examples/sample28.rb
ruby-graphviz-1.0.6 examples/sample28.rb
ruby-graphviz-1.0.5 examples/sample28.rb
ruby-graphviz-1.0.4 examples/sample28.rb
ruby-graphviz-1.0.3 examples/sample28.rb
ruby-graphviz-1.0.2 examples/sample28.rb
ruby-graphviz-1.0.1 examples/sample28.rb
ruby-graphviz-1.0.0 examples/sample28.rb
ruby-graphviz-0.9.21 examples/sample28.rb
ruby-graphviz-0.9.20 examples/sample28.rb
ruby-graphviz-0.9.19 examples/sample28.rb
ruby-graphviz-0.9.18 examples/sample28.rb
ruby-graphviz-0.9.17 examples/sample28.rb
ruby-graphviz-0.9.16 examples/sample28.rb
ruby-graphviz-0.9.15 examples/sample28.rb
ruby-graphviz-0.9.14 examples/sample28.rb
ruby-graphviz-0.9.13 examples/sample28.rb
ruby-graphviz-0.9.12 examples/sample28.rb
ruby-graphviz-0.9.11 examples/sample28.rb
ruby-graphviz-0.9.10 examples/sample28.rb