Skip to content

Commit

Permalink
changed plot api
Browse files Browse the repository at this point in the history
  • Loading branch information
Azaya89 committed Feb 2, 2024
1 parent 676f8c0 commit bf8e7de
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions gull_tracking/gull_tracking.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,8 @@
"outputs": [],
"source": [
"import pandas as pd\n",
"import hvplot.pandas # noqa: adds hvplot method to pandas objects\n",
"from datashader.utils import lnglat_to_meters\n",
"\n",
"df = pd.read_csv('./data/HG_OOSTENDE-gps-2018.csv', usecols=['location-long', 'location-lat'])\n",
"df.columns = ['longitude', 'latitude']\n",
"df.loc[:,'longitude'], df.loc[:,'latitude'] = lnglat_to_meters(df.longitude, df.latitude)"
"import hvplot.pandas # noqa\n",
"from holoviews.util.transform import lon_lat_to_easting_northing as en_ll"
]
},
{
Expand All @@ -35,6 +31,10 @@
"metadata": {},
"outputs": [],
"source": [
"df = pd.read_csv('./data/HG_OOSTENDE-gps-2018.csv', usecols=['location-long', 'location-lat'])\n",
"df.columns = ['longitude', 'latitude']\n",
"df.loc[:,'longitude'], df.loc[:,'latitude'] = en_ll(df.longitude, df.latitude)\n",
"\n",
"df.hvplot.points(x='longitude', y='latitude', rasterize=True, tiles='EsriImagery',\n",
" cmap='fire', cnorm='eq_hist', width=800, height=800)"
]
Expand Down

0 comments on commit bf8e7de

Please sign in to comment.