我正在尝试在“Pweave 兼容”.py 脚本中使用 Pweave 指定图形的大小:
#' do the imports
import matplotlib.pyplot as plt
#' normal figure
plt.figure(1)
plt.plot(range(30), color='k', linestyle='dashed', marker='o')
#' figure super wide
#+ fig = True, width = '24 cm'
plt.figure(2)
plt.plot(range(30), color='k', linestyle='dashed', marker='o')
但是在编译脚本后:
pypublish test.py
我只能见证 .html 文件中的数字是相同的,我希望它们具有不同的大小。
我想知道我做错了什么,或者即使支持(在 Pweave 文档中找不到特定示例或相关语句)