<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          【Python】讓Python Matplotlib使用事半功倍!

          共 3004字,需瀏覽 7分鐘

           ·

          2022-11-22 11:55

          分享一款不錯(cuò)的Matplotlib可視化查詢(xún)手冊(cè),讓Python Matplotlib事半功倍!

          當(dāng)可視化時(shí),記不清楚圖形Marker名稱(chēng)、colormap名稱(chēng)、坐標(biāo)軸刻度設(shè)置、圖例設(shè)置等等時(shí),稍微掃描一眼該手冊(cè),直接YYDS。

          高清PNG獲取,見(jiàn)文末。


          下面簡(jiǎn)單介紹一下這個(gè)手冊(cè):

          0、圖中各位置設(shè)置

          這張圖能幫助更好的了解matplotlib中圖形結(jié)構(gòu)、Figure和axes之間的關(guān)系 ,關(guān)于Matplotlib圖形詳細(xì)結(jié)構(gòu):
          類(lèi)似MATLAB: 詳解Python Matplotlib(pyplot法)[1]
          面向?qū)ο螅?span style="font-size: 12px;">詳解Python Matplotlib(面向?qū)ο蠓?[2]


          1、標(biāo)記Marker設(shè)置

          包括marker的邊框 (edge)顏色、填充 (face)顏色、邊框線(xiàn)磅值、邊框size等等。更多關(guān)于marker設(shè)置:一文掌握Matplotlib marker使用[3]


          2、線(xiàn)line設(shè)置

          包括線(xiàn)填充色、線(xiàn)磅值、線(xiàn)頭 (cap style)形狀、線(xiàn)型等等。  更多關(guān)于line設(shè)置:一文掌握Matplotlib linestyle使用[4]


          3、多邊形使用設(shè)置


          4、坐標(biāo)軸刻度設(shè)置

          不添加刻度,主刻度、副刻度混合使用,科學(xué)計(jì)數(shù)法等等。關(guān)于刻度設(shè)置:詳解Matplotlib 坐標(biāo)軸|刻度值|刻度|標(biāo)題設(shè)置[5]


          5、圖例設(shè)置

          如何圖例個(gè)性化,??更多關(guān)于圖例:詳解Matplotlib圖例(legend)[6]


          6、配色選擇

          記不清楚colormap名稱(chēng),掃一眼即可,這里只是介紹了Matplotlib內(nèi)置colormap,更多介紹:

          • Python matplotlib-內(nèi)置單顏色(一)[7]
          • Python matplotlib-外部單顏色(二)[8]
          • Python matplotlib內(nèi)置colormap(三)[9]
          • Python matplotlib外部colormap(四)[10]
          • Python Seaborn顏色及colormap (五)[11]

          不一一介紹了~ ,有幫助求三連!

          -END-

          高清PNG獲取

          點(diǎn)擊關(guān)注「pythonic生物人」回復(fù)mp

          pythonic生物人」??系統(tǒng)分享數(shù)據(jù)科學(xué)干貨,下劃線(xiàn)點(diǎn)擊直達(dá)??:Python可視化、R可視化Python精進(jìn)、圖解統(tǒng)計(jì)學(xué)、機(jī)器學(xué)習(xí)科研等,一起來(lái)精進(jìn)吧~

          參考資料

          [1]

          詳解Python Matplotlib (pyplot法): https://mp.weixin.qq.com/s?__biz=MzUwOTg0MjczNw==&mid=2247509990&idx=1&sn=fdf5c950864f8ca3a1a0d1c1ae129d78&chksm=f90ee3b8ce796aae9365de7323382514931b5368b79059e6f7836c1ef9c68e9443dc31f73c04&token=1948616811&lang=zh_CN#rd

          [2]

          詳解Python Matplotlib (面向?qū)ο蠓?: https://mp.weixin.qq.com/s?__biz=MzUwOTg0MjczNw==&mid=2247504663&idx=1&sn=cb971c48f35f83562e6381a67ca85799&scene=21#wechat_redirect

          [3]

          一文掌握Matplotlib marker使用: https://mp.weixin.qq.com/s/xwFhWBXNgGi3p10bpTs0Jg

          [4]

          一文掌握Matplotlib linestyle使用: https://mp.weixin.qq.com/s/xwFhWBXNgGi3p10bpTs0Jg

          [5]

          詳解Matplotlib 坐標(biāo)軸|刻度值|刻度|標(biāo)題設(shè)置: https://mp.weixin.qq.com/s/LVU51b3HcYXircHQirlgcA

          [6]

          詳解Matplotlib圖例(legend): https://mp.weixin.qq.com/s/vh6W7-pOczoyc2Lqiiix0Q

          [7]

          Python matplotlib-內(nèi)置單顏色(一): https://mp.weixin.qq.com/s?__biz=MzUwOTg0MjczNw==&mid=2247484253&idx=1&sn=45002543ed2b320a139a0b724372cad6&chksm=f90d4703ce7ace151c99761ca0c52c1ed76fff2c3e92ac3c6b9a1131b04ec4ce9686be42cfdd&scene=21#wechat_redirect

          [8]

          Python matplotlib-外部單顏色(二): https://mp.weixin.qq.com/s?__biz=MzUwOTg0MjczNw==&mid=2247484291&idx=1&sn=22ff03a3be940883e8c639e2ec4bd581&chksm=f90d47ddce7acecba9fd2057cd5127abeb48cb0089fde39a0a2f75d965995970ce1d9bebf8a4&scene=21#wechat_redirect

          [9]

          Python matplotlib內(nèi)置colormap(三): https://mp.weixin.qq.com/s?__biz=MzUwOTg0MjczNw==&mid=2247484329&idx=1&sn=20ec36f7f5077221671b32d47c3412c8&chksm=f90d47f7ce7acee11449c5584a11a020cf05c27f7a60b9357bbdc35181cc7e8420c594d09fc5&scene=21#wechat_redirect

          [10]

          Python matplotlib外部colormap(四): https://mp.weixin.qq.com/s?__biz=MzUwOTg0MjczNw==&mid=2247500421&idx=1&sn=1e81cdfe414e6962c8162e0240a39363&chksm=f90e86dbce790fcdcf178462d0da911d8af6fde0cea6235fc55b5d40f086fdaced78830355c2&token=1948616811&lang=zh_CN#rd

          [11]

          Python Seaborn顏色及colormap (五): https://mp.weixin.qq.com/s/s926ITT9opbzans5-muDEg

          往期精彩回顧




          瀏覽 50
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  无码激情一区二区 | 亚洲欧美国产精品久久久久久久 | 99曰高清热视频 | 伊人大香蕉视频网 | 12一13女人毛片 |