Improve bar xscale option

This commit is contained in:
kojix2 2021-01-19 14:40:36 +09:00
parent e8923dc876
commit dbbff1dc3a

View File

@ -153,6 +153,8 @@ module YouPlot
Options for #{command}:
MSG
xscale_options = UnicodePlot::ValueTransformer::PREDEFINED_TRANSFORM_FUNCTIONS.keys.join(', ')
case command
# If you type only `uplot` in the terminal.
@ -165,7 +167,7 @@ module YouPlot
parser.on_head('--symbol VAL', String, 'character to be used to plot the bars') do |v|
params.symbol = v
end
parser.on_head('--xscale VAL', String, 'axis scaling') do |v|
parser.on_head('--xscale VAL', String, "axis scaling (#{xscale_options})") do |v|
params.xscale = v
end
parser.on_head('--fmt VAL', String, 'xy : header is like x, y...', 'yx : header is like y, x...') do |v|