[英]matplotlib bar plot fill with black texture
The matplotlib.pyploy.bar
object has the property hatch
, which controls the kind of thing you are after. matplotlib.pyploy.bar
对象具有hatch
属性,该属性控制您所需要的东西。
Check out the doc for more info https://matplotlib.org/devdocs/api/_as_gen/matplotlib.pyplot.bar.html 查看文档以获取更多信息https://matplotlib.org/devdocs/api/_as_gen/matplotlib.pyplot.bar.html
There is a really nice example of this in the matplotlib docs. matplotlib文档中有一个非常好的示例。 https://matplotlib.org/examples/pylab_examples/hatch_demo.html
https://matplotlib.org/examples/pylab_examples/hatch_demo.html
You may need to tweak the example to match your specific neads though. 但是,您可能需要调整示例以匹配您的特定需求。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.