Module: Graph::Function::PlotConfig

Included in:
Comparison
Defined in:
lib/graph/function/plot_config.rb

Instance Method Summary collapse

Instance Method Details

#set_up(plot) ⇒ Object



4
5
6
7
8
9
# File 'lib/graph/function/plot_config.rb', line 4

def set_up(plot)
  plot.ylabel (Graph::Function.configuration.trials == 1 ? 'execution time (seconds)' : 'average execution time (seconds)')
  plot.xlabel 'input size'
  plot.terminal (t = Graph::Function.configuration.terminal)
  plot.output Graph::Function.configuration.output unless t == 'x11'
end