]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/plot_distribution
added ugly fix to ruby gnuplot dumb print problem
[biopieces.git] / bp_bin / plot_distribution
index 175ca595377d4e3824d2c51620af5654e2114fd3..7554432d4d14c0c9bdea86b86d890b3eea0bbabf 100755 (executable)
@@ -78,7 +78,7 @@ Gnuplot.open do |gp|
     plot.title    options[:title]
     plot.xlabel   options[:xlabel]
     plot.ylabel   options[:ylabel]
-    plot.output   options[:data_out] if options[:data_out]
+    plot.output   options[:data_out] || "/dev/stderr"
     plot.logscale "y"                if options[:logscale_y]
     plot.xrange   "[#{x.min - 1}:#{x.max + 1}]"
     plot.style    "fill solid 0.5 border"