Module: ScbiPlot

Defined in:
lib/scbi_plot/plot.rb,
lib/scbi_plot.rb,
lib/scbi_plot/lines.rb,
lib/scbi_plot/histogram.rb

Overview

scbi_plot - Ploting utilities

Plots a graph using gnuplot.

Usage:

p=ScbiPlot::Histogram.new(‘few_strings.png’,‘titulo’)

p.add_x() p.add_y()

p.do_graph

Tips

  • scbi_plot can handle integer and string values in x row

  • If x and y are integer values, the graph is sorted by x (ascendent values from left to right)

  • When x contains strings:

    -if number of elements in x is greater than x_limit (by default 20), values are sorted in descendant order, and only @x_limit values are plotted
    -if number of elements is below x_limit, then values are shown as an histogram
    

Defined Under Namespace

Classes: Histogram, Lines, Plot

Constant Summary collapse

VERSION =
'0.0.7'