Method: Nyaplot::Frame#add

Defined in:
lib/nyaplot/frame.rb

#add(plot) ⇒ Object

Add new pane to the frame

Parameters:



20
21
22
23
24
25
26
27
# File 'lib/nyaplot/frame.rb', line 20

def add(plot)
  data = get_property(:data)
  plot.df_list.each do |name|
    data[name] = DataBase.instance.fetch(name)
  end
  panes = get_property(:panes)
  panes.push(plot)
end