
これが私のコードです。
\resizebox{\textwidth}{!}{
\begin{tikzpicture}
\selectcolormodel{gray}
\begin{axis}[xlabel=Voltage,ylabel=Current,title=IV Characteristics of PV Module]
\node[label={Set 1}] at (axis cs:2,60){};
\node[label=Set 2] at (axis cs:2,150){};
\node[label=Set 3] at (axis cs:2,240){};
\node[label=Set 4] at (axis cs:2,305){};
\addplot table [x=v1,y=i1, col sep=comma,mark=none] {SolarCellIV.csv};
\addplot table [x=v2,y=i2, col sep=comma,mark=none] {SolarCellIV.csv};
\addplot table [x=v3,y=i3, col sep=comma,mark=none] {SolarCellIV.csv};
\addplot table [x=v4,y=i4, col sep=comma,mark=none] {SolarCellIV.csv};
\node at (axis cs:12,360) {Set 1: 44.9 degreeCelsius};
\end{axis}
\end{tikzpicture}}
テキストの代わりに摂氏度の記号を表示したいのですが、どうすればよいですか?
答え1
ただ使うだけ\textdegree{}C
\usepackage{textcomp}
注意:文書の序文に 記載する必要があります。
答え2
他に 2 つのオプションがあります。
$44.9^\circ$C
\SI{44.9}{\celsius} % \usepackage{siunitx}
私は 2 番目の方法を好みます (いずれにせよ siunitx が使用される場合)。
答え3
答え4
私はamsmath
パッケージを次のように使用します (25
と をC
必要なものに置き換えます)。
$25^\text{o}C
それは次のようになります:
25 ℃
実際の度記号によく似ていて、かなりシンプルだと思います。