Pygnuplot

Latest version: v0.12.3

Safety actively analyzes 619504 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.12.3

Main changes required in existing code is:

1. Change import and Figure creation:

**Before:**
import PyGnuplot as gp
gp.c("plot sin(x))

**Now:**
from PyGnuplot import gp
fig1 = gp() or fig1 = gp(r"path to gnuplot")
fig1.a("plot sin(x))

fig2 = gp()
fig1.a("plot sin(x))

fig2 = gp()
fig1.a("plot sin(x))
...

**A quick workaround for existing code could be:**
from PyGnuplot import gp as gp_class
gp = gp_class()
..
old code here
_except_ **gp.s** needs to be changed into **gp.save**

now can create multiple figures, fit and get responses from gnuplot via the ask comment pi = fig1.a('print pi')

What's Changed
* Fix two typos in example code in README by jcvernaleo in https://github.com/benschneider/PyGnuplot/pull/13
* Experimental by benschneider in https://github.com/benschneider/PyGnuplot/pull/17

New Contributors
* jcvernaleo made their first contribution in https://github.com/benschneider/PyGnuplot/pull/13
* benschneider made their first contribution in https://github.com/benschneider/PyGnuplot/pull/17

**Full Changelog**: https://github.com/benschneider/PyGnuplot/compare/0.11.16...0.12.3

0.11.16

Using a manual save option to allow text/label saving of data, which
also removed all the numpy dependencies.
delimited was changed from , to ' ' space.

0.11.15

A bug preventing the creation of new figures is removed.
Using universal_newlines in the pipe command instead of a byte-array conversion, this should keep the code cleaner and simpler.

For windows still setup the terminal i.e.:
import PyGnuplot as gp
gp.default_term = 'wxt'

0.11.13

No new features, just ensuring functionality for Python 3.4+.

0.10.0

Added simple option to change default terminal:
change the variable default_terminal in the imported PyGnuplot package (see example).

Each figure has its own process and terminal allowing to switch between figures
and also to have certain figures reserved for pdf/png or other outputs.

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.