Method: Nyaplot::Diagrams::Scatter#process_data

Defined in:
lib/nyaplot/diagram.rb

#process_data(df, labels) ⇒ Object


167
168
169
170
171
172
173
174
# File 'lib/nyaplot/diagram.rb', line 167

def process_data(df, labels)
  label_x = labels[0]
  label_y = labels[1]
  x(label_x)
  y(label_y)
  @xrange = [df[label_x].to_a.min, df[label_x].to_a.max]
  @yrange = [df[label_y].to_a.min, df[label_y].to_a.max]
end