ユーザ用ツール

サイト用ツール


algraph:散布図

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
最新のリビジョン両方とも次のリビジョン
algraph:散布図 [2019/04/07 19:47] hirohitoalgraph:散布図 [2019/12/18 15:53] hirohito
行 4: 行 4:
 <code html index.html> <code html index.html>
 <!DOCTYPE html> <!DOCTYPE html>
-<object width="320" height="240" type="image/svg+xml" data="<%= Alone.make_uri(action:'graph_sample') %>"></object>+<img src="<%=Alone::make_uri(:action => 'scatter_sample_01') %>">
 </code> </code>
  
行 17: 行 17:
   end   end
  
-  def action_graph_sample()+  # 散布図1 
 +  def action_scatter_sample_01 
 +    # 竹村彰通(統計 共立出版より引用
     data_m = [[172,70],[176,69],[170,70],[174,70],[170,62],     data_m = [[172,70],[176,69],[170,70],[174,70],[170,62],
               [167,50],[175,75],[179,80],[162,60],[169,80]]               [167,50],[175,75],[179,80],[162,60],[169,80]]
行 45: 行 47:
 データの与え方は、以下の3種類を用意しています。 データの与え方は、以下の3種類を用意しています。
  
-データがペアになっている場合+データがペアになっている場合(上記例)
  
   graph.add_data_pair( [[x1,y1], [x2,y2], ...] )   graph.add_data_pair( [[x1,y1], [x2,y2], ...] )
algraph/散布図.txt · 最終更新: 2019/12/18 15:59 by hirohito