Created
July 13, 2010 22:11
-
-
Save harukizaemon/474617 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| irb --> GraphViz.new( "<World", :type => :digraph ).output( :svg => String ) | |
| RuntimeError: Error from "/usr/local/bin/dot" -q1 -Tsvg /var/folders/jG/jGGNYPbXE6WwtIkPbM12X++++TI/-Tmp-/graphviz.rb20100714-23405-10bm2sr-0: | |
| Error: /var/folders/jG/jGGNYPbXE6WwtIkPbM12X++++TI/-Tmp-/graphviz.rb20100714-23405-10bm2sr-0:1: syntax error near line 1 | |
| from /usr/local/Cellar/ruby/1.9.1-p378/lib/ruby/gems/1.9.1/gems/ruby-graphviz-0.9.14/lib/graphviz/utils.rb:72:in `output_from_command' | |
| from /usr/local/Cellar/ruby/1.9.1-p378/lib/ruby/gems/1.9.1/gems/ruby-graphviz-0.9.14/lib/graphviz.rb:507:in `output' | |
| from (irb):8 | |
| from /usr/local/bin/irb:12:in `<main>' | |
| irb --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| irb --> GraphViz.new( "<World".inspect, :type => :digraph ).output( :svg => String ) | |
| ==> "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n<!-- Generated by graphviz version 2.26.3 (20100126.1600)\n -->\n<!-- Title: <World Pages: 1 -->\n<svg width=\"8pt\" height=\"8pt\"\n viewBox=\"0.00 0.00 8.00 8.00\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n<g id=\"graph1\" class=\"graph\" transform=\"scale(1 1) rotate(0) translate(4 4)\">\n<title><World</title>\n<polygon fill=\"white\" stroke=\"white\" points=\"-4,5 -4,-4 5,-4 5,5 -4,5\"/>\n</g>\n</svg>\n" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| irb --> GraphViz.new( :G, :type => :digraph ) { |g| | |
| \-+ g.add_node("<World", :label => "<World", :shape => :record) | |
| irb(main):007:1> }.output( :svg => String ) | |
| RuntimeError: Error from "/usr/local/bin/dot" -q1 -Tsvg /var/folders/jG/jGGNYPbXE6WwtIkPbM12X++++TI/-Tmp-/graphviz.rb20100714-24539-17y8c04-0: | |
| Error: bad label format <World | |
| from /usr/local/Cellar/ruby/1.9.1-p378/lib/ruby/gems/1.9.1/gems/ruby-graphviz-0.9.14/lib/graphviz/utils.rb:72:in `output_from_command' | |
| from /usr/local/Cellar/ruby/1.9.1-p378/lib/ruby/gems/1.9.1/gems/ruby-graphviz-0.9.14/lib/graphviz.rb:507:in `output' | |
| from (irb):5 | |
| from /usr/local/bin/irb:12:in `<main>' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| irb --> GraphViz.new( :G, :type => :digraph ) { |g| | |
| \-+ g.add_node("<World", :label => "<World") | |
| irb(main):010:1> }.output( :svg => String ) | |
| ==> "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n<!-- Generated by graphviz version 2.26.3 (20100126.1600)\n -->\n<!-- Title: G Pages: 1 -->\n<svg width=\"90pt\" height=\"44pt\"\n viewBox=\"0.00 0.00 90.00 44.00\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n<g id=\"graph1\" class=\"graph\" transform=\"scale(1 1) rotate(0) translate(4 40)\">\n<title>G</title>\n<polygon fill=\"white\" stroke=\"white\" points=\"-4,5 -4,-40 87,-40 87,5 -4,5\"/>\n<!-- <World -->\n<g id=\"node1\" class=\"node\"><title><World</title>\n<ellipse fill=\"none\" stroke=\"black\" cx=\"41\" cy=\"-18\" rx=\"40.92\" ry=\"18\"/>\n<text text-anchor=\"middle\" x=\"41\" y=\"-13.4\" font-family=\"Times,serif\" font-size=\"14.00\"><World</text>\n</g>\n</g>\n</svg>\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment