]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/plot_stacked_histogram
refactoring of assemble_pairs
[biopieces.git] / bp_bin / plot_stacked_histogram
index cadfcea360adeda1834183d0b52425d82dfa209a..54293ca585cfe36dff3b51faadc8d0e331076d99 100755 (executable)
@@ -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"