Class: Rust::Plots::Grid
- Inherits:
-
Renderable
- Object
- Renderable
- Rust::Plots::Grid
- Defined in:
- lib/rust/plots/core.rb
Instance Method Summary collapse
- #_render ⇒ 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 Renderable
Constructor Details
Instance Method Details
#_render ⇒ Object
245 246 247 248 249 250 251 252 253 254 255 |
# File 'lib/rust/plots/core.rb', line 245 def _render() function = Rust::Function.new("grid") function.arguments << @x function.arguments << @y function. = @options function.call return self end |
#auto_x ⇒ Object
221 222 223 224 225 |
# File 'lib/rust/plots/core.rb', line 221 def auto_x @x = nil return self end |
#auto_y ⇒ Object
227 228 229 230 231 |
# File 'lib/rust/plots/core.rb', line 227 def auto_y @y = nil return self end |
#hide_x ⇒ Object
233 234 235 236 237 |
# File 'lib/rust/plots/core.rb', line 233 def hide_x @x = Float::NAN return self end |
#hide_y ⇒ Object
239 240 241 242 243 |
# File 'lib/rust/plots/core.rb', line 239 def hide_y @y = Float::NAN return self end |
#x(value) ⇒ Object
209 210 211 212 213 |
# File 'lib/rust/plots/core.rb', line 209 def x(value) @x = value return self end |
#y(value) ⇒ Object
215 216 217 218 219 |
# File 'lib/rust/plots/core.rb', line 215 def y(value) @y = value return self end |