Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Foundry Code Workbook 的控制台中显示 matplotlib 图的最佳方式是什么?
要matplotlib在代码工作簿的控制台中显示绘图,您需要运行命令来创建绘图并在同一命令中显示绘图。您可以使用以下示例尝试此操作:
matplotlib
>>> import matplotlib.pyplot as plt ... plt.scatter([1,2,3,4]), [1,2,3,4]) ... plt.show()