Open philsw opened 1 year ago
Hi @philsw, I believe the issue here is that we use ax.set_aspect('equal')
to make the aspect ratio square (as is typical in Nyquist plots). You can override this by setting the aspect ratio in matplotlib to 'auto' which should allow the ratio to be defined by whatever figsize you specify instead
fig, ax = plt.subplots(figsize = (20,8))
plot_nyquist(Z, fmt='o', ax=ax, scale = 1)
plot_nyquist(Z_fit, fmt='-', ax=ax, scale = 1)
ax.set_aspect('auto')
Hello, I am not able to change the aspect ratio of the subplot generated by plot_nyquist function. The size can be altered, but the aspect ratio is always around 1:5, regardless of x and y in fig, ax = plt.subplots(figsize = (x,y)). I used readBioLogic funciton to read.mpt files and changed the equivalent circuit, otherwise the script is identical to the getting_started script. Strangely, the plot size and ratio can be altered in the getting_started script, but not in my script. Thanks so much for your help.
Full code: