並走 今週のお題「上半期ふりかえり2025」 2025年の目標。たしかGoogle Keepに書いていたよなと思って検索すると、直球で「2025年の目標」と書かれたメモが出てきた。編集:2024年12月31日。(1)マラソン大会に出ること、(2)短歌を100個つくること、と書いてあった。 マ…
並走 今週のお題「上半期ふりかえり2025」 2025年の目標。たしかGoogle Keepに書いていたよなと思って検索すると、直球で「2025年の目標」と書かれたメモが出てきた。編集:2024年12月31日。(1)マラソン大会に出ること、(2)短歌を100個つくること、と書いてあった。 マ…
C#から操作するのはこのブログで昔に扱ったったように思うけれど、最近はずっとUnix環境下なのでRubyで。 RubyでOpen3というのを使うと、Ruby内で外部プログラムを起動してその標準入力、標準出力、標準エラー出力を扱うことができる。 Ruby で外部プログラムの標準エラー出力を得る方法 | METAREAL 例えばアニメーションの作成 #!/usr/bin/ruby require 'open3' Open3.popen3('gnuplot') do |gp_in, gp_out, gp_err| Signal.trap(:INT) do gp_in.close print gp_err.read exit end gp_in.puts "set terminal gif animate delay 2 optimize size 640, 480" gp_in.puts "se
Gnuplot.open do |gp| Gnuplot::Plot.new( gp ) do |plot| #plot.title “Example” # we don’t need no shtinkin titles plot.ylabel ylabel if ylabel plot.xlabel xlabel if xlabel plot.xrange “[0:#{ xs.last + 1}]; set logscale y” # plot.yrange “[0:10]” auto calculated # is there an xmin? plot.terminal ‘pdf’ plot.output name #plot.logscale ‘y’ # this line is the one I was proud of
I need to plot data in real time, reading a file over and over and update a the screen. How to implement reread and replot? require ‘gnuplot’ class Plot Plot a surface of the data in file in realtime def realTimeSurfacePlot (plotFile, title, xLabel, yLabel, zLabel) Gnuplot::open do |gp| Gnuplot::SPlot.new(gp) do |plot| plot.title title plot.set “xlabel %s” %xLabel plot.set “ylabel %s” %yLabel plot
This is the gnuplot commands from a shell script (from the Hannon Lab), and I would like to port the plotting part to Ruby using the rgplot gem, but I fail getting the syntax right. set boxwidth 0.75 absolute set size 1,1 set style fill solid 1.00 border -1 set xlabel \"read position\" set title \"Nucleotides distribution $TITLE\" set ylabel \"% of total (per read position)\" set key outside right
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く