Sha256: 39a0f8ea694e26f6179e08e9e401255ae23d4dda857f1e5719fb306ea846bd57

Contents?: true

Size: 348 Bytes

Versions: 11

Compression:

Stored size: 348 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

11 entries across 11 versions & 2 rubygems

Version Path
ruby-graphviz-1.2.5 examples/sample28.rb
ruby-graphviz-1.2.4 examples/sample28.rb
ruby-graphviz-1.2.3 examples/sample28.rb
ruby-graphviz-1.2.2 examples/sample28.rb
ruby-graphviz-1.2.1 examples/sample28.rb
ruby-graphviz-1.2.0 examples/sample28.rb
ruby-graphviz-1.1.0 examples/sample28.rb
ruby-graphviz_c-1.1.1 examples/sample28.rb
ruby-graphviz_c-1.1.0 examples/sample28.rb
ruby-graphviz-1.0.9 examples/sample28.rb
ruby-graphviz-1.0.8 examples/sample28.rb