compare_wells

petrophys.visualization.compare_wells

compare_wells(items, curves, *, top=None, bottom=None, figsize=None, labels=None)[source]

Draw curves of several wells in one figure, each curve in its own track.

Curves are found by the well’s own name or a standard name ("GR", "RDEP", "PHIE"…), as in a single-well plot, and converted to standard units as a single-well plot draws them (percent porosity to v/v, kg/m3 to g/cm3, …). Each track keeps the single-well plot’s scale for its curve (GR 0-150 API, RHOB 1.95-2.95 g/cc, Sw 1-0, resistivity 0.2-2000 ohm.m logarithmic, …), so wells and runs compare on the scales a log plot uses; a curve the layout does not know spans the wells’ 0.5-99.5 percentiles. A curve identical in every run is drawn once, in black. Depths are in the first well’s depth unit; a well logged in the other unit is converted. top and bottom bound the depth axis. warnings names the wells without a curve, and curves whose units still differ after conversion. labels name the lines (default: the well names), so runs of one well can be compared; a number of labels other than the number of wells raises ValueError. figsize is the figure size in inches (default: 3.2 in per curve, at least 6 in, by 11 in). Returns a WellComparisonPlot.

Parameters:
Return type:

WellComparisonPlot