Sha256: 0ce85477413f680ae73869084e06ad021763e0c4ce7b65af8eabf9e366b306bc

Contents?: true

Size: 395 Bytes

Versions: 13

Compression:

Stored size: 395 Bytes

Contents

#!/usr/bin/ruby

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

GraphViz.new(:g){ |g|
  g[:center] = true
  a = g.add_nodes("A", :shape => "rgv_box", :peripheries => 0)
  b = g.add_nodes("Bonjour le monde\nComment va tu ?", :shape => "rgv_cloud", :peripheries => 0)
  c = g.add_nodes("C", :shape => "rgv_flower", :peripheries => 0)
  a << b << c
}.save( :ps => "#{$0}.ps", :extlib => "rgv.ps" )

Version data entries

13 entries across 13 versions & 2 rubygems

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