class Rust::Plots::Axis
Constants
- ABOVE
- BELOW
- LEFT
- RIGHT
Public Class Methods
new(side)
click to toggle source
Calls superclass method
Rust::Plots::Renderable::new
# File lib/rust-plots.rb, line 327 def initialize(side) super() self['side'] = side self.at(nil) self.labels(true) end
Public Instance Methods
_render()
click to toggle source
# File lib/rust-plots.rb, line 359 def _render() function = Rust::Function.new("axis") function.options = @options function.call return self end
at(values)
click to toggle source
# File lib/rust-plots.rb, line 335 def at(values) self['at'] = values return self end
horizontal_labels()
click to toggle source
# File lib/rust-plots.rb, line 347 def horizontal_labels self['las'] = 1 return self end
labels(value)
click to toggle source
# File lib/rust-plots.rb, line 353 def labels(value) self['labels'] = value return self end
vertical_labels()
click to toggle source
# File lib/rust-plots.rb, line 341 def vertical_labels self['las'] = 2 return self end