You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
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:
The text was updated successfully, but these errors were encountered: