mirror of
https://github.com/heyarne/earth-observation-for-journalism.git
synced 2026-05-06 19:13:40 +02:00
"pplt" → "plt"
This commit is contained in:
parent
5461777aea
commit
1ff1d972d5
7 changed files with 126 additions and 136 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue