Commit
·
7374d87
1
Parent(s):
f9508fc
feat: changed marker opacity on map plots
Browse files
climateqa/engine/talk_to_data/drias/plots.py
CHANGED
@@ -396,7 +396,7 @@ def plot_map_of_france_of_indicator_for_given_year(
|
|
396 |
colorscale=DRIAS_INDICATOR_TO_COLORSCALE[indicator],
|
397 |
zmin=min(indicators),
|
398 |
zmax=max(indicators),
|
399 |
-
marker_opacity=0.
|
400 |
marker_line_width=0,
|
401 |
colorbar_title=f"{indicator_label} ({unit})",
|
402 |
text=[f"{indicator_label}: {value:.2f} {unit}" for value in indicators], # Add hover text showing the indicator value
|
|
|
396 |
colorscale=DRIAS_INDICATOR_TO_COLORSCALE[indicator],
|
397 |
zmin=min(indicators),
|
398 |
zmax=max(indicators),
|
399 |
+
marker_opacity=0.7,
|
400 |
marker_line_width=0,
|
401 |
colorbar_title=f"{indicator_label} ({unit})",
|
402 |
text=[f"{indicator_label}: {value:.2f} {unit}" for value in indicators], # Add hover text showing the indicator value
|
climateqa/engine/talk_to_data/ipcc/plots.py
CHANGED
@@ -145,7 +145,7 @@ def plot_choropleth_map_of_country_indicator_for_specific_year(
|
|
145 |
colorscale=IPCC_INDICATOR_TO_COLORSCALE[indicator],
|
146 |
zmin=min(indicators),
|
147 |
zmax=max(indicators),
|
148 |
-
marker_opacity=0.
|
149 |
marker_line_width=0,
|
150 |
colorbar_title=f"{indicator_label} ({unit})",
|
151 |
text=[f"{indicator_label}: {value:.2f} {unit}" for value in indicators], # Add hover text showing the indicator value
|
|
|
145 |
colorscale=IPCC_INDICATOR_TO_COLORSCALE[indicator],
|
146 |
zmin=min(indicators),
|
147 |
zmax=max(indicators),
|
148 |
+
marker_opacity=0.7,
|
149 |
marker_line_width=0,
|
150 |
colorbar_title=f"{indicator_label} ({unit})",
|
151 |
text=[f"{indicator_label}: {value:.2f} {unit}" for value in indicators], # Add hover text showing the indicator value
|