Set custom width for tick labels
The Python code: import matplotlib.pyplot as plt x=[0,1,2,3,4,5] data1=[0,1,2,3,4,5] data2=[0.0,.001,.002,.003,.004,.005] axs=plt.figure(dpi=1200,figsize = (9,6)).add_subplot(1,1,1) axs.plot(x,data1) plt.show() axs=plt.figure(dpi=1200,figsize = (9,6)).add_subplot(1,1,1) axs.plot(x,data2) plt.show() produces two almost identical plots, except for the y-axis ticks: they are wider in the second plot ("0.0001" vs "1") and, hence, the plot is wider, with the actual diagram box being the same size. However, I would like to have the plots lined up exactly (e.g., for showing two plots on consecutive s
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.