Class: GR::GRAxis
- Inherits:
-
Object
- Object
- GR::GRAxis
- Defined in:
- lib/gr.rb
Instance Attribute Summary collapse
-
#draw_axis_line ⇒ Object
Returns the value of attribute draw_axis_line.
-
#label_orientation ⇒ Object
Returns the value of attribute label_orientation.
-
#label_position ⇒ Object
Returns the value of attribute label_position.
-
#major_count ⇒ Object
Returns the value of attribute major_count.
-
#max ⇒ Object
Returns the value of attribute max.
-
#min ⇒ Object
Returns the value of attribute min.
-
#num_ticks ⇒ Object
Returns the value of attribute num_ticks.
-
#org ⇒ Object
Returns the value of attribute org.
-
#position ⇒ Object
Returns the value of attribute position.
-
#tick ⇒ Object
Returns the value of attribute tick.
-
#tick_labels ⇒ Object
Returns the value of attribute tick_labels.
-
#tick_size ⇒ Object
Returns the value of attribute tick_size.
-
#ticks ⇒ Object
Returns the value of attribute ticks.
Instance Method Summary collapse
-
#initialize(min: Float::NAN, max: Float::NAN, tick: Float::NAN, org: Float::NAN, position: Float::NAN, major_count: 1, num_ticks: 0, ticks: nil, tick_size: Float::NAN, tick_labels: nil, label_position: Float::NAN, draw_axis_line: 1, label_orientation: 0) ⇒ GRAxis
constructor
A new instance of GRAxis.
Constructor Details
#initialize(min: Float::NAN, max: Float::NAN, tick: Float::NAN, org: Float::NAN, position: Float::NAN, major_count: 1, num_ticks: 0, ticks: nil, tick_size: Float::NAN, tick_labels: nil, label_position: Float::NAN, draw_axis_line: 1, label_orientation: 0) ⇒ GRAxis
Returns a new instance of GRAxis.
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
# File 'lib/gr.rb', line 124 def initialize(min: Float::NAN, max: Float::NAN, tick: Float::NAN, org: Float::NAN, position: Float::NAN, major_count: 1, num_ticks: 0, ticks: nil, tick_size: Float::NAN, tick_labels: nil, label_position: Float::NAN, draw_axis_line: 1, label_orientation: 0) @min = min @max = max @tick = tick @org = org @position = position @major_count = major_count @num_ticks = num_ticks @ticks = ticks @tick_size = tick_size @tick_labels = tick_labels @label_position = label_position @draw_axis_line = draw_axis_line @label_orientation = label_orientation end |
Instance Attribute Details
#draw_axis_line ⇒ Object
Returns the value of attribute draw_axis_line.
119 120 121 |
# File 'lib/gr.rb', line 119 def draw_axis_line @draw_axis_line end |
#label_orientation ⇒ Object
Returns the value of attribute label_orientation.
119 120 121 |
# File 'lib/gr.rb', line 119 def label_orientation @label_orientation end |
#label_position ⇒ Object
Returns the value of attribute label_position.
119 120 121 |
# File 'lib/gr.rb', line 119 def label_position @label_position end |
#major_count ⇒ Object
Returns the value of attribute major_count.
119 120 121 |
# File 'lib/gr.rb', line 119 def major_count @major_count end |
#max ⇒ Object
Returns the value of attribute max.
119 120 121 |
# File 'lib/gr.rb', line 119 def max @max end |
#min ⇒ Object
Returns the value of attribute min.
119 120 121 |
# File 'lib/gr.rb', line 119 def min @min end |
#num_ticks ⇒ Object
Returns the value of attribute num_ticks.
119 120 121 |
# File 'lib/gr.rb', line 119 def num_ticks @num_ticks end |
#org ⇒ Object
Returns the value of attribute org.
119 120 121 |
# File 'lib/gr.rb', line 119 def org @org end |
#position ⇒ Object
Returns the value of attribute position.
119 120 121 |
# File 'lib/gr.rb', line 119 def position @position end |
#tick ⇒ Object
Returns the value of attribute tick.
119 120 121 |
# File 'lib/gr.rb', line 119 def tick @tick end |
#tick_labels ⇒ Object
Returns the value of attribute tick_labels.
119 120 121 |
# File 'lib/gr.rb', line 119 def tick_labels @tick_labels end |
#tick_size ⇒ Object
Returns the value of attribute tick_size.
119 120 121 |
# File 'lib/gr.rb', line 119 def tick_size @tick_size end |
#ticks ⇒ Object
Returns the value of attribute ticks.
119 120 121 |
# File 'lib/gr.rb', line 119 def ticks @ticks end |