-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
output figures display at terminal #6
Comments
Hi Tommy, Output image file could be set by global flag Help message of plot common figures
Notes:
1. File format is determined by the out file (-o/--out-file) suffix.
Supported formats: eps, jpg|jpeg, pdf, png, svg, and tif|tiff
Usage:
csvtk plot [command]
Available Commands:
box plot boxplot
hist plot histogram
line line plot and scatter plot
Flags:
--axis-width float axis width (default 1.5)
-f, --data-field string column index or column name of data (default "1")
-g, --group-field string column index or column name of group
--height float Figure height (default 4.5)
--label-size int label font size (default 14)
--tick-width float axis tick width (default 1.5)
--title string Figure title
--title-size int title font size (default 16)
--width float Figure width (default 6)
--x-max string maximum value of X axis
--x-min string minimum value of X axis
--xlab string x label text
--y-max string maximum value of Y axis
--y-min string minimum value of Y axis
--ylab string y label text |
I want to do something like: csvtk -t plot hist grouped_data.tsv.gz -f2 -o - | display
display: no decode delegate for this image format `' @ error/constitute.c/ReadImage/501.
see https://www.imagemagick.org/script/command-line-processing.php |
It's implemented, and I'll release a new version until I fix a bug of other subcommand. |
great and thanks! Now it looks like after csvtk -t plot hist grouped_data.tsv.gz -f2 -o - A histogram.png file will still be generated rather than output to the STDOUT. |
Implemented in new version v0.4.2
|
nicely worked for me! great. |
Hi shenwei,
Thanks for this nice tool. I really like the plot functions.
It will be more useful if it can be piped to
display
from imagemagic to display on terminal rather saving the figures. see some examples http://crazyhottommy.blogspot.com/2014/11/csvkit-to-manipulate-csv-at-command.html. Most of the time, I just want to glance the distribution of the data. If I want serious figures, I will import to R and plot with ggplot2.Best,
Tommy
The text was updated successfully, but these errors were encountered: