Skip to content

Commit

Permalink
Plot any parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
burggraaff committed Apr 4, 2024
1 parent 085ff78 commit e872025
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plot_ensemble_parameter_single.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
args = parser.parse_args()

args.PARAMETER_NAME = args.output_dir.stem
args.PARAMETER = fpcup.parameters.pcse_inputs[args.PARAMETER_NAME]
args.PARAMETER = fpcup.parameters.all_parameters[args.PARAMETER_NAME]


### CONSTANTS
Expand Down Expand Up @@ -77,9 +77,11 @@ def number_of_replicates(data: fpcup.geo.gpd.GeoDataFrame, column: str) -> int:
summary_by_soiltype.groupby("geometry").plot.line(args.PARAMETER_NAME, output.name, ax=ax, alpha=0.5, legend=False)

# Add reference line for default value, if available
if hasattr(args.PARAMETER, "default"):
try:
for ax in axs.ravel():
ax.axvline(args.PARAMETER.default, color="black", linestyle="--", alpha=0.5)
except (TypeError, AttributeError):
pass

# Titles / labels
try:
Expand Down

0 comments on commit e872025

Please sign in to comment.