Class: AlGraphScatter::GraphScatter

Inherits:
AlGraphXY::GraphXY show all
Defined in:
lib/al_graph_scatter.rb

Overview

散布図用クラス

Constant Summary

Constants inherited from AlGraph::Graph

AlGraph::Graph::SHAPE_LIST

Constants inherited from AlGraph::GraphBase

AlGraph::GraphBase::COLOR_LIST

Constants inherited from AlGraph::GraphView

AlGraph::GraphView::ATTR_NAMES

Instance Attribute Summary

Attributes inherited from AlGraph::Graph

#at_xaxis_title, #at_xaxis_unit, #at_y2axis_unit, #at_yaxis_title, #at_yaxis_unit, #bar_plot, #line_plot, #shape_list, #x_axis, #y2_axis, #y_axis

Attributes inherited from AlGraph::GraphBase

#at_graph_area, #at_legend, #at_main_title, #at_plot_area, #color_list, #output

Attributes inherited from AlGraph::GraphView

#data_series, #height, #width

Instance Method Summary collapse

Methods inherited from AlGraphXY::GraphXY

#add_data_pair, #initialize

Methods inherited from AlGraph::Graph

#add_data_bar, #add_data_line, #add_data_line_y2, #add_xaxis_title, #add_xaxis_unit, #add_y2axis_unit, #add_yaxis_title, #add_yaxis_unit, #draw, #initialize, #set_margin

Methods inherited from AlGraph::GraphBase

#add_aux_tag, #add_legend, #add_main_title, #add_text, #draw_buffer, #initialize, #set_margin, #set_mode

Methods inherited from AlGraph::GraphView

#initialize

Constructor Details

This class inherits a constructor from AlGraphXY::GraphXY

Instance Method Details

#add_data(data1, data2, legend = nil) ⇒ ContainerXY

(GraphXY) データ追加

Parameters:

  • data1 (Array<Numeric>)

    データの配列 X軸

  • data2 (Array<Numeric>)

    データの配列 Y軸

  • legend (String) (defaults to: nil)

    データの名前(凡例)

Returns:

  • (ContainerXY)

    データコンテナオブジェクト



34
35
36
37
38
# File 'lib/al_graph_scatter.rb', line 34

def add_data(data1, data2, legend = nil)
  obj = super
  obj.clear_line()
  return obj
end