# algoplot: A script for comparing the growth of functions

## Examples

Merge sort (O(n log n)) vs. bubble sort (O(n^2))

    algoplot -o merge-vs-bubble.png 'x * log(x)' 'x**2'

![merge sort vs. bubble sort plot](https://github.com/jmdeldin/algoplot/raw/master/doc/merge-vs-bubble.png)

## Usage

- Run `algoplot -h` for specific options
- Use `x` instead of `n` when plotting functions

## Installation

You need

- [Gnuplot](http://www.gnuplot.info) installed with the `gnuplot` command
  available on your `$PATH`
- [Ruby](http://ruby-lang.org) (only tested with 1.9.3)

Once you have the prerequisites installed, simply run the following command
from your terminal:

    gem install algoplot

You may need to prefix it with `sudo` depending on your setup.

## Author

Jon-Michael Deldin <dev@jmdeldin.com>

https://github.com/jmdeldin/algoplot

Feedback and patches are welcome!

# algoplot: A script for comparing the growth of functions

## Examples

Merge sort (O(n log n)) vs. bubble sort (O(n^2))

    algoplot -o merge-vs-bubble.png 'x * log(x)' 'x**2'

![merge sort vs. bubble sort plot](https://github.com/jmdeldin/algoplot/raw/master/doc/merge-vs-bubble.png)

## Usage

- Run `algoplot -h` for specific options
- Use `x` instead of `n` when plotting functions

## Installation

You need

- [Gnuplot](http://www.gnuplot.info) installed with the `gnuplot` command
  available on your `$PATH`. Ensure you have `gnuplot-x11` installed for
  Debian/Ubuntu in order to plot non-ASCII graphics.
- [Ruby](http://ruby-lang.org) (only tested with 1.9.3)

Once you have the prerequisites installed, simply run the following command
from your terminal:

    gem install algoplot

You may need to prefix it with `sudo` depending on your setup.

## Author

Jon-Michael Deldin <dev@jmdeldin.com>

https://github.com/jmdeldin/algoplot

Feedback and patches are welcome!

Add a note about gnuplot-x11
Add a note about gnuplot-x11