Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plot labels from examples unclear #22

Closed
lichadezhang opened this issue Apr 30, 2021 · 1 comment
Closed

Plot labels from examples unclear #22

lichadezhang opened this issue Apr 30, 2021 · 1 comment

Comments

@lichadezhang
Copy link

Some graphs generated from the example code have unclear labels, see the attached image for an example
Aerodynamic_Coefficients

@planes
Copy link
Member

planes commented Apr 30, 2021

Hi!
This is an issue with the current version of matplotlib and SUAVE. Matplotlib, the package that SUAVE uses to plot figures, just changed their routines. You can see their writeup here.

The fix for this is simple. You can replace any line with this format
axes = fig.add_subplot(...

with
plt.subplot(....

If you have done a develop install, you should be able to just do a find and replace for the above in this file.

Another easy fix would be to change to matplotlib 3.3.4.

The next release of SUAVE will include these changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants