Irisのデータをプロットする 有名なアヤメのデータセットを用いて散布図を描いてみます。 まずCSVファイルを用意します。 iris.csv 使用するライブラリ numo-gnuplot Jupyter Notebookを使うとき IRuby : Ruby kernel for Jupyter/IPython Notebook Numo.gnuplot のかわりに Numo.noteplotメソッドを使います。 require 'daru' require 'numo/gnuplot' df = Daru::DataFrame.from_csv 'iris.csv' setosa = df.where(df.Name.eq 'Iris-setosa') versicolor = df.where(df.Name.eq 'Iris-versicolor') virginica = df.wh
Free software, open standards, and web services for interactive computing across all programming languages JupyterLab: A Next-Generation Notebook Interface JupyterLab is the latest web-based interactive development environment for notebooks, code, and data. Its flexible interface allows users to configure and arrange workflows in data science, scientific computing, computational journalism, and ma
D3.js(http://d3js.org/ )などで出力されるsvg要素を画像として使いたくなったので、d3.jsでsvgとして表示し、javascriptでsvgデータをbase64形式にして保存し、base64形式の画像データを画面上に表示する方法をまとめました。 【手順】 データをD3.jsを使ってグラグフィカルに表示する 出力されたsvg要素を画像に変換して保存する(※今回はbase64にして保存にしました) 画像として保存したデータを表示する という三段階でやり方をまとめてみました。 1.については、たくさん種類があるのでD3.jsのexampleページを参考にしてみてください。 2.出力されたsvg要素を画像に変換して保存する var svg = document.querySelector( "svg" ); var svgData = new XMLSerializer(
June 13, 2016Make Easy Graphs and Charts on Rails with Chartkick We work with data presented in the various formats every day. From my point of view, one of the most convenient formats for presenting numerical data is a graph. Users like graphs, especially interactive ones, because they are beautiful and fun – in contrast to dull static tables. There are many solutions to render beautiful interact
##Neo4jって何? Neo4jはJavaで実装された、 オープンソースの最も人気のあるグラフデータベースです。 グラフデータベースでは、データセット全体をひとつの巨大な高密度ネットワーク構造としてモデル化します。 細かい説明は、ここを見てください。 ##Neo4jでできること グラフデータをそのままの構造でデータベースに保存することができて、そのグラフデータを元に検索やデータの引き出しなどができます。 グラフデータベースの構造は至ってシンプルで、以下の3つで構成されています。 node:関係を持つ対象 relation:方向を有する関係性 property:ノードとリレーションシップが持つ属性 具体的に、弊社で運営しているTalentBaseのデータ構造をグラフデータベースで管理したらどんなことが出来るかをまとめてみます。 TalentBaseの場合、 node:ユーザー、企業、求人
require 'open3' Open3.popen3('gnuplot') do |gp_in, gp_out, gp_err| gp_in.puts "set size square" gp_in.puts "set xrange [-5:5]" gp_in.puts "set yrange [-5:5]" gp_in.puts "set parametric" gp_in.puts "set obj rect behind " << "from screen 0, screen 0 to screen 1, screen 1 " << "fillcolor rgb 'black'" Signal.trap(:INT) do gp_in.close print gp_err.read exit 0 end loop do plot = "plot " # 時計の外周の円 plot <
はじめに アトラクターは物理の世界から出てきたトピックで、今も活発に研究が続いているようです。その中でもストレンジアトラクターと言われるものは身近な存在で、見た目が面白いのでスクリーンセーバーなど色々なところでみるかと思います。この記事ではnyaplotとrb-gslを使ってStrange Attractorの内いくつかを作ってみます。Nyaplotについてはこのブログ記事をご覧ください。 記事中のコードは全てこちらのノートブックでご覧いただけます。 準備 必要なgemをインストールします。nyaplotはgem install nyaplotでインストールできます。必須ではありませんがgem install nyaplot-utilsでnyaplotの補助ライブラリがインストールできます。 また、rb-gslのインストール方法についてはこちら、IRubyのインストール方法についてはこちら
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く