2026/04/23

This commit is contained in:
2026-04-23 11:28:21 +09:00
parent d4a4d8feba
commit 65784275b8
10 changed files with 1968 additions and 8 deletions
File diff suppressed because it is too large Load Diff
+129
View File
@@ -0,0 +1,129 @@
% GNUPLOT: LaTeX picture with Postscript
\begingroup
\fontfamily{Arial}%
\selectfont
\makeatletter
\providecommand\color[2][]{%
\GenericError{(gnuplot) \space\space\space\@spaces}{%
Package color not loaded in conjunction with
terminal option `colourtext'%
}{See the gnuplot documentation for explanation.%
}{Either use 'blacktext' in gnuplot or load the package
color.sty in LaTeX.}%
\renewcommand\color[2][]{}%
}%
\providecommand\includegraphics[2][]{%
\GenericError{(gnuplot) \space\space\space\@spaces}{%
Package graphicx or graphics not loaded%
}{See the gnuplot documentation for explanation.%
}{The gnuplot epslatex terminal needs graphicx.sty or graphics.sty.}%
\renewcommand\includegraphics[2][]{}%
}%
\providecommand\rotatebox[2]{#2}%
\@ifundefined{ifGPcolor}{%
\newif\ifGPcolor
\GPcolortrue
}{}%
\@ifundefined{ifGPblacktext}{%
\newif\ifGPblacktext
\GPblacktexttrue
}{}%
% define a \g@addto@macro without @ in the name:
\let\gplgaddtomacro\g@addto@macro
% define empty templates for all commands taking text:
\gdef\gplbacktext{}%
\gdef\gplfronttext{}%
\makeatother
\ifGPblacktext
% no textcolor at all
\def\colorrgb#1{}%
\def\colorgray#1{}%
\else
% gray or color?
\ifGPcolor
\def\colorrgb#1{\color[rgb]{#1}}%
\def\colorgray#1{\color[gray]{#1}}%
\expandafter\def\csname LTw\endcsname{\color{white}}%
\expandafter\def\csname LTb\endcsname{\color{black}}%
\expandafter\def\csname LTa\endcsname{\color{black}}%
\expandafter\def\csname LT0\endcsname{\color[rgb]{1,0,0}}%
\expandafter\def\csname LT1\endcsname{\color[rgb]{0,1,0}}%
\expandafter\def\csname LT2\endcsname{\color[rgb]{0,0,1}}%
\expandafter\def\csname LT3\endcsname{\color[rgb]{1,0,1}}%
\expandafter\def\csname LT4\endcsname{\color[rgb]{0,1,1}}%
\expandafter\def\csname LT5\endcsname{\color[rgb]{1,1,0}}%
\expandafter\def\csname LT6\endcsname{\color[rgb]{0,0,0}}%
\expandafter\def\csname LT7\endcsname{\color[rgb]{1,0.3,0}}%
\expandafter\def\csname LT8\endcsname{\color[rgb]{0.5,0.5,0.5}}%
\else
% gray
\def\colorrgb#1{\color{black}}%
\def\colorgray#1{\color[gray]{#1}}%
\expandafter\def\csname LTw\endcsname{\color{white}}%
\expandafter\def\csname LTb\endcsname{\color{black}}%
\expandafter\def\csname LTa\endcsname{\color{black}}%
\expandafter\def\csname LT0\endcsname{\color{black}}%
\expandafter\def\csname LT1\endcsname{\color{black}}%
\expandafter\def\csname LT2\endcsname{\color{black}}%
\expandafter\def\csname LT3\endcsname{\color{black}}%
\expandafter\def\csname LT4\endcsname{\color{black}}%
\expandafter\def\csname LT5\endcsname{\color{black}}%
\expandafter\def\csname LT6\endcsname{\color{black}}%
\expandafter\def\csname LT7\endcsname{\color{black}}%
\expandafter\def\csname LT8\endcsname{\color{black}}%
\fi
\fi
\setlength{\unitlength}{0.0500bp}%
\ifx\gptboxheight\undefined%
\newlength{\gptboxheight}%
\newlength{\gptboxwidth}%
\newsavebox{\gptboxtext}%
\fi%
\setlength{\fboxrule}{0.5pt}%
\setlength{\fboxsep}{1pt}%
\definecolor{tbcol}{rgb}{1,1,1}%
\begin{picture}(5952.00,4250.00)%
\gplgaddtomacro\gplbacktext{%
\colorrgb{0.00,0.00,0.00}%%
\put(744,768){\makebox(0,0)[r]{\strut{}$-5$}}%
\colorrgb{0.00,0.00,0.00}%%
\put(744,1231){\makebox(0,0)[r]{\strut{}$0$}}%
\colorrgb{0.00,0.00,0.00}%%
\put(744,1694){\makebox(0,0)[r]{\strut{}$5$}}%
\colorrgb{0.00,0.00,0.00}%%
\put(744,2157){\makebox(0,0)[r]{\strut{}$10$}}%
\colorrgb{0.00,0.00,0.00}%%
\put(744,2620){\makebox(0,0)[r]{\strut{}$15$}}%
\colorrgb{0.00,0.00,0.00}%%
\put(744,3083){\makebox(0,0)[r]{\strut{}$20$}}%
\colorrgb{0.00,0.00,0.00}%%
\put(744,3546){\makebox(0,0)[r]{\strut{}$25$}}%
\colorrgb{0.00,0.00,0.00}%%
\put(744,4009){\makebox(0,0)[r]{\strut{}$30$}}%
\colorrgb{0.00,0.00,0.00}%%
\put(2346,528){\makebox(0,0){\strut{}1k}}%
\colorrgb{0.00,0.00,0.00}%%
\put(3042,528){\makebox(0,0){\strut{}3k}}%
\colorrgb{0.00,0.00,0.00}%%
\put(3804,528){\makebox(0,0){\strut{}10k}}%
\colorrgb{0.00,0.00,0.00}%%
\put(4500,528){\makebox(0,0){\strut{}30k}}%
\colorrgb{0.00,0.00,0.00}%%
\put(5262,528){\makebox(0,0){\strut{}100k}}%
\colorrgb{0.00,0.00,0.00}%%
\put(888,528){\makebox(0,0){\strut{}$100$}}%
}%
\gplgaddtomacro\gplfronttext{%
\csname LTb\endcsname%%
\put(2472,3826){\makebox(0,0)[r]{\strut{}Unadjusted}}%
\csname LTb\endcsname%%
\put(2472,3586){\makebox(0,0)[r]{\strut{}Adjusted}}%
\csname LTb\endcsname%%
\put(228,2388){\rotatebox{-270.00}{\makebox(0,0){\strut{}Amplitude (dB)}}}%
\put(3203,168){\makebox(0,0){\strut{}Frequency (Hz)}}%
}%
\gplbacktext
\put(0,0){\includegraphics[width={297.60bp},height={212.50bp}]{./assets/a-1/exp1-bode}}%
\gplfronttext
\end{picture}%
\endgroup
+7
View File
@@ -0,0 +1,7 @@
100, -0.11938231771144642
300, -0.13084884035106228
1000.0, -0.10981530535745274
3000.0, 0.009699486924266854
10000.0, 1.010457287170518
30000.0, 5.813692008657903
100000.0, 22.629000404448508
+7
View File
@@ -0,0 +1,7 @@
100, -0.11938231771144642
300, 0.17395049078367358
1000.0, 0.7685164726618712
3000.0, 2.0711059211817617
10000.0, 3.6629685926623363
30000.0, 8.466203314149721
100000.0, 25.36059471122112
+27
View File
@@ -0,0 +1,27 @@
set output "exp1-bode.tex"
#set output "exp1-bode.png"
set encoding utf8
set terminal epslatex color font "Arial,12" fontscale 1.0 size 10.5cm,7.5cm
#set terminal png font "Arial,12" size 1800,1000
set style data lines
set style line 1 linetype 1 linewidth 1 linecolor rgb "red"
set style line 2 linetype 1 linewidth 1 linecolor rgb "blue"
set style line 91 linetype 1 linewidth 1 linecolor rgb "black"
set style line 92 linetype 1 linewidth 0.5 linecolor rgb "gray20"
set style line 93 linetype 1 linewidth 0.5 linecolor rgb "gray60"
set border ls 91
set tic scale 0.8,0.5
set grid xtics,mxtics ls 92, ls 93
set grid ytics,mytics ls 92, ls 93
set key left top
set log x
set xrange [1e2:1.5e5]
set xlabel "Frequency (Hz)"
set ylabel "Amplitude (dB)"
set xtics add ("1k" 1e3, "3k" 3e3, "10k" 1e4, "30k" 3e4, "100k" 1e5)
plot "exp1-data-unadjusted.txt" ls 1 smooth bezier title "Unadjusted", "exp1-data-adjusted.txt" ls 2 smooth bezier title "Adjusted"