X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fplot_stacked_histogram;h=54293ca585cfe36dff3b51faadc8d0e331076d99;hb=48bea5c28b89dc5586d0bddb338ccd6ba23aa1f9;hp=cadfcea360adeda1834183d0b52425d82dfa209a;hpb=9c6cb33e3c31568ca0c4f96ba0e9e64a02cd8b09;p=biopieces.git 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"