Closed h294liu closed 2 years ago
The second commit 7856911 fixes the problem that plots are not shown on jupyter notebook. This is probably caused by user's IPython configuration of the interactive mode. In this commit, I add "plt.ion()" to enable the interactive mode, thus plots can be shown. Reference is listed below. https://matplotlib.org/stable/users/interactive.html
The raster plot mismatch issue is fixed by adding "norm" instance to the plot function "rasterio.plot.show". Norm is used to assign each color to a bin. The bin list is based on the unique values of the raster data. References are listed below. https://www.earthdatascience.org/courses/scientists-guide-to-plotting-data-in-python/plot-spatial-data/customize-raster-plots/customize-matplotlib-raster-maps/ https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.imshow.html