Class: Rust::Plots::ScatterPlot
Instance Method Summary
collapse
Methods inherited from BasePlot
#[]=, #axis, #color, #pdf, #plug, #show, #title, #x_label, #x_range, #y_label, #y_range
Constructor Details
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
131
132
133
134
135
|
# File 'lib/rust-plots.rb', line 131
def lines()
self['type'] = "l"
return self
end
|
#lines_and_points ⇒ Object
143
144
145
146
147
|
# File 'lib/rust-plots.rb', line 143
def lines_and_points()
self['type'] = "b"
return self
end
|
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
|