Class: GR::GRAxis

Inherits:
Object
  • Object
show all
Defined in:
lib/gr.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_lineObject

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_orientationObject

Returns the value of attribute label_orientation.



119
120
121
# File 'lib/gr.rb', line 119

def label_orientation
  @label_orientation
end

#label_positionObject

Returns the value of attribute label_position.



119
120
121
# File 'lib/gr.rb', line 119

def label_position
  @label_position
end

#major_countObject

Returns the value of attribute major_count.



119
120
121
# File 'lib/gr.rb', line 119

def major_count
  @major_count
end

#maxObject

Returns the value of attribute max.



119
120
121
# File 'lib/gr.rb', line 119

def max
  @max
end

#minObject

Returns the value of attribute min.



119
120
121
# File 'lib/gr.rb', line 119

def min
  @min
end

#num_ticksObject

Returns the value of attribute num_ticks.



119
120
121
# File 'lib/gr.rb', line 119

def num_ticks
  @num_ticks
end

#orgObject

Returns the value of attribute org.



119
120
121
# File 'lib/gr.rb', line 119

def org
  @org
end

#positionObject

Returns the value of attribute position.



119
120
121
# File 'lib/gr.rb', line 119

def position
  @position
end

#tickObject

Returns the value of attribute tick.



119
120
121
# File 'lib/gr.rb', line 119

def tick
  @tick
end

#tick_labelsObject

Returns the value of attribute tick_labels.



119
120
121
# File 'lib/gr.rb', line 119

def tick_labels
  @tick_labels
end

#tick_sizeObject

Returns the value of attribute tick_size.



119
120
121
# File 'lib/gr.rb', line 119

def tick_size
  @tick_size
end

#ticksObject

Returns the value of attribute ticks.



119
120
121
# File 'lib/gr.rb', line 119

def ticks
  @ticks
end