可以查询matplotlib颜色周期的当前状态吗?换句话说,有没有一个函数get_cycle_state
的行为方式如下?
>>> plot(x1, y1)
>>> plot(x2, y2)
>>> state = get_cycle_state()
>>> print state
2
其中我期望状态是将在绘图中使用的下一种颜色的索引。或者,如果它返回下一个颜色(在上面的示例中,默认循环为“r”),也可以。
https://stackoverflow.com/questions/13831549
复制相似问题