]> git.donarmstrong.com Git - biopieces.git/commitdiff
added ugly fix to ruby gnuplot dumb print problem
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 4 Dec 2013 10:45:23 +0000 (10:45 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 4 Dec 2013 10:45:23 +0000 (10:45 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@2272 74ccb610-7750-0410-82ae-013aeee3265d

bp_bin/plot_distribution
bp_bin/plot_nucleotide_distribution
bp_bin/plot_scores
bp_bin/plot_stacked_histogram

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"
index 937bbeaf1378f47882d8f2bd5146fd1fef649486..d8d276f6d796c9217d682042fbf4acd3ea3f940b 100755 (executable)
@@ -105,7 +105,7 @@ if max_len > 0
       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.ytics    "out"
       plot.xtics    "out"
       plot.yrange   "[0:#{Y_MAX}]"
index 8cc276d2f0e81055e2641bda2c0f683e183b4f94..a765cb5bd3603d4d8c89913f7cc03370235d213a 100755 (executable)
@@ -85,7 +85,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.xrange   "[#{x.min - 1}:#{x.max + 1}]"
     plot.yrange   "[#{Seq::SCORE_MIN}:#{Seq::SCORE_MAX}]"
     plot.style    "fill solid 0.5 border"
index 54293ca585cfe36dff3b51faadc8d0e331076d99..432d097a78eddb912c0faff97b0a07f9847f1d41 100755 (executable)
@@ -127,7 +127,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.ytics    "out"
     plot.auto     "fix"
     plot.key      "outside right top vertical Left reverse enhanced autotitles columnhead nobox"