pgfplots/tikz のノード テキストに摂氏記号を挿入するにはどうすればよいでしょうか?

pgfplots/tikz のノード テキストに摂氏記号を挿入するにはどうすればよいでしょうか?

これが私のコードです。

\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

$^\circ$ほとんどはすでに述べられていますが、 とは\textdegree{}異なるシンボルを生成することに言及する価値があります。circ と textdegree

だから、

\usepackage{textcomp}
44.9 \textcelsius{}

または

\usepackage{siunitx}
\SI{44.9}{\celsius}

または、正確なタイプ設定が重要でない場合は、次のようにしても機能します。

$44.9\, ^\circ$C

中括弧を省略すると、\textdegree{}後ろのスペースは無視されます。\textdegree\ は同じ機能を果たします。

答え4

私はamsmathパッケージを次のように使用します (25と をC必要なものに置き換えます)。

$25^\text{o}C

それは次のようになります:

25 

実際の度記号によく似ていて、かなりシンプルだと思います。

関連情報