geopfa.extrapolation.make_prediction_comparison_plot_2d

make_prediction_comparison_plot_2d(X_grid, Y_grid, Z_true, Z_pred, title=None)[source]

Plot side-by-side heatmaps comparing ground truth and predicted values on a shared color scale.

Parameters:
  • X_grid (numpy.ndarray) – 2-D meshgrid array of X coordinates, same shape as Z_true.

  • Y_grid (numpy.ndarray) – 2-D meshgrid array of Y coordinates, same shape as Z_true.

  • Z_true (numpy.ndarray) – 2-D array of ground truth values on the grid.

  • Z_pred (numpy.ndarray) – 2-D array of predicted values on the same grid.

  • title (str or None, optional) – Optional title prefix applied above both subplots.

Notes

  • Global vmin and vmax are computed jointly to ensure the two heatmaps use an identical color scale.

  • Plotting behavior matches the original function exactly.