crossplot¶
petrophys.visualization.crossplot
Also available as petrophys.crossplot
- crossplot(
- data,
- x,
- y,
- color=_AUTO,
- *,
- top=None,
- bottom=None,
- chart=None,
- title=None,
- figsize=None,
- **options,
Crossplot two curves, with the chart their pair calls for.
The pair is recognised by its standard names, in either order, so a well’s own names work too (
TNPHis a neutron):x,ychart
"NPHI","RHOB"density-neutron, with sandstone, limestone and dolomite lines (porosity 0-40 %)
"PEF","RHOB"density-PEF, with quartz, calcite and dolomite lines and the anhydrite point
"N","M"M-N, from NPHI, RHOB and DT, with the quartz-calcite-dolomite triangle
"DTMAA","RHOMAA"matrix identification (MID)
porosity, deep resistivity
Pickett: log-log, lines of constant Sw
(
"PHIE","RDEP")(
chart="hingle": Hingle)porosity,
"SW"Buckles: lines of constant BVW
"PHI_Z","RQI"hydraulic flow units, lines of constant FZI
core porosity, core permeability
poro-perm, with the transform fitted to the
(
"PHIC","KH_CORE")plugs (
transform=your own, or None)any other pair
points, coloured by
color- Parameters:
data (Well, interpretation result, CoreData or flow-unit result) – What to plot. Core data (
core_data()) and a flow-unit result draw their own chart; a mapping{title: data}draws one panel each, side by side on shared axes (poro-perm:{title: (core, transform)}).x (str) – Curve names: the well’s own or standard names.
y (str) – Curve names: the well’s own or standard names.
color (str, optional) – Curve to colour the points by (
"DEPTH"for depth). Default: the chart’s own (GR on lithology charts, VCL on Pickett and Hingle, PERM on Buckles, depth on poro-perm);Nonefor none.top (float, optional) – Depth window, in the well’s depth unit.
bottom (float, optional) – Depth window, in the well’s depth unit.
chart (str, optional) – Force a chart:
"plain","nd","pef","mn","mid","pickett","hingle","buckles","flow_units"or"poro_perm".title (optional) – Title and size of the figure.
figsize (optional) – Title and size of the figure.
**options – The chart’s own settings:
rw,a,m,n,vcl_maxfor Pickett and Hingle;transformfor poro-perm;x_log,y_log(default: log for resistivity and permeability),xlim,ylimand the like for a plain crossplot.
- Returns:
.figand.ax;.show(),.save(path). At the end of a notebook cell it shows its figure.- Return type:
See also
petrophys.visualization.chartseach chart by name, with its own
defaultspickett_plot(result),nd_plot(well), …
Examples
>>> import petrophys as pp >>> well = pp.read(pp.sample("30_6-5")) >>> pp.crossplot(well, "NPHI", "RHOB", top=2841, bottom=2958) >>> pp.crossplot(pp.interpret(well), "PHIE", "RDEP", top=3223, bottom=3556)