Spaces:
Running
Running
Commit ·
ef6749a
1
Parent(s): eefdec4
use o maker
Browse files- visualize.py +5 -5
visualize.py
CHANGED
|
@@ -70,7 +70,7 @@ def plot_global_map_static(df, lat_col='centre_lat', lon_col='centre_lon'):
|
|
| 70 |
df_clean = df_clean.dropna(subset=[lat_col, lon_col])
|
| 71 |
|
| 72 |
# Sample every 3rd item if too large
|
| 73 |
-
if len(df_clean) >
|
| 74 |
# Calculate step size to get approximately 50000 samples
|
| 75 |
step = 2
|
| 76 |
# step = max(1, len(df_clean) // 50000)
|
|
@@ -94,11 +94,11 @@ def plot_global_map_static(df, lat_col='centre_lat', lon_col='centre_lon'):
|
|
| 94 |
ax.scatter(
|
| 95 |
df_vis[lon_col],
|
| 96 |
df_vis[lat_col],
|
| 97 |
-
s=0.
|
| 98 |
-
c=
|
| 99 |
-
marker='
|
| 100 |
edgecolors='none',
|
| 101 |
-
alpha=0.
|
| 102 |
transform=ccrs.PlateCarree(),
|
| 103 |
label='Samples',
|
| 104 |
)
|
|
|
|
| 70 |
df_clean = df_clean.dropna(subset=[lat_col, lon_col])
|
| 71 |
|
| 72 |
# Sample every 3rd item if too large
|
| 73 |
+
if len(df_clean) > 250000:
|
| 74 |
# Calculate step size to get approximately 50000 samples
|
| 75 |
step = 2
|
| 76 |
# step = max(1, len(df_clean) // 50000)
|
|
|
|
| 94 |
ax.scatter(
|
| 95 |
df_vis[lon_col],
|
| 96 |
df_vis[lat_col],
|
| 97 |
+
s=0.2,
|
| 98 |
+
c="blue",
|
| 99 |
+
marker='o',
|
| 100 |
edgecolors='none',
|
| 101 |
+
# alpha=0.6,
|
| 102 |
transform=ccrs.PlateCarree(),
|
| 103 |
label='Samples',
|
| 104 |
)
|