Class: Rust::Plots::ScatterPlot

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

Instance Method Summary collapse

Methods inherited from BasePlot

#[]=, #_add_renderable, #_do_not_override_options!, #axis, #color, #grid, #pdf, #show, #title, #x_label, #x_range, #y_label, #y_range

Constructor Details

#initialize(x, y) ⇒ ScatterPlot

Returns a new instance of ScatterPlot.



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

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

Instance Method Details

#linesObject



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

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

#lines_and_pointsObject



154
155
156
157
158
# File 'lib/rust-plots.rb', line 154

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

#pointsObject



148
149
150
151
152
# File 'lib/rust-plots.rb', line 148

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

#thickness(t) ⇒ Object



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

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