MCPcopy Create free account
hub / github.com/bytesnake/vim-graphical-preview / generate_latex_from_gnuplot_file

Function generate_latex_from_gnuplot_file

src/utils.rs:182–190  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

180}
181
182pub 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
193pub fn parse_latex(

Callers 1

generateMethod · 0.85

Calls 2

generate_svg_from_latexFunction · 0.85

Tested by

no test coverage detected