The TransportMap support team will be happy to help you out with questions ranging from theory on transport maps, to the installation and usage of the software TransportMaps.

I got an error "NameError: name 'mpl' is not defined" when I ran the "Diagnostics and unbiased sampling" in tutorial

0 votes

Hi,

I ran the "Diagnostics and unbiased sampling" in tutorial but I got an error "NameError: name 'mpl' is not defined" when I tried to implement the algorithm in [29] box.

The algorithm in [29] box:

fig = plt.figure(figsize=(6,6));
fig = DIAG.plotAlignedScatters(
    yt3[5000:7000,:], s=1, bins=50, vartitles=varstr,
    fig=fig, show_flag=False)
 
I would very appreciate if you can find some time to answer me.
Best,
Aaron
asked Aug 2, 2018 in usage by Aaron (12 points)

1 Answer

0 votes
 
Best answer

The error should be fixed in the version 2.0b2. Just do

pip install --upgrade TransportMaps

to upgrade to the new version.

answered Aug 2, 2018 by dabi (307 points)
selected Mar 9, 2019 by dabi
Thanks, it works now.

Best,

Aaron
...