mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-05 22:31:11 +08:00
Improve bar xscale option
This commit is contained in:
parent
e8923dc876
commit
dbbff1dc3a
@ -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|
|
||||
|
Loading…
Reference in New Issue
Block a user