Adjusting gridlines on a 3D Matplotlib figure

前端 未结 4 2188
感动是毒
感动是毒 2021-02-15 03:05

I\'m getting ready for a presentation and I have some example figures of 3D matplotlib figures. However, the gridlines are too light to see on the projected images.

4条回答
  •  温柔的废话
    2021-02-15 04:05

    If to lighten the background of grid, can use setting the pane color more light (eg:white) using Axes3DSubplot object as below.

    ax.w_xaxis.pane.set_color('w');
    ax.w_yaxis.pane.set_color('w');
    ax.w_zaxis.pane.set_color('w');
    

    Or else to highlight the grid lines further, can updated grid color parameter of plot.

    plt.rcParams['grid.color'] = "black"
    

提交回复
热议问题