Class MRPlot::XYPlot
In: mrplot/plots/xy.rb
Parent: Plot

The XYPlot can visualize discrete data and continous functions. It is initialized with a XYSpace as plot space, XYAxes as axes and a XYGrid as grid.

Every dataset must supply data content as a ContinousData object or as an array of hashes with at least two values with the keys :x, :y. If a third value with a :label key is supplied, the label will be printed instead of the Y value.

The XYPlot recognizes the following dataset style attributes:

print_values_format:A format how to print the Y values, for example "%.02f"
print_values:If true the values are printed to the dataset’s graph
hide_connections:If true only markers (if set) are drawn and no connection lines

Methods

Public Class methods

Public Instance methods

Draw the x/y plot

Gets a point by using a continous function

Converts a value hash to a point

Sorts the content data (if discrete) by the :x key

[Validate]