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
Rendering matplotlib figures inside some methods can cause delays and unexpected behavior. This also appears to have caused some random time-out failures in unit tests. The issue can be addressed by explicitly exposing the "show" keyword in all methods that return Matplotlib.pyplot Figure objects.
Code sample expected
See for example pyaedt.generic.plot. The method plot_2d_chart() generates a plot if the snapshot_path is not passed as an argument. The behavior in plot_polar_chart() is different. It will render the plot if the keyword show=True. The behavior should be consistent cross methods and show should be exposed for all methods that return Matplotlib Figure objects.
Useful links and references
No response
The text was updated successfully, but these errors were encountered:
@dcrawforAtAnsys FYI I just started working on #4702 to ease our way of working with plotting figures. Current changes are a WIP (as I didn't looked at the impact on the documentation side) but they should ease the way of testing plot methods in our CI CD. The main idea is to use the backend Agg which is a non-GUI backend and would avoid us having test ending in timeout as no one closed the opened figure!
Description of the current limitations
Rendering matplotlib figures inside some methods can cause delays and unexpected behavior. This also appears to have caused some random time-out failures in unit tests. The issue can be addressed by explicitly exposing the "show" keyword in all methods that return Matplotlib.pyplot
Figure
objects.Code sample expected
See for example
pyaedt.generic.plot
. The methodplot_2d_chart()
generates a plot if thesnapshot_path
is not passed as an argument. The behavior inplot_polar_chart()
is different. It will render the plot if the keywordshow=True
. The behavior should be consistent cross methods andshow
should be exposed for all methods that return Matplotlib Figure objects.Useful links and references
No response
The text was updated successfully, but these errors were encountered: