lib/annlat/plot.rb
def plot_points(points = [])
    x = []
    y = []
    points << [(@parameters[:xhigh]-@parameters[:xlow])*2 + @parameters[:xhigh],
               (@parameters[:yhigh]-@parameters[:xlow])*2 + @parameters[:xhigh]] if points.empty?
    points.each do |p|
      x << p[0]
      y << p[1]
    end

    plot_generic(x, y, "points pt 7")
  end
# points is an array of points to plot on the coordinate plane
points is an array of points to plot on the coordinate plane
points is an array of points to plot on the coordinate plane
def plot_points(points = [])
    x = []
    y = []
    points << [(@parameters[:xhigh]-@parameters[:xlow])*2 + @parameters[:xhigh],
               (@parameters[:yhigh]-@parameters[:xlow])*2 + @parameters[:xhigh]] if points.empty?
    points.each do |p|
      x << p[0]
      y << p[1]
    end
    plot_generic(x, y, "points pt 7")
  end
def plot_points ( points = [ ] ) x = [ ] y = [ ] points << [ ( @parameters [ :xhigh ] - @parameters [ :xlow ] ) * 2 + @parameters [ :xhigh ] , ( @parameters [ :yhigh ] - @parameters [ :xlow ] ) * 2 + @parameters [ :xhigh ] ] if points . empty? points . each do | p | x << p [ 0 ] y << p [ 1 ] end plot_generic ( x , y , "points pt 7" ) end
points is an array of points to plot on the coordinate plane
points is an array of points to plot on the coordinate plane
points