C言語でGnuplotを使ってグラフを描けるようになるまでの備忘録
Gnuplotのインストールについて.筆者はガチ勢ではないので詳しいことは偉い人に聞いてほしい.
↓テストプログラムの実行についてはこちら
バージョン情報
OS
Windows10
バージョン 1903 (OS ビルド 18362.778)
![](https://mtkbirdman.com/wp-content/uploads/2022/10/c-gnuplot-install_00.png)
Visual Studio Code
バージョン1.44.2
![](https://mtkbirdman.com/wp-content/uploads/2022/10/c-gnuplot-install_01.png)
前準備(VS Code)
新しいプログラミング言語を始めるときに一番大変なのは環境構築だと思う
Gnuplotのインストール
参考にしたサイト
≫Windows PCへのgnuplotのインストール (2019年5月)
①gnuplot homepageを開き,最新バージョンンをダウンロードする.今回はVersion 5.2.8
![](https://mtkbirdman.com/wp-content/uploads/2022/10/c-gnuplot-install_02.png)
![](https://mtkbirdman.com/wp-content/uploads/2022/10/c-gnuplot-install_03.png)
![](https://mtkbirdman.com/wp-content/uploads/2022/10/c-gnuplot-install_04.png)
②ダウンロード先のフォルダを開き,gp528-win64-mingw.exeをダブルクリックして実行する
![](https://mtkbirdman.com/wp-content/uploads/2022/10/c-gnuplot-install_05.png)
③適当にクリックしまくる
![](https://mtkbirdman.com/wp-content/uploads/2022/10/c-gnuplot-install_06.png)
![](https://mtkbirdman.com/wp-content/uploads/2022/10/c-gnuplot-install_07.png)
![](https://mtkbirdman.com/wp-content/uploads/2022/10/c-gnuplot-install_08.png)
インストール先のフォルダは「C:\gnuplot」にしておく
![](https://mtkbirdman.com/wp-content/uploads/2022/10/c-gnuplot-install_09.png)
![](https://mtkbirdman.com/wp-content/uploads/2022/10/c-gnuplot-install_10.png)
![](https://mtkbirdman.com/wp-content/uploads/2022/10/c-gnuplot-install_11.png)
下にスクロールして「実行ファイルのディレクトリをPATH環境変数に追加する」にチェックを入れる
![](https://mtkbirdman.com/wp-content/uploads/2022/10/c-gnuplot-install_12.png)
![](https://mtkbirdman.com/wp-content/uploads/2022/10/c-gnuplot-install_13.png)
![](https://mtkbirdman.com/wp-content/uploads/2022/10/c-gnuplot-install_14.png)
![](https://mtkbirdman.com/wp-content/uploads/2022/10/c-gnuplot-install_15.png)
![](https://mtkbirdman.com/wp-content/uploads/2022/10/c-gnuplot-install_16.png)
これでGnuplotがインストールできて,PATHも通っているはず
まとめ
次回はGnuplotを使ってグラフを描画するサンプルコードを書いてみようと思う
↓次の記事
↓関連記事
コメント