Class: AlGraphXY::ContainerXY
- Inherits:
-
AlGraph::ContainerLine
- Object
- AlGraph::DataContainer
- AlGraph::ContainerLine
- AlGraphXY::ContainerXY
- Defined in:
- lib/al_graph_xy.rb
Overview
XYグラフ及び散布図用 データコンテナ
Instance Attribute Summary collapse
-
#x_data ⇒ Array<Numeric>
X値データ.
Attributes inherited from AlGraph::ContainerLine
#at_marker, #at_marker_several, #at_plot_line, #mode_missing_data
Attributes inherited from AlGraph::DataContainer
#at_data_labels, #id, #labels, #legend, #plot, #x_axis, #y_axis, #y_data
Instance Method Summary collapse
-
#each ⇒ Object
イテレータ.
-
#initialize(xdata, ydata, legend = nil) ⇒ ContainerXY
constructor
(ContainerXY) constructor.
Methods inherited from AlGraph::ContainerLine
#clear_line, #clear_marker, #set_color
Methods inherited from AlGraph::DataContainer
Constructor Details
#initialize(xdata, ydata, legend = nil) ⇒ ContainerXY
(ContainerXY) constructor
233 234 235 236 237 |
# File 'lib/al_graph_xy.rb', line 233 def initialize(xdata, ydata, legend = nil) super(ydata, legend) @x_data = xdata end |
Instance Attribute Details
#x_data ⇒ Array<Numeric>
Returns X値データ.
222 223 224 |
# File 'lib/al_graph_xy.rb', line 222 def x_data @x_data end |
Instance Method Details
#each ⇒ Object
イテレータ
242 243 244 245 246 |
# File 'lib/al_graph_xy.rb', line 242 def each() @x_data.each_with_index {|xd, i| yield( xd, @y_data[i], i ) } end |