TotalDepth.util.gnuplot (Gnuplot Graphs Support)¶
A HOWTO is here: Performance Graphs via Gnuplot with TotalDepth.util.gnuplot
Provides gnuplot support to command line tools.
-
TotalDepth.util.gnuplot.
add_gnuplot_to_argument_parser
(parser: argparse.ArgumentParser) → None¶ Adds
--gnuplot=<DIRECTORY_FOR_GNUPLOT_OUTPUT>
to the argument parser asargs.gnuplot
.
-
TotalDepth.util.gnuplot.
version
() → bytes¶ For example: b’gnuplot 5.2 patchlevel 6’
-
TotalDepth.util.gnuplot.
create_gnuplot_dat
(table: Sequence[Sequence[Any]]) → str¶ Returns a pretty formatted string of the data in the given table suitable for use as a gnuplot
.dat
file.
-
TotalDepth.util.gnuplot.
invoke_gnuplot
(path: str, name: str, table: Sequence[Sequence[Any]], plt: str) → int¶ Create the plot for name. path - the directory to write the data and plot files to. name - the name of those files. table - the table of values to write to the data file.
Returns the gnuplot error code.
-
TotalDepth.util.gnuplot.
write_test_file
(path: str, typ: str) → int¶ Writes out a Gnuplot test file.