From 25a6b40e414b3a6465f18239f37a980d77d6e062 Mon Sep 17 00:00:00 2001 From: martinahansen Date: Wed, 4 Dec 2013 10:45:23 +0000 Subject: [PATCH] added ugly fix to ruby gnuplot dumb print problem git-svn-id: http://biopieces.googlecode.com/svn/trunk@2272 74ccb610-7750-0410-82ae-013aeee3265d --- bp_bin/plot_distribution | 2 +- bp_bin/plot_nucleotide_distribution | 2 +- bp_bin/plot_scores | 2 +- bp_bin/plot_stacked_histogram | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bp_bin/plot_distribution b/bp_bin/plot_distribution index 175ca59..7554432 100755 --- a/bp_bin/plot_distribution +++ b/bp_bin/plot_distribution @@ -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" diff --git a/bp_bin/plot_nucleotide_distribution b/bp_bin/plot_nucleotide_distribution index 937bbea..d8d276f 100755 --- a/bp_bin/plot_nucleotide_distribution +++ b/bp_bin/plot_nucleotide_distribution @@ -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}]" diff --git a/bp_bin/plot_scores b/bp_bin/plot_scores index 8cc276d..a765cb5 100755 --- a/bp_bin/plot_scores +++ b/bp_bin/plot_scores @@ -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" diff --git a/bp_bin/plot_stacked_histogram b/bp_bin/plot_stacked_histogram index 54293ca..432d097 100755 --- a/bp_bin/plot_stacked_histogram +++ b/bp_bin/plot_stacked_histogram @@ -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" -- 2.39.2