Class: Rust::Plots::GGPlot::ThemeAxisBuilder

Inherits:
ThemeComponentBuilder show all
Defined in:
lib/rust/external/ggplot2/themes.rb

Instance Method Summary collapse

Methods inherited from ThemeComponentBuilder

#[], #alignment_el, #build, #line_el, #numeric_el, #option, #rect_el, #text_el, #unit_el

Constructor Details

#initializeThemeAxisBuilder

Returns a new instance of ThemeAxisBuilder.



280
281
282
# File 'lib/rust/external/ggplot2/themes.rb', line 280

def initialize
    super("axis")
end

Instance Method Details

#line(value) ⇒ Object



284
285
286
# File 'lib/rust/external/ggplot2/themes.rb', line 284

def line(value)
    self.option('line', line_el(value))
end

#text(value) ⇒ Object



288
289
290
# File 'lib/rust/external/ggplot2/themes.rb', line 288

def text(value)
    self.option('text', text_el(value))
end

#text_x(value) ⇒ Object



292
293
294
# File 'lib/rust/external/ggplot2/themes.rb', line 292

def text_x(value)
    self.option('text.x', text_el(value))
end

#text_y(value) ⇒ Object



296
297
298
# File 'lib/rust/external/ggplot2/themes.rb', line 296

def text_y(value)
    self.option('text.y', text_el(value))
end

#ticks(value) ⇒ Object



312
313
314
# File 'lib/rust/external/ggplot2/themes.rb', line 312

def ticks(value)
    self.option('ticks', line_el(value))
end

#ticks_length(value) ⇒ Object



316
317
318
# File 'lib/rust/external/ggplot2/themes.rb', line 316

def ticks_length(value)
    self.option('ticks.length', unit_el(value))
end

#title(value) ⇒ Object



300
301
302
# File 'lib/rust/external/ggplot2/themes.rb', line 300

def title(value)
    self.option('title', text_el(value))
end

#title_x(value) ⇒ Object



304
305
306
# File 'lib/rust/external/ggplot2/themes.rb', line 304

def title_x(value)
    self.option('title.x', text_el(value))
end

#title_y(value) ⇒ Object



308
309
310
# File 'lib/rust/external/ggplot2/themes.rb', line 308

def title_y(value)
    self.option('title.y', text_el(value))
end