Class MetricsUtils::Plotter
In: metrics_utils.rb
Parent: Object

This class exists to provide access to the underlying plotting mechanism. It configures the plotter program and accepts plot data to send to the program. At the moment, it uses gnuplot as the plotter program. It seems unlikely to change in the foreseeable future unless I make a full plotter abstraction, which given the time I have to do this, is about as likely as me winning the jackpot.

Methods

close   end_of_data   new   open   print_to_graph  

Included Modules

Singleton

Public Class methods

Initializes the plotter instance

Public Instance methods

Closes the plotter if it‘s open. Returns nil.

Sends an "end of data" signal to the plotter to signify the closing of a plot.

Opens the plotter for writing. If a block is provided, calls that block and closes the plotter when the block returns. Always returns nil.

Prints plot data to the plotter.

[Validate]