module Ishi

Overview

Graph plotting package with a small API powered by gnuplot.

See Base for documentation on supported methods.

Defined in:

ishi.cr
ishi/base.cr
ishi/gnuplot.cr
ishi/html.cr
ishi/iterm2.cr
ishi/png.cr
ishi/term.cr
ishi/text.cr

Constructors

Constructor Detail

def self.new(io : IO = STDOUT) #

Creates a new instance. An IO for output may be specified.

ishi = Ishi.new
ishi.plot([1, 2, 3, 4])
ishi.show

[View source]
def self.new(io : IO = STDOUT, **options, &) #

Creates a new instance.

Yields to the supplied block with the new instance as the implicit receiver. Automatically invokes #show before returning. An IO for output may be specified. Any options are passed to #show.

Ishi.new do
  plot([1, 2, 3, 4])
end

[View source]