I created a scatter plot which has equal min, max, steps for both x and y axis. However the result keeps making my graph look rectangle rather than a square. How can I fix this?
'''
ax = ctrl_ra.plot.scatter(x='Control', y='Infection(Ra)', color='black', alpha=0.5)
ax2 = df_sig.plot.scatter(ax=ax, x= 'Control', y='Infection(Ra)', color='red', alpha=0.5, s=5)
#Set the x-axis and y-axis scales
ax.set_xticks(np.arange(0,21,5))
ax.set_yticks(np.arange(0,21,5))
ax2.set_xticks(np.arange(0,21,5))
ax2.set_yticks(np.arange(0,21,5))
plt.show()
'''
This is what I got when I ran my code.
At first I thought it was the axis scale and/or size but it wasn't so I'm not sure where to go about to fix this problem.
Any help is appreciated. Thank you.