(path: &Path)
| 180 | } |
| 181 | |
| 182 | pub fn generate_latex_from_gnuplot_file(path: &Path) -> Result<PathBuf> { |
| 183 | let mut content = String::new(); |
| 184 | let mut f = File::open(path) |
| 185 | .map_err(Error::Io)?; |
| 186 | f.read_to_string(&mut content).unwrap(); |
| 187 | |
| 188 | let path = generate_latex_from_gnuplot(&content)?; |
| 189 | generate_svg_from_latex(&path, 1.0) |
| 190 | } |
| 191 | |
| 192 | /// Parse a latex content and convert it to a SVG file |
| 193 | pub fn parse_latex( |
no test coverage detected