siavashk / pycpd

Pure Numpy Implementation of the Coherent Point Drift Algorithm
MIT License
513 stars 115 forks source link

UserWarning: This figure includes Axes that are not compatible with tight_layout #30

Closed aaman-ee closed 5 years ago

aaman-ee commented 5 years ago

Hi, when I try to run your examples in Pycharm (fish_deformable_2D.py), I get the following error: /snap/pycharm-professional/151/helpers/pycharm_matplotlib_backend/backend_interagg.py:64: UserWarning: This figure includes Axes that are not compatible with tight_layout, so results might be incorrect. self.figure.tight_layout() and only the initial figure is displayed correctly with all the iteration figures empty myplot1 myplot2

siavashk commented 5 years ago

This seems to be a compatibility issue between Pycharm and Matplotlib. You might want to try disabling the scientific plot window so that it would use the default backend:

File > Settings > Tools > Python > show plots in tool window

Alternatively, you can try removing the tight_layout option.

siavashk commented 5 years ago

Feel free to post a comment here if this does not solve your issue. I am closing it for now.