Convert a PBM image into a UNIX plot file. More information: https://netpbm.sourceforge.net/doc/pbmtoplot.html.
pbmtoplot path/to/image.pbm > path/to/output.plot