简体   繁体   English

隐藏Matplotlib格子颜色

[英]Hide Matplotlib grid color

I'd like to hide the 3d grid background color and just display gridlines and axis labels, as it's currently the default gray color like this (Not allowed to embed images since this is a new account).我想隐藏 3d 网格背景颜色,只显示网格线和轴标签,因为它目前是默认的灰色(不允许嵌入图像,因为是一个新帐户)。 Thanks.谢谢。

For your case, you can set the background color to black.对于您的情况,您可以将背景颜色设置为黑色。

ax.set_facecolor("black")

https://matplotlib.org/3.5.0/gallery/color/color_demo.html#sphx-glr-gallery-color-color-demo-py https://matplotlib.org/3.5.0/gallery/color/color_demo.html#sphx-glr-gallery-color-color-demo-py

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM