augmented-neural-odes icon indicating copy to clipboard operation
augmented-neural-odes copied to clipboard

multi_feature_plt aspect error

Open homocomputeris opened this issue 4 years ago • 1 comments

The cell

from viz.plots import multi_feature_plt
multi_feature_plt(feature_history, targets)

raises

---------------------------------------------------------------------------
NotImplementedError                       Traceback (most recent call last)
<ipython-input-26-0ca89ec1decb> in <module>
      1 from viz.plots import multi_feature_plt
      2 
----> 3 multi_feature_plt(feature_history, targets)

~/Code/augmented-neural-odes/viz/plots.py in multi_feature_plt(features, targets, save_fig)
    312                            labelbottom=False, right=False, left=False,
    313                            labelleft=False)
--> 314             ax.set_aspect(get_square_aspect_ratio(ax))
    315 
    316     fig.subplots_adjust(wspace=0.01)

/usr/lib/python3.8/site-packages/matplotlib/axes/_base.py in set_aspect(self, aspect, adjustable, anchor, share)
   1278 
   1279         if (not cbook._str_equal(aspect, 'auto')) and self.name == '3d':
-> 1280             raise NotImplementedError(
   1281                 'It is not currently possible to manually set the aspect '
   1282                 'on 3D axes')

NotImplementedError: It is not currently possible to manually set the aspect on 3D axes

so the notebook isn't reproduced.

scipy 1.4.1 numpy 1.18.1 torch 1.4.0 torchvision 0.5.0a0 matplotlib 3.1.3

homocomputeris avatar Feb 06 '20 09:02 homocomputeris

Hi, I just checked on my side and it runs fine with the following versions:

scipy 1.2.1 numpy 1.16.1 torch 1.0.1.post2 torchvision 0.2.1 matplotlib 3.0.2

This is a little weird since you are running more recent versions than me. I googled the error and it looks like this is a bug in the most recent version of matplotlib. Downgrading to an earlier version of matplotlib should solve the problem.

EmilienDupont avatar Feb 09 '20 17:02 EmilienDupont