class Rust::Plots::Grid

Public Class Methods

new() click to toggle source
Calls superclass method Rust::Plots::Renderable::new
# File lib/rust-plots.rb, line 370
def initialize
    super()
    
    @x = Float::NAN
    @y = Float::NAN
end

Public Instance Methods

_render() click to toggle source
# File lib/rust-plots.rb, line 413
def _render()
    function = Rust::Function.new("grid")
    
    function.arguments << @x
    function.arguments << @y
    function.options = @options
    
    function.call
    
    return self
end
auto_x() click to toggle source
# File lib/rust-plots.rb, line 389
def auto_x
    @x = nil
    
    return self
end
auto_y() click to toggle source
# File lib/rust-plots.rb, line 395
def auto_y
    @y = nil
    
    return self
end
hide_x() click to toggle source
# File lib/rust-plots.rb, line 401
def hide_x
    @x = Float::NAN
    
    return self
end
hide_y() click to toggle source
# File lib/rust-plots.rb, line 407
def hide_y
    @y = Float::NAN
    
    return self
end
x(value) click to toggle source
# File lib/rust-plots.rb, line 377
def x(value)
    @x = value
    
    return self
end
y(value) click to toggle source
# File lib/rust-plots.rb, line 383
def y(value)
    @y = value
    
    return self
end