benschneider / PyGnuplot

Python interface to gnuplot
MIT License
45 stars 18 forks source link

Fixed open Issue #15, improved install script for posix os, and formated test functionallity print's. #23

Closed Changeryto closed 2 months ago

Changeryto commented 2 months ago
  1. I have added a new script (for a better long term maintenance), which create an Exception class that is raised if no Gnuplot installation is detected, and a method that raise that exception if no Gnuplot installation is detected in posix os, which is called in the moment the gp class is called, giving a descritping error message.
  2. install is now install.sh (for avoiding missinderstandings) and now it has a shebang compatible with even BSDs.
  3. Changed print("string" + result) to print(f"string {result}") for better readibility and betterlong term maintenance.
  4. Change for loop in PyGnuplot test to list comprehension in order to improve performance.

I appreciate your attention.

benschneider commented 2 months ago

Error message on missing gnuplot installation.