Update README.md

* Write about `--fmt` option
This commit is contained in:
kojix2 2020-12-19 18:33:37 +09:00 committed by GitHub
parent eb317e2bb5
commit 887b9d3c53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,7 +152,15 @@ See Quick Start for `count`.
|-----------|-------|----------------------------------------------------------| |-----------|-------|----------------------------------------------------------|
| count | c | draw a baplot based on the number of occurrences (slow) | | count | c | draw a baplot based on the number of occurrences (slow) |
### How to view detailed command line options ### Can YouPlot detect if a header line is present or not?
No. If your input data contains a header line, you need to specify the `-H` option.
### Is there a way to specify a specific column as the x-axis or y-axis?
Not yet. In principle, YouPlot treats the first column as the X axis and the second column as the Y axis. When working with multiple series, the first row is the X axis, the second row is series 1, the third row is series 2, and so on. If you pass only one column of data for `line` and `bar`, YouPlot will automatically use a sequential number starting from 1 as the X-axis. The `--fmt xyy`, `--fmt xyxy` and `--fmt yx` options give you a few more choices. See the `youplot <command> --help` for more details.YouPlot has limited functionality, but you can use shell scripts such as awk '{print $2, $1}' to swap lines.
### How to view detailed command line options?
Use `--help` to print command-specific options. Use `--help` to print command-specific options.