【发布时间】:2020-10-19 08:32:42
【问题描述】:
我正在使用 schemdraw 库来绘制电子模式,并且我想将显示窗口的名称从例如“图 1”更改为“XYZ 模式”。 有可能改变吗?我知道,schemdraw 库是基于 matplotlib 创建的,但我想尝试使用 matplotlib 的功能,但它不起作用。
你有什么想法吗?
问候, L.
【问题讨论】:
标签: python matplotlib window figure
我正在使用 schemdraw 库来绘制电子模式,并且我想将显示窗口的名称从例如“图 1”更改为“XYZ 模式”。 有可能改变吗?我知道,schemdraw 库是基于 matplotlib 创建的,但我想尝试使用 matplotlib 的功能,但它不起作用。
你有什么想法吗?
问候, L.
【问题讨论】:
标签: python matplotlib window figure
尝试使用以下方法
import matplotlib.pyplot as plt
import SchemDraw as schem
d=schem.Drawing(3,.5,0.1,12,'sans')
#...
fig,ax = plt.subplots(num='Schema of XYZ')
#you can also try
ax.set_title('Schema of ZYX')
d.draw(ax)
【讨论】: