gnuplot を使おう。 その3 (955レス)
1-

1
(4): 2011/08/25(木)12:15 AAS
グラフ描画ソフト gnuplot のスレ。

gnuplot 公式 Web ページ
http://www.gnuplot.info/

前スレ
gnuplot を使おう。 その2
2chスレ:unix
856
(1): 2022/09/14(水)16:56 AAS
>>854
すみません

>>855
そうです

横軸をx軸と呼ぶことにして、>>852で書いた数値a、bはxによらないということです
で、xによらない定数値としてグラフに描画したいということです
定数aを描画したいだけなら plot a で良いのですが、これにエラーをつけるにはどうしたら良いですかと言い換えることもできます
857
(1): 2022/09/14(水)20:34 AAS
xerrorbarsではなく?
858: 2022/09/15(木)01:51 AAS
sidのGnuplotなようやく修正されたぞ
チラ裏
859
(2): 2022/09/15(木)02:15 AAS
>>857
はい。
x軸方向のエラーバーではなく、y軸方向の定数値±定エラーバーを全てのxに渡って表示したいです
860
(2): 2022/09/15(木)03:00 AAS
>>859
こういうこと?
$ cat data.dat
0 -1 2
0.1 -1 2
0.2 -1 2
$ cat plot.gp
set xrange [-.1:.3]
set yrange [-2:3]
plot 'data.dat' u 1:2:3 with filledcurves
pause -1
$ gnuplot plot.gp
861
(3): 2022/09/15(木)03:35 AAS
>>860
そうです
任意の面積の塗り潰しがやりたいことです
862
(1): 2022/09/15(木)04:10 AAS
何に困ってるのかな?
863
(1): 2022/09/15(木)05:09 AAS
あまりにも文盲だらけでワロタ
864: 2022/09/15(木)11:20 AAS
じゃ回答を待ってみよう
865
(2): 2022/09/16(金)08:47 AAS
>>861
860を実行すると塗りつぶした長方形となるんだが,やりたいのはそれなの。
yの値がxに依存する場合も考えるのかな?
x, yのデータが与えられてぬりつぶしの幅を簡単に変えたい。
データの第3列目に書くのは面倒。

こんなことでいいですか?
866: 2022/09/16(金)10:49 AAS
はい
867
(1): 2022/09/16(金)11:45 AAS
>>863
読む側ではなく書く側の問題だと思う
868: 2022/09/16(金)11:58 AAS
>>865
> 860を実行すると塗りつぶした長方形となるんだが,やりたいのはそれなの。
>>861で申したように、そうです
それを中間ファイルを用意せずにやりたいということです

> yの値がxに依存する場合も考えるのかな?
>>856,859で申したように、yもエラーの幅も横軸に依存しません

> x, yのデータが与えられてぬりつぶしの幅を簡単に変えたい。
> データの第3列目に書くのは面倒。
> こんなことでいいですか?
いいえ
与えられるのは定数値a、bだけです
aはいわば中央値を、bはいわばエラーの幅を表します
これらは定数なので、xによりません
したがって、わざわざ
x y ye
なるフォーマットのファイルを用意するのが面倒だというのが>>852で申したことです
869
(1): 2022/09/16(金)12:13 AAS
これであっているのかわからんが参考にはなるかな。
870: 2022/09/16(金)12:39 AAS
おそらく>>860は回答のつもりで「こういうこと?」と聞いていて、質問者>>861は見た目のつもりで「そうです」と言っているのですれ違いが起きている。
で、>>861の「任意の面積」とは流れを踏まえれば明らかに「任意の矩形」という意味だが>>865 (>>860,862,867あたりと同じ人だろう) は額面通りに受け取ってしまったばかりにxに依存する何かを想定している。

視点によっては回答者が文盲にも見えるし質問者が問題を抱えているようにも見えるのだろう。
871
(3): 2022/09/16(金)12:43 AAS
>>869 は間違い。
ただ単にfiledcuvesと使うと中心がaにはならないみたいだがあとは自分でやってくれ。

# begin
a=-1
b=2

set print $data
do for [i=0:10] { print 0.1 * i}
unset print

set xrange [-.1:1.1]
set yrange [-2:3]
plot '$data' u 1:(a):(b) with filledcurves

set terminal pngcairo
set output '852_02.png'
replot
set output
set terminal @GNUTERM
# end

http://tmacchant33.starfree.jp/Files/852_02.png

872
(1): 2022/09/16(金)13:28 AAS
>>871
それはdataなるファイルを作ってるからお題にそぐわないのでは?
873: 2022/09/16(金)13:29 AAS
あと、ファイルを作ってfilledcurveする案で妥協するなら、わざわざ中間の点を打つ必要はないと思う
両端だけ決めてfilledcurveするので十分
874: 2022/09/16(金)14:09 AAS
>>872 873
>それはdataなるファイルを作ってるからお題にそぐわないのでは?
それはそうなんですが
外側にファイルを作らなければ実際上そう面倒にならない。
中間ファイルの役割をスクリプトの中に実現すために
データブロックがgnuplotに実装されたのだから
それを使って実現しても実際上そんなに問題でないとおもいます。

> 両端だけ決めてfilledcurveするので十分
それ書き込んでから気づきました。
875
(1): 2022/09/16(金)14:26 AAS
中間ファイルが嫌ならスクリプトに含めりゃええがな
>>871を書き換えるなら
$ cat plot.gp
a=-1
b=2
set xrange [-.1:1.1]
set yrange [-2:3]
set terminal pngcairo
set output '852_02.png'
plot '-' u 1:(a):(b) with filledcurves
0
1
$ gnuplot < plot.gp
876: 875 2022/09/16(金)14:39 AAS
>>871も中間ファイル作らんのね
失礼!
877: 2022/09/16(金)21:20 AAS
いいってことよ
878: 2022/09/22(木)20:30 AAS
深刻なバグの修正があったようで 5.4.5 が早めにリリースされそうです。
https://sourceforge.net/p/gnuplot/gnuplot-main/ci/b045c506c7a616034f1d3e83ed912a59525cdd7d/
879: 2022/09/23(金)00:31 AAS
やっとかよ
880: 2022/09/26(月)08:22 AAS
5.4.5 のβリリースがでました。

https://sourceforge.net/p/gnuplot/mailman/message/37712536/

Changes in 5.4.5
================
* NEW "set key offset <dx <dy>" tweaks placement of the key
* NEW data-driven histogram colors (variable color from extra using column)
* CHANGE re-order drawing 3D labels to come after pm3d depthorder surfaces
* CHANGE hpgl: add terminal option "fontscale <value>"
* CHANGE for nonuniform matrix data, column(0) returns linear position in matrix
* CHANGE set pointintervalbox 0 disables drawing the background box Bug #2544
* FIX svg: hypertext font handling
* FIX track columnheaders of multiple data blocks in a single file Bug #2538
* FIX Clean up positioning of polar border, raxis, and theta tics Bug #2130
* FIX Autoscaling of logscaled raxis
* FIX memory corruption if a small plot structure is recycled Bug #2550
* FIX regression in 5.4.4 - promotion of string to integer should
should not assume that a leading 0 means octal Bug #2551
* FIX Windows qt: "pause -1" should not block mousing Bug #2549
881: 2022/09/27(火)00:41 AAS
キターーー
882: 2022/10/02(日)18:07 AAS
重要なバグ修正があるので年末予定のスケジュールを早めてgnuplot 5.4.5 がリリースされました。
Windowsバイナリもアップロードされています。

https://sourceforge.net/projects/gnuplot/files/gnuplot/5.4.5/
883: 2022/10/05(水)21:56 AAS
極座標でのグリッドが開発版に実装されました。
https://sourceforge.net/p/gnuplot/gnuplot-main/ci/8d2e06d6a310daaa12b1e60cc720b387a1a7593b/

configure で --enable-polar-grid オプションをつけてビルドすると実装されます。

polargrid.dem の実行結果を pdf にしてみました。
http://tmacchant33.starfree.jp/Files/polargrid_dem.pdf

Windows と Cygwin の開発版のバイナリもこのオプションをつけてビルドしています。
http://tmacchant33.starfree.jp/gnuplot_bin.html
884: 2022/10/16(日)12:50 AAS
開発版にローカル変数がサポートされました。
https://sourceforge.net/p/gnuplot/gnuplot-main/ci/a4e913218be1383287f67b51331a1add63f36465/
885: 2022/10/20(木)16:00 AAS
関数ブロックが開発版に実装されました。

https://sourceforge.net/p/gnuplot/gnuplot-main/ci/4a6a56709fc8287a910409805bb74ddd87d59dca/

configure で --enable-function-blocks を使ってください。
(以前紹介した watch points や polar grid はデフォルトで enable となりました。)
デモは以下を御覧ください。

http://www.gnuplot.info/demo_5.5/function_block.html
886: 2022/12/01(木)22:12 AAS
ageます
887
(9): 2022/12/06(火)01:23 AAS
C++からデータをパイプでgnuplotに流し込むことを考えています
以下のソースはLinuxではうまくいったのですが
mingwでビルドしてWindowsで実行するとうまく行きません
(ソース分けます)

#include <string>
#include <cstdio>
#include <memory>
#include <ctime>
#include <map>
#include <cmath>
using namespace std;
using Series = map <double, double>;
static const double pi (acos (-1));
static const double MIN (0), MAX (pi * 4);
static const double INTERVAL ((MAX - MIN) / 100);
static const double PHI (0);
static const double OMEGA (pi / 8);
static const double DURATION (2);
888: 887 2022/12/06(火)01:24 AAS
(続き)
int main ()
{
string gnuplot_path ("gnuplot");
FILE fp (popen (gnuplot_path.c_str (), "w"));
if (!fp)
return -1;
fprintf (fp, "reset\n");
fprintf (fp, "set yrange [-1:1]\n");
clock_t time0 (clock ());
for (double second (static_cast <double> (clock () - time0) / CLOCKS_PER_SEC);
second < DURATION; second = static_cast <double> (clock () - time0) / CLOCKS_PER_SEC) {
Series series;
for (size_t i (0), last ((MAX - MIN) / INTERVAL); i < last; ++ i) {
const double x (MIN + i * INTERVAL);
series.insert (make_pair (x, sin (x - PHI + OMEGA * second)));
}
fprintf (fp, "set title 't = %1.2f'\n", second);
fprintf (fp, "plot '-' title 'sin' with lines\n");
for (const Series::value_type &point: series)
fprintf (fp, "%f %f\n", point.first, point.second);
fprintf (fp, "e\n");
fflush (fp);
}
pclose (fp);
return 0;
}
889: 887 2022/12/06(火)01:34 AAS
書けなくなった
890
(3): 2022/12/06(火)08:10 AAS
>>887
mingw gnuplotの5.4はpipeの扱いにバグがあります.
最近修正されたのですがリリース版修正されるのは次のリリース(5.4.6)になります.
5.2のgnuplotを使うか
891
(3): 2022/12/06(火)08:12 AAS
890 途中でかきこんでしまいました.5.2.xを使うか5.5(開発版)を使うかです.

5.5(開発版)のバイナリは以下
http://tmacchant33.starfree.jp/gnuplot_bin.html
892: 887 2022/12/06(火)12:05 AAS
>>890,891
有難うございます
試してみまするる
893: 887 2022/12/06(火)12:08 AAS
>>890,891
このあとエラーとgnuplotのバージョン情報を貼ろうと思ったのですが
昨夜は全然書き込めなくなりました
バージョンはご懸念の通り5.4 patchlevel 5になります
不完全な書き込みにも関わらず情報提供をありがとうございます
894: 887 2022/12/06(火)12:57 AAS
>>890,891
ビンゴでした
Windows版は5.2.8にしたら意図通り動作しました
(ちなみにLinuxで動作していたのはDebianのstableのやつで5.4.1でした
5.4系列でパイプに問題があるのはWindows版だけかもしれません)
不完全な情報からご回答を頂きまして本当に有難うございました
895: 887 2022/12/10(土)15:26 AAS
Windowsで
tail -f hoge.gp | gnuplot
のようにしたいのですが
tail -fのように使えるコマンドってありますか?
スレ違いのような気もしますが一連ってことでお聞きします
896: 887 2022/12/10(土)21:02 AAS
pwshで以下のようにして出来ました
gc hoge.gp -tail 1 -wait | gnuplot
897
(1): 2022/12/11(日)22:19 AAS
msys2 や busybox-win32 などを使うのも手だと思います.
898: 887 2022/12/11(日)23:48 AAS
>>897
有難うございます
なるほどmsys2にtailが入ってるだろうから
それでも良さそうですね
899: 2022/12/12(月)11:40 AAS
Gnuplot plans: the start of version 6
https://sourceforge.net/p/gnuplot/mailman/message/37747332/

ソースのクローンの方法
git clone -b branch-6-0-stable git://git.code.sf.net/p/gnuplot/gnuplot-main

なお,5.4.6は2023年初旬にリリースされるようです.
900: 2022/12/12(月)22:53 AAS
Windows と cygwin の 6.0.0alpha のバイナリ
http://tmacchant33.starfree.jp/gnuplot600alpha_bin.html
901: 2022/12/13(火)11:24 AAS
何が変わるんだろ?
902: 2022/12/13(火)15:05 AAS
今年後半から開発版(5.5)に入ったwatch points, polar grid とfunction blockが入るのは
903: 2022/12/13(火)15:08 AAS
(途中ですみませんでした.)
が入るのは間違いないでしょう.いずれも魅力的な改変です.
6.0.0alphaにはsharpenという機能が入りました.
904: 2022/12/13(火)15:16 AAS
現バージョンって、プロシージャ的なプロットってできるんでしたっけ?
新しく機能追加するならそういうのの気もする
905
(1): 2022/12/13(火)16:00 AAS
プロシージャ的なプロットいう言葉がPython 的な関数ブロックで定義された
関数をプロットすることなら,最近開発版に実装されたfunction block ですね
6.0.0ではこれがリリース版で使えるようになります
906: 2022/12/13(火)17:18 AAS
6.0.0alphaのマニュアルのスナップショットを挙げておきます.
http://tmacchant33.starfree.jp/Files/gnuplot600alpha20221212.pdf

p24のNew features in version 6
を見ると新しい機能がわかります.
907: 2022/12/13(火)22:32 AAS
>>905さん
ありがとうございます。
自分が書いたプロシージャ的というのは、L-systemで表現されるみたいなルールベースのプロットという意味です
function blockを見てみましたがコードのモジュラー化みたいで、自分の思ってたのとは違うみたいでした。
でもこんな機能があるの初めて知りました

まぁ他の言語で数値を得て描画だけさせるという方法で可能だし、ソフトウェアの複雑化という意味で変な可能は実装しないほうが良いのかもしれないですが。
908: 2023/01/09(月)09:41 AAS
開発版のバージョンが6.1になりました
909
(1): 2023/01/29(日)21:18 AAS
竹の先生のページに最新の開発版の情報が紹介されています
整理されて書かれていますのでぜひご覧ください
http://takeno.iee.niit.ac.jp/~shige/unix/gnuplot/gpinfo-2023.html#info-20230125
910: 2023/01/30(月)10:26 AAS
>>909
関数いいな
もうgnuplotだけで立派なプログラム書けそうだな
CGライブラリの充実したスクリプト言語
911
(2): 2023/01/30(月)10:37 AAS
CGに強いスクリプト言語としてpostsciptに勝つには、あとは関数型プログラミングサポート(高階手続き)や名前空間、評価環境だろうけど

この辺の言語設計の基礎に手を入れると既存のスクリプトが色々壊れそうだから、やりすぎかね?
912: 2023/02/08(水)09:53 AAS
5.4.6が来週にはリリースされるようです.
5.4のいやバージョン5のラストリリースになる予定です.
https://sourceforge.net/p/gnuplot/mailman/message/37775397/

Changes in 5.4.6
================
* NEW set key {columns <exact no of columns>}
; set key {keywidth <exact width>}
* NEW XDG support
; startup file: $XDG_CONFIG_HOME/gnuplot/gnuplotrc
; history file: $XDG_STATE_HOME/gnuplot_history
; wxt configuration: $XDG_CONFIG_HOME/gnuplot/gnuplot-wxt.conf
* CHANGE remove "alldoc" build target
* CHANGE plot with polygons fillstyle empty really does mean empty
* FIX windows: various problems mixing piped input and stdin Bug #2491
* FIX x11: bad interactions of lt nodraw, bgnd and dash pattern Bug #2572
* FIX wxt: export-to-file widget should preserve line properties
* FIX svg: set initial default fill to "none"
* FIX png: back-compatibility with very old versions of gdlib Bug #2579
* FIX variable pointtype, pointsize in plot style yerrorlines
* FIX border color for polygons with variable fillcolor
* FIX definition followed by iteration in a plot command Bug #2580
* FIX parametric plot with filledcurves y1=<limit> Bug #1797
913: 2023/02/12(日)09:02 AAS
5.4.6がリリースされました
914: 2023/02/12(日)13:17 AAS
Gnuplot Q&A 掲示板 3537 に 5.4.6 のNEWSの訳読めます
915: 2023/02/21(火)18:29 AAS
5.4.6でXDGがサポートされましたが,wxGTK が2.8の場合うまくビルドできないようです.
https://sourceforge.net/p/gnuplot/bugs/2587/

開発版では修正済みだったのですが5.4.6へのXDGサポートのバックポート時に
反映されていなかったようです.
というわけで5.4.7が出るようです
916: 2023/03/07(火)10:55 AAS
New plot style "with sectors"
https://sourceforge.net/p/gnuplot/gnuplot-main/ci/c4bbbc2010af291cf678c8fbdcf83c1fd6e0d223/

次のgnuplot マニュアル2023/3/7 版 93ページ参照
http://tmacchant33.starfree.jp/Files/gnuplot610_20230307.pdf
デモは
http://www.gnuplot.info/demo/sectors.html
917: 2023/03/08(水)14:34 AAS
開発版のgnuplotをUbuntu(22.04)上でビルドする手順をまとめました
Debian系なら似たような手順を使えると思います
https://sourceforge.net/p/gnuplot/support-requests/282/
918
(1): 2023/03/11(土)01:34 AAS
>>911
そりゃスクリプト言語としてはpostscriptの方が優れてるし、言語仕様もしっかりしててドキュメントも多い
しかし誰でも何となくで書けるalgol-likeな言語であることが何よりも重要なんだわ
919: 2023/03/13(月)08:32 AAS
>>911 >>918
gnuplotはスクリプト型のグラフ作成ソフトでpostscript言語とは目指してるものが違うように思います.
比べるならばpython のmatplotlibでしょうか.
私は勝負グラフはmatplotlibに移行しました.
ただ,通常のプロットはgnuplotが手軽で利用しています.
920: 2023/03/15(水)13:24 AAS
5.4.6 Windows バイナリにfontconfig 関係のファイルを含むようにしました.
PANGOCAIRO_BACKENDをfontconfig(fc)に設定するときの警告をなくすためです
921: 2023/03/17(金)01:44 AAS
コルーチン、スレッド/プロセス管理、高階手続き、例外機構などpsの先進的だった機能もpython3系で追い付かれた感があるわな
当然エコシステムでも敵わないから、psの書き手はますます減りそうで寂しい
922: 2023/03/17(金)02:02 AAS
yieldとかあったな、本当に先進的
俺はgnuplotに吐かせたpsコードに引数処理、与えたファイルとストリームの読み書き、素直なデータのパースを書き加える程度

単に他の言語でラッパを書くとファイルが増えて面倒という理由だけど
923: 2023/03/18(土)21:48 AAS
皆さんpsの高度な機能使ってるんですね
自分は作成したらプリントするか、ベクター系のソフトで編集する位だけど、他の皆さんかどういう用途で使ってるのか想像つかないです
924: 2023/03/18(土)22:04 AAS
数式で表せる図形とか書いたことあるな
925: 2023/03/19(日)02:07 AAS
なるほど
フラクタルとか、難しい数式をビジュアル化するとか面白そうですね
926: 2023/03/28(火)15:33 AAS
標準配布のgnuplot環境には大抵ps処理系(組み込み、gs等インタプリタ)が含まれてるから確かに昔は重宝したけ

今のPC環境なら選択肢は無数にあるから好きな言語選べば良いと思うけどね
927: 2023/04/13(木)17:46 AAS
開発版の新機能について竹の先生が紹介されています.
http://takeno.iee.niit.ac.jp/~shige/unix/gnuplot/gpinfo-2023.html#info-20230407
928: 2023/05/19(金)10:17 AAS
5.4.7testing がでました

Changes in 5.4.7
================

* FIX pseudofiles '+','++' must ignore "set datafile columnheader" Bug #2585
* FIX data from an array must ignore "set datafile columnheader" Bug #2585
* FIX various problems with unbounded plot iteration Bug #2589
* FIX allow plot ... smooth acsplines with filledcurves Bug #2592
* FIX "plot title at {end|beginning}" belongs in KEYSAMPLE layer
* FIX handle empty string in last field of csv file
* FIX Handle nonlinear axes during contour generation Bug #2593
* FIX yerrorbars key sample should match bars in the plot Bug #2598
* FIX "plot with table" must skip all smoothing operations Bug #2610
* FIX cairolatex/epslatex: prevent doubled text in opaque textboxes
* FIX wxt: versions prior to 3.0 do not support XDG Bug #2587
* FIX wxt: fontscale and fontsize handling was inconsistent Bug #2373
* FIX tikz epslatex cairolatex: updated to work with TeXLive2023 Bug #2613
* FIX correctly report cardinality of an empty array is zero Bug #2616
* FIX ignore datafile separator when plotting from an array
* FIX combination of pm3d options "at b" or "at t" with "depthorder"
* FIX combination of 'autotitle columnhead' and 'using col("key")' Bug #2620
* FIX do not complain if XDG files are not found because no $HOME Bug #2623
* FIX windows terminal: arrow length corrected for aspect ratio Bug #2565
929: 2023/05/22(月)09:01 AAS
gnuplot 5.4.7 がリリースされました
https://sourceforge.net/projects/gnuplot/files/gnuplot/5.4.7/

これが今度こそ最後にVer.5のリリースとなり,次は6.0.0になると思います
930: 2023/05/25(木)16:29 AAS
`kittycairo` terminalが現在の開発版にくみこまれました

+" The `kittycairo` terminal generates in-window output on terminal emulators",
+" that support the kitty graphics protocol. The actual drawing is done via",
+" cairo, a 2D graphics library, and pango, a library for text rendering.",
+" The kitty protocol is an alternative to sixel graphics, with the advantage",
+" of support for 24-bit RGB colors and slightly lower required bandwidth to",
+" transfer the image data between computer and terminal in a remote session.",
+"",
+" Syntax:",
+" set terminal kittycairo",
+" {{no}enhanced} {mono|color}",
+" {font <font>} {fontscale <scale>}",
+" {linewidth <lw>} {rounded|butt|square} {dashlength <dl>}",
+" {background <rgbcolor>}",
+" {size <XX<YY>} {anchor|scroll}",
+"",
931: 2023/05/25(木)16:30 AAS
+" This terminal processes labels and other text using enhanced formatting",
+" by default. See `enhanced`.",
+"",
+" The width of all lines in the plot can be modified by the factor <lw>",
+" specified in `linewidth`. The font size can similarly be uniformly modified",
+" the scale factor provided by `fontscale`. For discussion of font and text",
+" encoding options, see the `pdfcairo` terminal."
+"",
+" The option `rounded` sets line caps and line joins to be rounded;",
+" `butt` is the default, producing butt caps and mitered joins.",
+"",
+" The size of the plot is given in screen pixels. By default each plot is",
+" drawn starting at the current cursor position and scrolls with the terminal",
+" text. `anchor` instead pins each plot to the top left of the terminal window.",
+" This is useful for animation or pseudo-mousing using the keyboard",
+" (see `pseudo-mousing`).",
932: 2023/06/15(木)14:47 AAS
5.4.8がでました.5.4.7でバージョン番号の扱いに誤りがあってその修正だけです.
933
(1): 2023/07/22(土)04:05 AAS
[0:26+2/3]の範囲で

- 0.4 * x + 48



64-x

で囲まれた領域を描画したいです。

plot sample [0:26+2/3] 64 - x with filledcurves above - 0.4 * x + 48 fc "yellow" notitle

と入力すると、

unexpected or unrecognized token: -

というエラーが出てきます。どのへんがおかしいでしょうか
934
(1): 2023/07/22(土)11:14 AAS
>>933
>unexpected or unrecognized token: -
なんてでないよ
935: 2023/07/22(土)14:11 AAS
>934

そうですか。私の環境のせいかもしれませんので、少し調べてみます。
ありがとうございました。
936: 2023/07/25(火)23:49 AAS
うちの環境は同じメッセージでたよ
aboveと0.4の間のマイナスのとこだって
937: 2023/07/26(水)01:20 AAS
plot [0:26+2/3] 64-x with filledcurves x1 fc "yellow" notitle, - 0.4 * x + 48 with filledcurves x1 lc "white" notitle
とかかな?
938
(1): 2024/03/15(金)17:28 AAS
gnuplot-6.0.0 が2023の12月末にでています
939: 2024/03/27(水)19:43 AAS
クイズ!カラオケ!つま先立ちショッピング!
940: 2024/03/27(水)20:08 AAS
今日は買い時じゃないか
IDなしだから
昨シーズン運が良かったんじゃないのにあかんのに
よくそんな意味でのコメント ありゃ最低や
941: 2024/03/31(日)21:55 AAS
>>938
multiplotの各プロットでreplotとかできるらしいのは良さげ。

ただTcl/TkとかでGUI作ってそっちにplotした方が柔軟性はある。x11限定だけど。
x11以外にもそういうこと(出力先を別アプリのウィンドウにする)できるのあるのかなぁ。
942: sage 2024/04/19(金)13:07 AAS
6.0.0のWindowsバイナリがリリースされました
943: 2024/05/30(木)12:34 AAS
6.0.1がリリースされました.Windowsバイナリもリリースされました.
944: 2024/06/04(火)22:33 AAS
ggplotに移行してたが
matplotlibに再移行
945: 2024/12/23(月)09:13 AAS
2024/12/20 ごろ6.0.2がアップロードされました.Windowsバイナリもアップロードしています.
946: 02/01(土)07:47 AAS
久しぶりにこのスレ見てみたら900番台いってるのな
947: 06/08(日)22:53 AAS
V6.0.3出ました
https://sourceforge.net/projects/gnuplot/files/gnuplot/6.0.3/
948: 06/09(月)16:19 AAS
gnuplot 6.0.3 がリリースされました.Windowsバイナリもアップロードされています
949: 06/24(火)16:14 AAS
グラフをsvg形式で出力すると
毎回 set output "ファイル名.svg"で指定しないと出力されたファイルがエラーを起こしてしまうのですが
何か対処法はありますか?
950: 06/24(火)21:14 AAS
意味が分かりません
set outputしないとファイルは出力されないのでは?
951
(1): 06/24(火)21:51 AAS
すみません言葉足らずでした

(諸々の設定とかは抜きで)
set output "hoge.svg"
plot "hogehoge.csv"
と言った具合で出力すると思うんですが

例えば、ここからグラフのレイアウトを変えた後に
通常なら再びplot "hogehoge.csv"をしてしまえば、
出力ファイルが上書きされて、何の問題もないと思うのですが

svgの場合はなぜか上書きされず、svgファイル内の末尾に追記する形で更新されてしまいファイルが壊れてしまうんです
これを解決するには毎回plotする前に、set outputを行わないといけなくて結構不便で……

設定かなにかで解決できるといいんですが、ご存知の方いらっしゃいませんかね
952
(1): 06/24(火)22:31 AAS
>>951
>例えば、ここからグラフのレイアウトを変えた後に
>通常なら再びplot "hogehoge.csv"をしてしまえば、
>出力ファイルが上書きされて、何の問題もないと思うのですが
その出力ファイルが上書きされない通常のterminalって何でしょうか?
953: 06/24(火)22:45 AAS
>>952
上書きしてくれて問題ないterminalはemfです
上書きしてくれなくて面倒なterminalはsvgですね

パワポとかワードで使用する時に扱いやすいファイルを探していて
上書きはしてくれるんですがemfだと不都合があったのでsvgを試してる感じです
954: 06/24(火)23:34 AAS
pdfcairoやepscairoやpostscriptも追記です
unset outputしたりset outputで新たなファイルを開くと
gnuplotは前のterminalの最後だと分かるのでそこでファイルを閉じます
unset outputやset outputなしに
そこがterminalの最後だとどうして分かるのですか?
emfって本当に上書きなんでしょうか?
955: 06/24(火)23:53 AAS
ふむ……本来はoutputであらためてファイルを指定することが必要ということなんですね
emfも上書きしているように見えているだけで、実際のところは違う挙動じゃないか?と……

結局のところは毎回output等の処理が必要そうですね、ありがとうございます
1-
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル

ぬこの手 ぬこTOP 0.027s