Class: Rust::Plots::Grid
Instance Method Summary collapse
- #_run ⇒ Object
- #auto_x ⇒ Object
- #auto_y ⇒ Object
- #hide_x ⇒ Object
- #hide_y ⇒ Object
-
#initialize ⇒ Grid
constructor
A new instance of Grid.
- #x(value) ⇒ Object
- #y(value) ⇒ Object
Methods inherited from Plugin
Constructor Details
#initialize ⇒ Grid
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
#_run ⇒ Object
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. = function.call return self end |
#auto_x ⇒ Object
309 310 311 312 313 |
# File 'lib/rust-plots.rb', line 309 def auto_x @x = nil return self end |
#auto_y ⇒ Object
315 316 317 318 319 |
# File 'lib/rust-plots.rb', line 315 def auto_y @y = nil return self end |
#hide_x ⇒ Object
321 322 323 324 325 |
# File 'lib/rust-plots.rb', line 321 def hide_x @x = Float::NAN return self end |
#hide_y ⇒ Object
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 |