make-csv 0.1.0

Simple macro's that make writing csv files for plotting purposes easy.
Documentation
  • Coverage
  • 80%
    4 out of 5 items documented4 out of 4 items with examples
  • Size
  • Source code size: 41.08 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.09 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • mielpeeters

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");