lib/rubyfca.rb in rubyfca-0.2.7 vs lib/rubyfca.rb in rubyfca-0.2.9

- old
+ new

@@ -325,13 +325,14 @@ ## Generate Graphviz dot data (not creating a file) ## For options, see 'rubyfca' def generate_dot(opts) index_max_width = @concepts.size.to_s.split(//).size + nodesep = opts[:nodesep] ? opts[:nodesep].to_s : "0.4" + ranksep = opts[:ranksep] ? opts[:ranksep].to_s : "0.2" + clattice = RubyGraphviz.new("clattice", :rankdir => "", :nodesep => nodesep, :ranksep => ranksep) - clattice = RubyGraphviz.new("clattice", :rankdir => "", :nodesep => "0.4", :ranksep => "0.2") - if opts[:circle] and opts[:legend] legend = RubyGraphviz.new("legend", :rankdir => "TB", :lebelloc => "t", :centered => "false") legend.node_default(:shape => "plaintext") legend.edge_default(:color => "gray60") if opts[:coloring] legends = [] @@ -350,18 +351,22 @@ 0.upto(@concepts.size - 1) do |i| objfull = [] attrfull = [] 0.upto(@gammaM.size - 1) do |j| if @gammaM[j][i] == 2 - obj = opts[:full] ? @objects[j] + " " + [0x261C].pack("U") : @objects[j] + # pointing finger does not appear correctly in eps... + # obj = opts[:full] ? @objects[j] + " " + [0x261C].pack("U") : @objects[j] + obj = opts[:full] ? @objects[j] + "*" : @objects[j] objfull << obj elsif @gammaM[j][i] == 1 objfull << @objects[j] end end 0.upto(@muM.size - 1) do |k| if @muM[k][i] == 2 - att = opts[:full] ? @attributes[k] + " " + [0x261C].pack("U") : @attributes[k] + # pointing finger does not appear correctly in eps... + # att = opts[:full] ? @attributes[k] + " " + [0x261C].pack("U") : @attributes[k] + att = opts[:full] ? @attributes[k] + "*" : @attributes[k] attrfull << att elsif @muM[k][i] == 1 attrfull << @attributes[k] end end