Class: Rust::Plots::Grid

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

Instance Method Summary collapse

Methods inherited from Plugin

#[]=

Constructor Details

#initializeGrid

Returns a new instance of Grid.



290
291
292
293
294
295
# File 'lib/rust-plots.rb', line 290

def initialize
    super()
    
    @x = Float::NAN
    @y = Float::NAN
end

Instance Method Details

#_runObject



333
334
335
336
337
338
339
340
341
342
343
# File 'lib/rust-plots.rb', line 333

def _run()
    function = Rust::Function.new("grid")
    
    function.arguments << @x
    function.arguments << @y
    function.options = @options
    
    function.call
    
    return self
end

#auto_xObject



309
310
311
312
313
# File 'lib/rust-plots.rb', line 309

def auto_x
    @x = nil
    
    return self
end

#auto_yObject



315
316
317
318
319
# File 'lib/rust-plots.rb', line 315

def auto_y
    @y = nil
    
    return self
end

#hide_xObject



321
322
323
324
325
# File 'lib/rust-plots.rb', line 321

def hide_x
    @x = Float::NAN
    
    return self
end

#hide_yObject



327
328
329
330
331
# File 'lib/rust-plots.rb', line 327

def hide_y
    @y = Float::NAN
    
    return self
end

#x(value) ⇒ Object



297
298
299
300
301
# File 'lib/rust-plots.rb', line 297

def x(value)
    @x = value
    
    return self
end

#y(value) ⇒ Object



303
304
305
306
307
# File 'lib/rust-plots.rb', line 303

def y(value)
    @y = value
    
    return self
end