Spaces:
Sleeping
Sleeping
Inverst colormaps
Browse files
app.py
CHANGED
|
@@ -109,7 +109,7 @@ def get_cached_precursor_map(variable_name, season, region, vmax):
|
|
| 109 |
plot = (filtered.hvplot.polygons(
|
| 110 |
crs=ccrs.PlateCarree(),
|
| 111 |
color='variable_level',
|
| 112 |
-
cmap='
|
| 113 |
colorbar=False,
|
| 114 |
clim=(-vmax, vmax),
|
| 115 |
projection=ccrs.PlateCarree(),
|
|
@@ -307,7 +307,7 @@ class CMIPApp(param.Parameterized):
|
|
| 307 |
def get_value_map(self):
|
| 308 |
# Debug print to help identify issues in single model view
|
| 309 |
# print(f"DEBUG: get_value_map for {self.model} {self.season} {self.term}")
|
| 310 |
-
return self._render_map_base(self.term, '
|
| 311 |
f"{' + '.join(self.source)} {self.term} (%)",
|
| 312 |
self.v_map_s, self.map_r)
|
| 313 |
|
|
@@ -1023,7 +1023,7 @@ class CMIPApp(param.Parameterized):
|
|
| 1023 |
dummy_data = pd.DataFrame({'x': [0, 1], 'y': [0, 0], 'z': [-1, 1]})
|
| 1024 |
dummy_cbar = dummy_data.hvplot.heatmap(
|
| 1025 |
x='x', y='y', C='z',
|
| 1026 |
-
cmap='
|
| 1027 |
clim=(-1, 1),
|
| 1028 |
colorbar=True,
|
| 1029 |
alpha=0,
|
|
|
|
| 109 |
plot = (filtered.hvplot.polygons(
|
| 110 |
crs=ccrs.PlateCarree(),
|
| 111 |
color='variable_level',
|
| 112 |
+
cmap='RdBu_r',
|
| 113 |
colorbar=False,
|
| 114 |
clim=(-vmax, vmax),
|
| 115 |
projection=ccrs.PlateCarree(),
|
|
|
|
| 307 |
def get_value_map(self):
|
| 308 |
# Debug print to help identify issues in single model view
|
| 309 |
# print(f"DEBUG: get_value_map for {self.model} {self.season} {self.term}")
|
| 310 |
+
return self._render_map_base(self.term, 'RdBu_r', (-self.vmax, self.vmax),
|
| 311 |
f"{' + '.join(self.source)} {self.term} (%)",
|
| 312 |
self.v_map_s, self.map_r)
|
| 313 |
|
|
|
|
| 1023 |
dummy_data = pd.DataFrame({'x': [0, 1], 'y': [0, 0], 'z': [-1, 1]})
|
| 1024 |
dummy_cbar = dummy_data.hvplot.heatmap(
|
| 1025 |
x='x', y='y', C='z',
|
| 1026 |
+
cmap='RdBu_r',
|
| 1027 |
clim=(-1, 1),
|
| 1028 |
colorbar=True,
|
| 1029 |
alpha=0,
|