File | Date | Author | Commit |
---|---|---|---|
.gitignore | 2022-07-30 |
![]() |
[bd5738] Initial commit |
CHANGELOG.md | 2022-08-30 |
![]() |
[5fa01b] Change regex for extraction of dependencies |
README.md | 2022-08-04 |
![]() |
[b87d3f] Add CHANGELOG, update README |
UNLICENSE | 2022-07-30 |
![]() |
[bd5738] Initial commit |
autoplot.pl | 2022-08-30 |
![]() |
[5fa01b] Change regex for extraction of dependencies |
A Perl script to plot Gnuplot files with simple dependency checking and
conversion of the plots to different formats.
The Gnuplot scripts must plot to a SVG terminal and output the result to
STDOUT for the script to work as intended.
The script reads all .gnuplot
files in the working directory and creates
SVG plots from them in svg
subdirectory. SVG plots can be converted to PDF
and PNG format, while the resulting files are placed in pdf
and png
directories, respectively.
The script generates SVG plots by default. The desired output format can be
set using command line parameters:
-s
generates SVG plots-p
generates PDF plots-n
generates PNG plotsPDF and PNG plots depend on SVG plots, therefore SVG plots will be created in
either case.
Created files and subdirectories can be removed by passing the "clean" flag
to the script (-c
).
Watch mode can be activated with -w
flag. It will cause the program to
monitor the current working directory and directories containing dependencies
from the plot scripts for changes. The plots will be re-evaluated when any
of these directories change. This feature may work on non-UNIX-like systems
with its current implementation.
The script can produce more verbose output when -v
flag is used. If detailed
dependency search information is desired, use -d
flag (implies -v
).