Installation
Build with thecli feature:
Basic Usage
The CLI follows a subcommand structure:Quick Example
Available Plot Types
Kuva supports 24 plot types via subcommands:- Core plots
- Statistical
- Specialized
scatter- Scatter plot from two numeric columnsline- Line plot connecting data pointsbar- Bar chart for categorical datahistogram- Distribution of a single variablebox- Box-and-whisker plotsviolin- Violin plots (distribution shape)pie- Pie chart for proportions
Input Formats
Data Files
Kuva reads tabular data from:- TSV (tab-separated values)
- CSV (comma-separated values)
- stdin (use
-or omit the filename)
Column Selection
Columns can be specified by:- 0-based index:
--x 0 --y 1 - Header name:
--x temperature --y pressure
Header Detection
Kuva automatically detects headers. If the first row contains non-numeric values, it’s treated as a header.Delimiter Detection
Delimiters are auto-detected from file extensions:.csv→ comma.tsv,.txt→ tab
-d:
Common Options
These options work across all plot types.Output Control
Dimensions & Title
Axes Labels
Themes
Four built-in themes:Color Palettes
Choose from 9 named palettes:Color Vision Deficiency (CVD) Palettes
Log Scale
Grid Control
Background Color
Plot-Specific Examples
Scatter Plot
Line Plot
Bar Chart
Histogram
Box Plot
Volcano Plot
Manhattan Plot
Terminal Output
Render plots directly in the terminal using Unicode characters:$COLUMNS and $LINES environment variables by default.
Pipeline Examples
Preprocessing with awk
Combining with other tools
Batch Processing
Getting Help
Man Page
Generate and view the manual page:Next Steps
- Library Usage - Using Kuva programmatically in Rust
- Styling & Customization - Advanced visual customization