Skip to main content

A minimal Python wrapper for Gnuplot.

Project description

Gnuplot-py written by Michael Haggerty <mhagger@alum.mit.edu> is an amazing Python2 package which allows a Python user to incorporate any Gnuplot command within a Python2 script. However, Python2 has ended its update in the year of 2020. I need a minimal replacement of Michael’s module for Python3.

This module only does one job, which is integrating Gnuplot commands in a Python3 script. Please refer to the example below for a quick start.

import GnuplotPy3
gp = GnuplotPy3.GnuplotPy3()
gp('set terminal postscript eps size 3.5, 2.62 \\'     )
gp('                            enhanced color \\'     )
gp("                            font 'Helvetica,14' \\")
gp('                            linewidth 2'           )
gp("set output 'sinx.eps'")
gp("unset key")
gp("plot sin(x)")

input("Press enter to exit...")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

GnuplotPy3-0.0.3.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

GnuplotPy3-0.0.3-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page