Skip to content
Ruby wrapper for the GR framework
Ruby Shell
Branch: master
Clone or download
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.
.github
examples
lib
test
.gitignore
.rubocop.yml
.travis.yml
Gemfile
LICENSE.txt
README.md
Rakefile
ruby-gr.gemspec

README.md

GR.rb

The MIT License Build Status Gem Version Gitter Chat Docs Latest

📊 GR framework - the graphics library for visualization - for Ruby

Installation

GR.rb supports Ruby 2.4+.

Install GR.

Set environment variable GRDIR, if you have not already done.

export GRDIR="/your/path/to/gr"

Add this line to your application's Gemfile:

gem 'ruby-gr'

GR3 and GR::Plot require numo-narray.

Quick Start

require 'gr/plot'

x = [0, 0.2, 0.4, 0.6, 0.8, 1.0]
y = [0.3, 0.5, 0.4, 0.2, 0.6, 0.7]

GR.plot(x, y)

Examples

Have a look in the examples directory.

GR Installation

Homebrew

brew install libgr

Set environment variable GRDIR.

export GRDIR="/usr/local/Cellar/libgr/0.44.1"

Mac Linux Windows

Download the latest release.

Set environment variable GRDIR.

export GRDIR="your/path/to/gr"

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/red-data-tools/GR.rb.

You can’t perform that action at this time.