Class: Rust::Plots::ScatterPlot

Inherits:
BasePlot show all
Defined in:
lib/rust-plots.rb

Instance Method Summary collapse

Methods inherited from BasePlot

#[]=, #axis, #color, #pdf, #plug, #show, #title, #x_label, #x_range, #y_label, #y_range

Constructor Details

#initialize(x, y) ⇒ ScatterPlot

Returns a new instance of ScatterPlot.



119
120
121
122
123
# File 'lib/rust-plots.rb', line 119

def initialize(x, y)
    super()
    @x = x
    @y = y
end

Instance Method Details

#linesObject



131
132
133
134
135
# File 'lib/rust-plots.rb', line 131

def lines()
    self['type'] = "l"
    
    return self
end

#lines_and_pointsObject



143
144
145
146
147
# File 'lib/rust-plots.rb', line 143

def lines_and_points()
    self['type'] = "b"
    
    return self
end

#pointsObject



137
138
139
140
141
# File 'lib/rust-plots.rb', line 137

def points()
    self['type'] = "p"
    
    return self
end

#thickness(t) ⇒ Object



125
126
127
128
129
# File 'lib/rust-plots.rb', line 125

def thickness(t)
    self['lwd'] = t
    
    return self
end