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.



108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# File 'lib/gr.rb', line 108

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.



103
104
105
# File 'lib/gr.rb', line 103

def draw_axis_line
  @draw_axis_line
end

#label_orientationObject

Returns the value of attribute label_orientation.



103
104
105
# File 'lib/gr.rb', line 103

def label_orientation
  @label_orientation
end

#label_positionObject

Returns the value of attribute label_position.



103
104
105
# File 'lib/gr.rb', line 103

def label_position
  @label_position
end

#major_countObject

Returns the value of attribute major_count.



103
104
105
# File 'lib/gr.rb', line 103

def major_count
  @major_count
end

#maxObject

Returns the value of attribute max.



103
104
105
# File 'lib/gr.rb', line 103

def max
  @max
end

#minObject

Returns the value of attribute min.



103
104
105
# File 'lib/gr.rb', line 103

def min
  @min
end

#num_ticksObject

Returns the value of attribute num_ticks.



103
104
105
# File 'lib/gr.rb', line 103

def num_ticks
  @num_ticks
end

#orgObject

Returns the value of attribute org.



103
104
105
# File 'lib/gr.rb', line 103

def org
  @org
end

#positionObject

Returns the value of attribute position.



103
104
105
# File 'lib/gr.rb', line 103

def position
  @position
end

#tickObject

Returns the value of attribute tick.



103
104
105
# File 'lib/gr.rb', line 103

def tick
  @tick
end

#tick_labelsObject

Returns the value of attribute tick_labels.



103
104
105
# File 'lib/gr.rb', line 103

def tick_labels
  @tick_labels
end

#tick_sizeObject

Returns the value of attribute tick_size.



103
104
105
# File 'lib/gr.rb', line 103

def tick_size
  @tick_size
end

#ticksObject

Returns the value of attribute ticks.



103
104
105
# File 'lib/gr.rb', line 103

def ticks
  @ticks
end