我正在閱讀 matplotlib 的文檔。在“編碼風格”部分下,它說:查看本文檔和示例時,您會發現不同的編碼風格和使用模式。之后...在不同的風格中,有兩種是官方支持的。因此,這些是使用 matplotlib 的首選方式。對于 pyplot 風格...但是在該部分的其余部分中,他們從未明確解釋或提及“第二種”支持的編碼風格。他們談到了“MATLAB 風格”,但從上下文中不清楚這是指該pyplot風格(就像 MATLAB 一樣),或者它本身是否是一種單獨的風格。問題第二種支持的 matplotlib 編碼風格是什么,它與該風格有何關聯/不同pyplot?
2 回答


慕雪6442864
TA貢獻1812條經驗 獲得超5個贊
The next level down in the hierarchy is the first level of the object-oriented
interface, in which pyplot is used only for a few functions such as figure
creation, and the user explicitly creates and keeps track of the figure and axes
objects. At this level, the user uses pyplot to create figures, and through those
figures, one or more axes objects can be created. These axes objects are then used
for most plotting actions.
添加回答
舉報
0/150
提交
取消