From: martinahansen Date: Tue, 22 Jan 2013 13:52:35 +0000 (+0000) Subject: fixed axis titles X-Git-Url: https://git.donarmstrong.com/?p=biopieces.git;a=commitdiff_plain;h=baaf366f848663890377e00c18df07480cfcdf53 fixed axis titles git-svn-id: http://biopieces.googlecode.com/svn/trunk@2086 74ccb610-7750-0410-82ae-013aeee3265d --- diff --git a/bp_bin/plot_stacked_histogram b/bp_bin/plot_stacked_histogram index cadfcea..54293ca 100755 --- a/bp_bin/plot_stacked_histogram +++ b/bp_bin/plot_stacked_histogram @@ -42,6 +42,8 @@ casts << {:long=>'xlabel', :short=>'X', :type=>'string', :mandatory=>false, : casts << {:long=>'ylabel', :short=>'Y', :type=>'string', :mandatory=>false, :default=>nil, :allowed=>nil, :disallowed=>nil} options = Biopieces.options_parse(ARGV, casts) +options[:xlabel] ||= options[:cols].capitalize +options[:ylabel] ||= options[:rows].capitalize class PlotData include Enumerable @@ -127,10 +129,7 @@ Gnuplot.open do |gp| plot.ylabel options[:ylabel] plot.output options[:data_out] if options[:data_out] plot.ytics "out" -# plot.yrange "[0:100]" -# plot.xrange "[0:#{max_len}]" plot.auto "fix" - #plot.offsets "1" plot.key "outside right top vertical Left reverse enhanced autotitles columnhead nobox" plot.key "invert samplen 4 spacing 1 width 0 height 0" plot.style "fill solid 0.5 border"