Class: Charty::Plotters::ScatterPlotter
- Inherits:
-
RelationalPlotter
- Object
- AbstractPlotter
- RelationalPlotter
- Charty::Plotters::ScatterPlotter
- Defined in:
- lib/charty/plotters/scatter_plotter.rb
Instance Attribute Summary collapse
-
#alpha ⇒ Object
Returns the value of attribute alpha.
-
#edge_color ⇒ Object
Returns the value of attribute edge_color.
-
#line_width ⇒ Object
Returns the value of attribute line_width.
Attributes inherited from RelationalPlotter
#color_norm, #dashes, #input_format, #legend, #markers, #plot_data, #size, #size_norm, #size_order, #sizes, #style, #style_order, #units, #var_types, #variables
Attributes inherited from AbstractPlotter
#color, #color_order, #data, #key_color, #palette, #title, #x, #x_label, #y, #y_label
Instance Method Summary collapse
-
#initialize(data: nil, variables: {}, **options, &block) ⇒ ScatterPlotter
constructor
A new instance of ScatterPlotter.
Methods inherited from RelationalPlotter
Methods inherited from AbstractPlotter
#inspect, #processed_data, #render, #save, #to_iruby, #to_iruby_mimebundle, #var_levels
Constructor Details
#initialize(data: nil, variables: {}, **options, &block) ⇒ ScatterPlotter
Returns a new instance of ScatterPlotter.
4 5 6 7 |
# File 'lib/charty/plotters/scatter_plotter.rb', line 4 def initialize(data: nil, variables: {}, **, &block) x, y, color, style, size = variables.values_at(:x, :y, :color, :style, :size) super(x, y, color, style, size, data: data, **, &block) end |
Instance Attribute Details
#alpha ⇒ Object
Returns the value of attribute alpha.
9 10 11 |
# File 'lib/charty/plotters/scatter_plotter.rb', line 9 def alpha @alpha end |
#edge_color ⇒ Object
Returns the value of attribute edge_color.
28 29 30 |
# File 'lib/charty/plotters/scatter_plotter.rb', line 28 def edge_color @edge_color end |
#line_width ⇒ Object
Returns the value of attribute line_width.
28 29 30 |
# File 'lib/charty/plotters/scatter_plotter.rb', line 28 def line_width @line_width end |