"pplt" → "plt"

This commit is contained in:
heyarne 2021-03-02 14:31:16 +00:00
commit 1ff1d972d5
7 changed files with 126 additions and 136 deletions

View file

@ -288,7 +288,7 @@
"plot_all([gdf, footprint],\n",
" [{'color': 'none', 'edgecolor': 'blue', 'alpha': 0.1, 'figsize': (16, 9)},\n",
" {'color': 'none', 'edgecolor': 'red'}])\n",
"pplt.title('Region of interest superimposed on all product tiles matching search criteria')"
"plt.title('Region of interest superimposed on all product tiles matching search criteria')"
]
},
{
@ -382,7 +382,7 @@
"plot_all([gdf.loc[:idx], footprint],\n",
" [{'facecolor': 'none', 'edgecolor': 'blue', 'alpha': 0.1},\n",
" {'facecolor': 'none', 'edgecolor': 'red'}])\n",
"pplt.title('Region of interest superimposed on selected products')"
"plt.title('Region of interest superimposed on selected products')"
]
},
{
@ -619,7 +619,7 @@
"metadata": {},
"outputs": [],
"source": [
"import matplotlib.pyplot as pplt\n",
"import matplotlib.pyplot as plt\n",
"import rasterio as r\n",
"from rasterio import plot as rplot\n",
"from rasterio.warp import calculate_default_transform, reproject, Resampling\n",
@ -862,7 +862,7 @@
" _, height, width = masked.shape\n",
" \n",
" # show the result\n",
" pplt.figure(figsize=(20,20))\n",
" plt.figure(figsize=(20,20))\n",
" rplot.show(masked,\n",
" transform=masked_transform,\n",
" title=f'Plot of {region_of_interest} using data between {start_date.strftime(\"%Y-%m-%d\")} and {end_date.strftime(\"%Y-%m-%d\")}')\n",