Closed Derek-original closed 1 year ago
It seems you are using PyCharm's "Scientific View", which does not allow updating of the figure. I suggest to turn off this feature in PyCharm (PyCharm preferences -> Tools -> Python Scientific -> Uncheck "Show plots in tool window"). Please let me know if this fixes the issue.
I am using Spyder, but this indeed directly solved the issue! Thank you for the quick response.
There is an issue with updating the resulting density plot every iteration in the compliance minimalization example
ex_complliance.py
. The only plot that is shown is the first iteration with a uniform density field.In the source file
io.py
the function_update_fig()
seems to be where this issue lies. When removing theif
statement containingplt.show(block==False)
, the final density plot is plotted correctly. The intermediate plots are still not shown (they are saved correctly however) but the final result is. Also, the objective and volume constraint interation graph is now shown.