Skip to main content

Author: Ben Schneider

Requires:

Gnuplot

numpy

Installation:

pip install PyGnuplot
  • Upgrade:

pip install --upgrade  PyGnuplot

Functions:

c(command)

pipe a command to gnuplot as if in gnuplot command promt

c('plot sin(x)')

s(data, filename=’tmp.dat’)

save arrays into file easily read by Gnuplot

s([X,Y,Z])  # creates tmp.dat
c('plot "tmp.dat" u 1:2')

figure(number=None, term=’x11’)

Create a new or update a figure

figure(1)

p(filename=’tmp.ps’, width=14, height=9, fontsize=12, term=’x11’)

Create postscript file (overwrites existing)

p('myfile.ps')

pdf(filename=’tmp.pdf’, width=14, height=9, fontsize=12, term=’x11’)

Create a pdf file (overwrites existing)

pdf('myfile.pdf')  # creates 'myfile.pdf'

Examples:

  • 1 Example code

import PyGnuplot as gp
import numpy as np
X = np.arange(10)
Y = np.sin(X/(2*np.pi))
Z = Y**2.0
gp.s([X,Y,Z])
gp.c('plot "tmp.dat" u 1:2 w lp)
gp.c('replot "tmp.dat" u 1:3' w lp)
gp.p('myfigure.ps')
  • 2 Example file

python example.py
https://cloud.githubusercontent.com/assets/4573907/17233530/e4be9342-5530-11e6-9c71-e812a2fb4000.png

Metadata

Release files for PyGnuplot 0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyGnuplot 0.8
File Size Uploaded Provenance Actions
PyGnuplot-0.8.tar.gz 3.1 kB Without provenance Details for PyGnuplot-0.8.tar.gz

Release files / PyGnuplot-0.8.tar.gz

Download URL PyGnuplot-0.8.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fa87c0d37c480b009a9535d2ad34a5815c2571688a7d3db49b08d44ae0637e18
BLAKE2b-256 checksum
How to use checksums
86db9e990c65fb7a77e07242545307b2b92e0bede684358ea481debfcc0d3ece
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for PyGnuplot 0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page