I am trying to run my gnuplot commands from a Python script. I came across a suggestion that I can save all the gnuplot commands in a file (with format codes for the variables I need to drop in) and then just read that file in with Python and format it. However, I couldn't find any examples to understand how it's done. Can somebody help me out?
PS: I am using gnuplot version 4.2 and I have already tried using -e pipe but for some reason it doesn't work. PPS: I would prefer not to use Gnuplot-py package