I have a grid defined as 'g' of 2 rows and 2 columns, used 'GridSpec' function.
Then I have to create an axes, using plt.subplot function. The subplot must span the 1st row and 1st column of the defined grid 'g'.
My question is - subplot must span the 1st row and 1st column of the defined grid, where as I am defining g[0,:1] - How does this be used in grids? Basically by this slicing, how I am going to calculate grids. If someone can elaborate on this ..will appreciate in advance..Thanks
My code :-
g = gridspec.GridSpec(2,2)
axes1 = plt.subplot(g[0,:1],title='Custom Title')