Switch branches/tags
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.gitignore
3d_plot.ipynb
Gemfile
README.rdoc
animated_plots.ipynb
basic_usage.ipynb
fitting_data.ipynb
heatmaps.ipynb
histogram.ipynb
math_plots.ipynb
multiplot_layout.ipynb
plotting_from_daru.ipynb
points_from_different_sources.ipynb
time_series_from_daru.ipynb
updating_data.ipynb
vector_field.ipynb

README.rdoc

iRuby notebooks

This notebooks are powered by Ruby kernel for IPython/Jupyter. I placed them here to show some GnuplotRB's capabilities and ways of using it together with iRuby.

Installation

To use GnuplotRB gem with iRuby you need to install them both.

  • iRuby installation is covered in its README. It also covers installation of iPython and other dependecies.

  • GnuplotRB gem installation covered in README too.

List of notebooks

Embedding plots into iRuby

Using GnuplotRB inside iRuby notebooks is covered in:

2D and 3D plots

GnuplotRB is capable to plot vast range of plots from histograms to 3D heatmaps. Gem's repository contains examples of several plot types:

Possible datasources

GnuplotRB may take data in Ruby container or in a file. Supported containers for now are Arrays, Daru::Vector and Daru::DataFrame. When data given in file, GnuplotRB pass filename to Gnuplot without reading the file into memory.

Examples of using different datasources:

Multiplot

You can not only plot several datasets in single coordinate system but place several coordinate systems on a canvas.

Animation

It's possible to use several plots (Plot, Splot or Multiplot objects) to create gif animation.

Fitting data with formula

GnuplotRB also may be used to fit some data with given math formula.