Class: Rubyplot::LineGeometry

Inherits:
ArtistGeometry show all
Defined in:
lib/rubyplot/scripting/line/geometry.rb

Constant Summary

Constants inherited from ArtistGeometry

ArtistGeometry::DEFAULT_MARGIN, ArtistGeometry::DEFAULT_TARGET_WIDTH, ArtistGeometry::LABEL_MARGIN, ArtistGeometry::LEGEND_MARGIN

Instance Attribute Summary collapse

Attributes inherited from ArtistGeometry

#additional_line_colors, #additional_line_values, #all_colors_array, #bottom_margin, #center_labels_over_point, #column_count, #font, #font_color, #has_data, #has_left_labels, #hide_legend, #hide_line_markers, #hide_line_numbers, #hide_title, #increment, #increment_scaled, #increment_x_scaled, #label_formatting, #label_max_size, #label_stagger_height, #label_truncation_style, #labels, #labels_seen, #left_margin, #legend_at_bottom, #legend_box_size, #legend_font_size, #legend_margin, #marker_color, #marker_count, #marker_shadow_color, #maximum_value, #minimum_value, #norm_data, #plot_colors, #raw_columns, #raw_rows, #right_margin, #show_labels_for_bar_values, #sorted_drawing, #stacked, #theme_options, #title, #title_margin, #top_margin, #use_data_label, #x_axis_increment, #x_axis_label, #y_axis_increment, #y_axis_label

Instance Method Summary collapse

Constructor Details

#initializeLineGeometry

Returns a new instance of LineGeometry


10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/rubyplot/scripting/line/geometry.rb', line 10

def initialize
  super
  @reference_lines = {}
  @reference_line_default_color = 'red'
  @reference_line_default_width = 5

  @hide_dots = @hide_lines = false
  @show_vertical_markers = false
  @dot_style = 'circle' # Options present for Circle and Square dot style.

  @maximum_x_value = nil
  @minimum_x_value = nil
end

Instance Attribute Details

#dot_styleObject

Returns the value of attribute dot_style


9
10
11
# File 'lib/rubyplot/scripting/line/geometry.rb', line 9

def dot_style
  @dot_style
end

#hide_dotsObject

Returns the value of attribute hide_dots


6
7
8
# File 'lib/rubyplot/scripting/line/geometry.rb', line 6

def hide_dots
  @hide_dots
end

#hide_linesObject

Returns the value of attribute hide_lines


7
8
9
# File 'lib/rubyplot/scripting/line/geometry.rb', line 7

def hide_lines
  @hide_lines
end

#reference_line_default_colorObject

Returns the value of attribute reference_line_default_color


4
5
6
# File 'lib/rubyplot/scripting/line/geometry.rb', line 4

def reference_line_default_color
  @reference_line_default_color
end

#reference_line_default_widthObject

Returns the value of attribute reference_line_default_width


5
6
7
# File 'lib/rubyplot/scripting/line/geometry.rb', line 5

def reference_line_default_width
  @reference_line_default_width
end

#reference_linesObject

Returns the value of attribute reference_lines


3
4
5
# File 'lib/rubyplot/scripting/line/geometry.rb', line 3

def reference_lines
  @reference_lines
end

#show_vertical_markersObject

Returns the value of attribute show_vertical_markers


8
9
10
# File 'lib/rubyplot/scripting/line/geometry.rb', line 8

def show_vertical_markers
  @show_vertical_markers
end