Skip to content Skip to sidebar Skip to footer

Reduce Height Of Subplot In Matplotlib

I have the following figure composed of grid with 1 row and 2 columns. I would like to reduce the height of the subplot on the right side (3D PREDICTION) so that the chessboard pl

Solution 1:

In your code, I changed the line

viz2D.set_title('2D PREDICTION', color='white', size='xx-large')

with

viz2D.title.set_text('2D PREDICTION')
viz2D.title.set_color('white')

and similarly for viz3D as well.

Regarding the 3D view, I played a bit with camera with following line:

viz3D.view_init(10, 30) # elevation, azimuthal

With above modifications, I get the following plot:

enter image description here

Post a Comment for "Reduce Height Of Subplot In Matplotlib"