Plotting Gallery#
PyGeoStat provides a comprehensive library of plotting functions for geostatistical data analysis and visualization. This gallery showcases the main plotting capabilities.
See also
For detailed documentation of each function, see the Plotting API Reference.
Statistical Plots#
histogram_plot
Standard histogram with optional CDF overlay and summary statistics.
histogram_plot (weighted)
Histogram with weighted data and custom styling.
histogram_plot (log scale)
Logarithmic histogram for skewed distributions.
histogram_plot_simulation
Compare multiple realizations against reference data.
probability_plot
Probability plot for distribution analysis.
qq_plot
Quantile-quantile plot for comparing distributions.
Scatter & Correlation Plots#
scatter_plot
Basic scatter plot with correlation statistics.
scatter_plots
Matrix of scatter plots for multiple variables.
scatter_plots_lu
Lower-upper triangle scatter plot matrix.
correlation_matrix_plot
Correlation matrix heatmap visualization.
Spatial Plots#
location_plot
Plot spatial data at sample locations.
slice_plot
2D slice through 3D spatial data.
grid_slice_plot
Gridded data slice visualization.
contour_plot
Contour plot for spatial data.
drill_plot
Drillhole log visualization.
Geostatistical Plots#
variogram_plot
Experimental and model variogram display.
accuracy_plot
Accuracy assessment for estimates.
validation_plot
Cross-validation results visualization.
pit_plot
Probability integral transform (PIT) plot.
Multivariate Analysis#
loadings_plot
Factor loadings visualization for PCA/FA.
Getting Started with Plotting#
Basic Example#
import pygeostat as gs
# Load example data
data = gs.ExampleData('oilsands')
# Create a histogram
gs.histogram_plot(data, var='Bitumen')
# Create a location plot
gs.location_plot(data, var='Bitumen',
x='Easting', y='Northing')
# Create a scatter plot
gs.scatter_plot(data, var1='Bitumen', var2='Fines')
Customizing Plots#
Configure default plotting styles using Parameters:
import pygeostat as gs
# Set global plotting parameters
gs.Parameters['plotting.cmap'] = 'viridis'
gs.Parameters['plotting.unit'] = 'm'
gs.Parameters['plotting.xname'] = 'Easting'
gs.Parameters['plotting.yname'] = 'Northing'
# All plots will now use these defaults
gs.location_plot(data, var='Grade')
Saving Figures#
import pygeostat as gs
# Create plot and get figure handle
fig, ax = gs.histogram_plot(data, var='Grade')
# Save to file
fig.savefig('histogram.png', dpi=300, bbox_inches='tight')
Next Steps#
Complete documentation of all plotting functions with parameters and examples.
Introduction to PyGeoStat workflows and basic usage.
Complete tutorials demonstrating PyGeoStat in real-world workflows.
Detailed documentation of all PyGeoStat classes and functions.