[] Matplotlib度摂氏マーク記号
Matplotlib Degrees Celsius Mark Symbol
紙の出会いをプロットする前に、それは実際には非常に簡単です。
キーコードは次のとおりです。
ax.set_xlabel('Temperature ($^circ$C)')
完全なサンプルコードは次のとおりです。
# -*- coding: utf-8 -*- import matplotlib.pyplot as plt x = range(10,60,1) y = range(-100, 0, 2) fig = plt.figure() ax = fig.add_subplot(111) ax.plot(x,y) ax.set_xlabel('Temperature ($^circ$C)')
最終的な画像は次のとおりです。
思い出させる :他の特別な記号を使用するには、matplotlib
公式文書text
コンテンツセクションを参照してください。