make-csv

Crates.iomake-csv
lib.rsmake-csv
version0.1.0
sourcesrc
created_at2023-10-29 12:33:54.49459
updated_at2023-10-29 12:33:54.49459
descriptionSimple macro's that make writing csv files for plotting purposes easy.
homepage
repository
max_upload_size
id1017518
size38,966
Miel Peeters (mielpeeters)

documentation

README

Make-Csv

This is just a very simple crate which implements four macro rules which can be helpful for creating .csv files and plottin them using Python.

Usage

use make_csv::{csv_start, csv_entry, csv_stop, python};

// create csv writer for file "data.csv"
let mut wtr = csv_start!("data.csv");

// add header and one data row
csv_entry!(wtr <- "header_0", "header_1");
csv_entry!(wtr <- 0.0, 1.0);

// flush the writer
csv_stop!(wtr);

// use python script to plot the data
python!("plot.py", "data.scv");
Commit count: 0

cargo fmt