PHPackages                             gregwar/gnuplot - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. gregwar/gnuplot

ActiveLibrary[Image &amp; Media](/categories/media)

gregwar/gnuplot
===============

GnuPlot library

v1.0.2(3y ago)299.7k↓46.4%12[2 PRs](https://github.com/Gregwar/GnuPlot/pulls)MITPHPPHP &gt;=5.3.0

Since Feb 20Pushed 3y ago3 watchersCompare

[ Source](https://github.com/Gregwar/GnuPlot)[ Packagist](https://packagist.org/packages/gregwar/gnuplot)[ Docs](https://github.com/Gregwar/GnuPlot)[ RSS](/packages/gregwar-gnuplot/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

GnuPlot
=======

[](#gnuplot)

A PHP Library for using GnuPlot

**WARNING: This invoke the `gnuplot` command line as back-end, which can lead to arbitrary code execution. Be careful if you intend to use this library with user-provided information. Have a look at [this post](https://stackoverflow.com/questions/10937597/security-risks-of-gnuplot-web-interface) for more information.**

This is the output of the `demo/write.php`:

[![gnuplot](demo/out.png)](demo/out.png)

Requirements
============

[](#requirements)

You need to have a server with `gnuplot` installed and the safe mode disabled (to be able to run `proc_open()`)

Usage
=====

[](#usage)

There is examples in the `demo/` directory.

You can create a graph and populate it like this:

```
