Class: Charty::Plotters::ScatterPlotter

Inherits:
RelationalPlotter show all
Defined in:
lib/charty/plotters/scatter_plotter.rb

Instance Attribute Summary collapse

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

Methods inherited from RelationalPlotter

#flat_structure

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: {}, **options, &block)
  x, y, color, style, size = variables.values_at(:x, :y, :color, :style, :size)
  super(x, y, color, style, size, data: data, **options, &block)
end

Instance Attribute Details

#alphaObject

Returns the value of attribute alpha.



9
10
11
# File 'lib/charty/plotters/scatter_plotter.rb', line 9

def alpha
  @alpha
end

#edge_colorObject

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_widthObject

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