bluebonnet.plotting

Ease plotting production and fluid flow information.

Attributes

Classes

SquareRootScale

ScaleBase class for generating square root scale.

Functions

plot_pseudopressure(→ matplotlib.pyplot.Axes)

Plot pseudopressure versus distance over time.

plot_recovery_rate(→ matplotlib.pyplot.Axes)

Plot recovery rate over time.

plot_recovery_factor(→ matplotlib.pyplot.Axes)

Plot cumulatie recovery over time.

Module Contents

bluebonnet.plotting.Reservoir
class bluebonnet.plotting.SquareRootScale(axis, **kwargs)[source]

Bases: matplotlib.scale.ScaleBase

ScaleBase class for generating square root scale.

name = 'squareroot'
set_default_locators_and_formatters(axis)[source]

Set major and minor locators and formatters.

limit_range_for_scale(vmin, vmax, minpos)[source]

Do not allow negative values.

class SquareRootTransform(shorthand_name=None)[source]

Bases: matplotlib.transforms.Transform

Transform from linear to square root position.

input_dims = 1

The number of input dimensions of this transform. Must be overridden (with integers) in the subclass.

output_dims = 1

The number of output dimensions of this transform. Must be overridden (with integers) in the subclass.

is_separable = True

True if this transform is separable in the x- and y- dimensions.

transform_non_affine(a)[source]

Actual transform.

inverted()[source]

Inverse transform.

class InvertedSquareRootTransform(shorthand_name=None)[source]

Bases: matplotlib.transforms.Transform

Inverted square-root transform.

input_dims = 1

The number of input dimensions of this transform. Must be overridden (with integers) in the subclass.

output_dims = 1

The number of output dimensions of this transform. Must be overridden (with integers) in the subclass.

is_separable = True

True if this transform is separable in the x- and y- dimensions.

transform(a)[source]

Square everything.

inverted()[source]

Square root it. (Inverse of inverse).

get_transform()[source]

Get square root transform.

bluebonnet.plotting.plot_pseudopressure(reservoir: Reservoir, every: int = 200, rescale: bool = False, ax: matplotlib.pyplot.Axes = None, x_max: float = 1, y_max: float | None = None, plot_kwargs: dict[str, Any] | None = None) matplotlib.pyplot.Axes[source]

Plot pseudopressure versus distance over time.

Parameters:
  • reservoir (Reservoir) – simulated reservoir

  • every (int, optional) – timesteps between a plotted pseudopressure profile, by default 200

  • rescale (bool, optional) – if true, rescale pseudopressure by initial value, by default False

  • ax (plt.Axes, optional) – axes to plot on, by default None

  • x_max (float, optional) – maximum distance to plot, by default 1

  • y_max (float | None, optional) – maximum pseudopressure to plot, by default None

  • plot_kwargs (dict[str,Any] | None, optional) – arguments to pass to the plotting routine

Returns:

pseudopressure plotted

Return type:

plt.Axes

bluebonnet.plotting.plot_recovery_rate(reservoir: Reservoir, ax: matplotlib.pyplot.Axes | None = None, change_ticks: bool = False, plot_kwargs: dict[str, Any] | None = None) matplotlib.pyplot.Axes[source]

Plot recovery rate over time.

Parameters:
  • reservoir (Reservoir) – simulated reservoir

  • ax (plt.Axes | None, optional) – axes to plot on, by default None

  • change_ticks (bool, optional) – if true, set xticks, by default False

  • plot_kwargs (dict[str,Any] | None, optional) – arguments to pass to the plotting routine

Returns:

recovery rate, plotted

Return type:

plt.Axes

bluebonnet.plotting.plot_recovery_factor(reservoir: Reservoir, ax: matplotlib.pyplot.Axes | None = None, change_ticks: bool = False, plot_kwargs: dict[str, Any] | None = None) matplotlib.pyplot.Axes[source]

Plot cumulatie recovery over time.

Parameters:
  • reservoir (Reservoir) – simulated reservoir

  • ax (plt.Axes | None, optional) – axes to plot on, by default None

  • change_ticks (bool, optional) – if true, set xticks, by default False

  • plot_kwargs (dict[str,Any] | None, optional) – arguments to pass to the plotting routine

Returns:

recovery rate, plotted

Return type:

plt.Axes