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

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

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 (307 points)
selected Mar 9, 2019 by dabi
Thanks, it works now.

Best,

Aaron