Started using mpl_toolkits.basemap, while execution of code jupyter notebook not showing plot but while workin on google colab itis working fine

Viewed 26

Code was:

%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap

plt.figure(figsize=(8, 8))
m = Basemap(projection='ortho', resolution=None, lat_0=50, lon_0=-100)
m.bluemarble(scale=0.5);

This is what I am getting on google collab:
enter image description here

This is what I am getting in my local jupyter notebook:
enter image description here

0 Answers
Related