- Matplotlib 2.x By Example
- Allen Yu Claire Chung Aldrin Yim
- 106字
- 2021-07-02 19:34:26
Color cycle
For quick plotting without having to set colors for each data series, Matplotlib uses a list of colors called the default property cycle, whereby each series is assigned one of the default colors in the cycle. In Matplotlib 2.0, the list has been changed from the original red, green, blue, cyan, magenta, yellow, and black, noted as ['b', 'g', 'r', 'c', 'm', 'y', 'k'], to the current category10 color palette introduced by the Tableau software. As implied by the name, the new palette has 10 distinct colors suitable for categorical display. The list can be accessed by importing Matplotlib and calling matplotlib.rcParams['axes.prop_cycle'] in Python.
推薦閱讀
- DB2 V9權(quán)威指南
- GAE編程指南
- Beginning Java Data Structures and Algorithms
- CockroachDB權(quán)威指南
- Python從小白到大牛
- 深入淺出Android Jetpack
- Python深度學(xué)習(xí):模型、方法與實現(xiàn)
- 基于SpringBoot實現(xiàn):Java分布式中間件開發(fā)入門與實戰(zhàn)
- 搞定J2EE:Struts+Spring+Hibernate整合詳解與典型案例
- 寫給大家看的Midjourney設(shè)計書
- Python Web自動化測試設(shè)計與實現(xiàn)
- 奔跑吧 Linux內(nèi)核
- Instant GLEW
- Mastering Python
- MySQL從入門到精通