gnuplotlib

Screenshots

Here you will find a host of example figures with the code that generated them. The Forth source code is put side-by-side with Python prototype examples found here. The plots are shown in their jpeg, png and Postscript forms.

Simple Plot

The most basic plot, with text labels

[source code, postscript, png]

simple_plot0.jpeg

Subplot demo

Multiple regular axes (#rows by #columns) are created with the subplot command.

[source code, postscript, png]

subplot_demo0.jpeg

Histograms

The hist command automatically generates histograms and will return the bin counts or probabilities

[source code, postscript, png]

histogram_demo0.jpeg

SPLOT

The splot tool has support for simple 3d surface graphs.

[source code, postscript, png]

surface3d_demo0.jpeg

Fill demo

The fill command lets you plot filled polygons.

[source code, postscript, png]

fill_demo0.jpeg

Log plots

The semilogx, semilogy and loglog functions generate log scaling on the respective axes. The lower subplot uses a base10 log on the x and y axis.

[source code, postscript, png]

log_demo0.jpeg

Polar plots

The [polar .. polar] environment generates polar plots.

[source code, postscript, png]

polar_demo0.jpeg

Legends

The legend command automatically generates figure legends, with Matlab compatible legend placement commands.

[source code, postscript, png]

legend_demo0.jpeg

Mathtext_examples

A sampling of the TeX expressions now supported by gnuplotlib's internal mathtext engine. The mathtext module provides TeX style mathematical expressions using freetype2 and the BaKoMa computer modern or STIX fonts.

[source code, postscript, png]

mathtext_demo0.jpeg