14 lines
383 B
Python
14 lines
383 B
Python
"""matplotlib 绘图样式(本地层专用)。"""
|
|
|
|
import matplotlib.pyplot as plt
|
|
|
|
|
|
def setup_style():
|
|
plt.rcParams["font.sans-serif"] = [
|
|
"PingFang SC", "Hiragino Sans GB", "Arial Unicode MS", "SimHei", "sans-serif",
|
|
]
|
|
plt.rcParams["axes.unicode_minus"] = False
|
|
plt.rcParams["figure.dpi"] = 120
|
|
plt.rcParams["savefig.bbox"] = "tight"
|
|
return plt
|