bluebonnet.plotting¶
Ease plotting production and fluid flow information.
Attributes¶
Classes¶
ScaleBase class for generating square root scale. |
Functions¶
|
Plot pseudopressure versus distance over time. |
|
Plot recovery rate over time. |
|
Plot cumulatie recovery over time. |
Module Contents¶
- bluebonnet.plotting.Reservoir¶
- class bluebonnet.plotting.SquareRootScale(axis, **kwargs)[source]¶
Bases:
matplotlib.scale.ScaleBaseScaleBase class for generating square root scale.
- name = 'squareroot'¶
- class SquareRootTransform(shorthand_name=None)[source]¶
Bases:
matplotlib.transforms.TransformTransform 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.
- class InvertedSquareRootTransform(shorthand_name=None)[source]¶
Bases:
matplotlib.transforms.TransformInverted 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.
- 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