問題タブ [gnuplot]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
gnuplot - Set Axis Tick Labels in gnuplot
My input to gnuplot looks something like this:
The first column contains (what I'd like to be) the X-axis labels, while the second column contains the X-axis values. (In actual point of fact, I have one row per second, so many rows have '1:00am' as in the label column, then '1:01am', etc).
I can plot the values I care about using something like:
And I can set the X axis to have a tick (and label) every 30 minutes (which is 30 * 60 = 1800 seconds), but the label it uses is the X axis value (something like 3600 for one hour).
What I can't get is for the labels that show up under each tick to use the values from the first column. I can't even find anything that looks promising in the gnuplot manual. I've got to assume this is possible, I just don't know where to look.
Edit:
Progress, I've discovered the xticlabels()
parameter to plot
. The problem is that it seems to plot these labels for every xtic (that is, one per second in my data set), rather than at the intervals defined by set xtics
.
Edit and Answer:
Turns out gnuplot
has support for graphing time-series data. For the curious:
This causes the X axis data (once reformatted to match that pattern) to be interpreted as time-series data. This is then combined with
Formats the X axis as I described.
c++ - GNU Plot で複雑な関数を描画する
私は研究所で働いていて、家庭教師から GNUPlot でランガーマン統計関数を描くように言われました。
こんにちは、座標を生成できるはずのこのコードをくれました。
http://www.siteduzero.com/uploads/fr/files/192001_193000/192917.png
何か考えはありますか。どうすればそれができるのですか?GNU/Octave を使用して座標を生成し、GNUPlot でオクターブからプロットを開始することを考えていました。
よろしくお願いします、
ネイティム
c++ - gnuPlot を使用した C++ のグラフ
C++ コードでグラフを印刷するために gnuPlot ライブラリを使用しています。その印刷グラフは問題ありませんが、青色でしか印刷されません。誰かが色を変更する方法を知っていますか?
乾杯
gnuplot - GNUplot を使用して正三角形を作成する方法は?
GNUplot を使用して、データを 2 次元の重心正三角形にプロットしようとしています。
次のコマンドを使用しています。
上記のコマンドは、二等辺三角形を作成する代わりに、正三角形を作成しません。
私を助けてください!
よろしく、 スワティ
gnuplot - 固定データ要素を基準にしたプロット
私は次のデータファイルを持っています:
ポイントをプロットしたい(x i、y i / y 1)。gnuplotを使用してこれを行うにはどうすればよいですか?
animation - 直接 2D gnuplot PNG アニメーション?
はい/いいえ Gnuplot 4.5 (CVS 上) が 2D アニメーション PNG ファイルを出力できることを誰か確認できますか? 多数のデータセットがありますが、グラフの 3 つの異なる場所に繰り返し表示したい 1 行があります。これは gnuplot から直接実行できますか、それとも複数のフレームから外部でアニメーション化する必要があるのでしょうか?
plot - Gnuplot 累積列の質問
私はいくつかのデータを持っています。
gnuplot で時間に対する累積距離をプロットしたいのですが (簡単なはずです)、方法がわかりません。
バツ
osx-snow-leopard - octave + gnuplot + os x 10.6 : 何も起こらない
OS X 10.6.1 を搭載した私の第 1 世代の Macbook Pro では、ターミナルを x11 に設定した後、次のようなコマンドを使用して gnuplot を起動し、プロットを取得できます。
[-6:6] sin(x) をプロットします。
しかし、オクターブを起動してプロットコマンドを試してみると、
plot([2 3],[4 5]) または plot([-6:0.01:6],cos([-6:0.01:6]))
エラーメッセージもプロットも表示されません。ちょうど別のオクターブ プロンプト。octave-3.2.3-i386.dmg からインストールしました。何を与える?
任意の提案をいただければ幸いです。
python - ヒストグラムのプロット:データベースに保存されているデータを使用して、最初から作成するにはどうすればよいですか?
私はこのようなデータベースにいくつかのデータを保存しています:
TableName:障害テーブル:
このテーブルから開始してヒストグラムプロットを取得するにはどうすればよいですか?