Class: Charty::Plotters::RelationalPlotter
- Inherits:
-
AbstractPlotter
- Object
- AbstractPlotter
- Charty::Plotters::RelationalPlotter
- Defined in:
- lib/charty/plotters/relational_plotter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#color_norm ⇒ Object
Returns the value of attribute color_norm.
-
#dashes ⇒ Object
Returns the value of attribute dashes.
-
#input_format ⇒ Object
readonly
Returns the value of attribute input_format.
-
#legend ⇒ Object
Returns the value of attribute legend.
-
#markers ⇒ Object
Returns the value of attribute markers.
-
#plot_data ⇒ Object
readonly
Returns the value of attribute plot_data.
-
#size ⇒ Object
Returns the value of attribute size.
-
#size_norm ⇒ Object
Returns the value of attribute size_norm.
-
#size_order ⇒ Object
Returns the value of attribute size_order.
-
#sizes ⇒ Object
Returns the value of attribute sizes.
-
#style ⇒ Object
Returns the value of attribute style.
-
#style_order ⇒ Object
Returns the value of attribute style_order.
-
#units ⇒ Object
Returns the value of attribute units.
-
#var_types ⇒ Object
readonly
Returns the value of attribute var_types.
-
#variables ⇒ Object
readonly
Returns the value of attribute variables.
Attributes inherited from AbstractPlotter
#color, #color_order, #data, #key_color, #palette, #title, #x, #x_label, #y, #y_label
Instance Method Summary collapse
- #flat_structure ⇒ Object
-
#initialize(x, y, color, style, size, data: nil, **options, &block) ⇒ RelationalPlotter
constructor
A new instance of RelationalPlotter.
Methods inherited from AbstractPlotter
#inspect, #processed_data, #render, #save, #to_iruby, #to_iruby_mimebundle, #var_levels
Constructor Details
#initialize(x, y, color, style, size, data: nil, **options, &block) ⇒ RelationalPlotter
Returns a new instance of RelationalPlotter.
431 432 433 434 435 436 437 438 |
# File 'lib/charty/plotters/relational_plotter.rb', line 431 def initialize(x, y, color, style, size, data: nil, **, &block) super(x, y, color, data: data, **, &block) self.style = style self.size = size setup_variables end |
Instance Attribute Details
#color_norm ⇒ Object
Returns the value of attribute color_norm.
442 443 444 |
# File 'lib/charty/plotters/relational_plotter.rb', line 442 def color_norm @color_norm end |
#dashes ⇒ Object
Returns the value of attribute dashes.
446 447 448 |
# File 'lib/charty/plotters/relational_plotter.rb', line 446 def dashes @dashes end |
#input_format ⇒ Object (readonly)
Returns the value of attribute input_format.
525 526 527 |
# File 'lib/charty/plotters/relational_plotter.rb', line 525 def input_format @input_format end |
#legend ⇒ Object
Returns the value of attribute legend.
448 449 450 |
# File 'lib/charty/plotters/relational_plotter.rb', line 448 def legend @legend end |
#markers ⇒ Object
Returns the value of attribute markers.
446 447 448 |
# File 'lib/charty/plotters/relational_plotter.rb', line 446 def markers @markers end |
#plot_data ⇒ Object (readonly)
Returns the value of attribute plot_data.
525 526 527 |
# File 'lib/charty/plotters/relational_plotter.rb', line 525 def plot_data @plot_data end |
#size ⇒ Object
Returns the value of attribute size.
440 441 442 |
# File 'lib/charty/plotters/relational_plotter.rb', line 440 def size @size end |
#size_norm ⇒ Object
Returns the value of attribute size_norm.
444 445 446 |
# File 'lib/charty/plotters/relational_plotter.rb', line 444 def size_norm @size_norm end |
#size_order ⇒ Object
Returns the value of attribute size_order.
444 445 446 |
# File 'lib/charty/plotters/relational_plotter.rb', line 444 def size_order @size_order end |
#sizes ⇒ Object
Returns the value of attribute sizes.
444 445 446 |
# File 'lib/charty/plotters/relational_plotter.rb', line 444 def sizes @sizes end |
#style ⇒ Object
Returns the value of attribute style.
440 441 442 |
# File 'lib/charty/plotters/relational_plotter.rb', line 440 def style @style end |
#style_order ⇒ Object
Returns the value of attribute style_order.
446 447 448 |
# File 'lib/charty/plotters/relational_plotter.rb', line 446 def style_order @style_order end |
#units ⇒ Object
Returns the value of attribute units.
440 441 442 |
# File 'lib/charty/plotters/relational_plotter.rb', line 440 def units @units end |
#var_types ⇒ Object (readonly)
Returns the value of attribute var_types.
525 526 527 |
# File 'lib/charty/plotters/relational_plotter.rb', line 525 def var_types @var_types end |
#variables ⇒ Object (readonly)
Returns the value of attribute variables.
525 526 527 |
# File 'lib/charty/plotters/relational_plotter.rb', line 525 def variables @variables end |
Instance Method Details
#flat_structure ⇒ Object
424 425 426 427 428 429 |
# File 'lib/charty/plotters/relational_plotter.rb', line 424 def flat_structure { x: :index, y: :values } end |