第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

matplotlib的兩種風(fēng)格是什么?

matplotlib的兩種風(fēng)格是什么?

qq_遁去的一_1 2022-06-14 09:52:44
我正在閱讀 matplotlib 的文檔。在“編碼風(fēng)格”部分下,它說(shuō):查看本文檔和示例時(shí),您會(huì)發(fā)現(xiàn)不同的編碼風(fēng)格和使用模式。之后...在不同的風(fēng)格中,有兩種是官方支持的。因此,這些是使用 matplotlib 的首選方式。對(duì)于 pyplot 風(fēng)格...但是在該部分的其余部分中,他們從未明確解釋或提及“第二種”支持的編碼風(fēng)格。他們談到了“MATLAB 風(fēng)格”,但從上下文中不清楚這是指該pyplot風(fēng)格(就像 MATLAB 一樣),或者它本身是否是一種單獨(dú)的風(fēng)格。問(wèn)題第二種支持的 matplotlib 編碼風(fēng)格是什么,它與該風(fēng)格有何關(guān)聯(lián)/不同pyplot?
查看完整描述

2 回答

?
長(zhǎng)風(fēng)秋雁

TA貢獻(xiàn)1757條經(jīng)驗(yàn) 獲得超7個(gè)贊

可以說(shuō),使用指南的這一部分在當(dāng)前形式下有點(diǎn)難以理解。然而,最近有一個(gè)更新(#14223),這可能會(huì)更清楚。可以在此處找到此預(yù)覽版:

https://matplotlib.org/devdocs/tutorials/introductory/usage.html#the-object-oriented-interface-and-the-pyplot-interface

如上所述,基本上有兩種使用 Matplotlib 的方法:

  • 顯式創(chuàng)建圖形和軸,并在它們上調(diào)用方法(“面向?qū)ο?(OO) 樣式”)。

  • 依靠 pyplot 自動(dòng)創(chuàng)建和管理圖形和坐標(biāo)軸,并使用 pyplot 函數(shù)進(jìn)行繪圖。


查看完整回答
反對(duì) 回復(fù) 2022-06-14
?
慕雪6442864

TA貢獻(xiàn)1812條經(jīng)驗(yàn) 獲得超5個(gè)贊

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.


查看完整回答
反對(duì) 回復(fù) 2022-06-14
  • 2 回答
  • 0 關(guān)注
  • 128 瀏覽
慕課專(zhuān)欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)