plot_logs
LogPlot
- class logio.logplot.LogPlot(data)[source]
- __init__(data)[source]
Visualize well logs
- Parameters
data (lasio.las.LASFile or pd.DataFrame object) –
- cutoff_plot(x, y, x_cutoff, y_range: tuple = (0, 0), xscale: str = 'linear', colors: list = ['red', 'lightblue'], labels: list = ['Cat_A', 'Cat_B'], fig_size: tuple = (4.5, 10))[source]
Plots a visualization for a single log with a cutoff value for the x variable :param dataframe: :type dataframe: pandas.DataFrame object containing the data to be analysed :param x: :type x: name of column to be plotted on the x-axis :param y: :type y: name of column to be plotted on the y-axis :param x_cutoff: If specified as a fraction between 0 and 1, it is calculated as:
(max_x_value - min_x_value) * x_cutoff + min_x_value Otherwise, the x plot is separated into sections based on the x value passed
- Parameters
y_range (tuple, value range for the y-axis, passed to th plot as ylim(),) – default = (y.min, y.max)
xscale ({"linear", "log", "symlog", "logit", ...} The scale type to apply to the x-axis,) – default = ‘linear’.
colors (list containing the colors for filliung the cutoff sections) –
labels (list containing the labels for the cutoff sections) –
figsize (tuple (width, height) for controlling the size of the plot) –
- plot_log(plots: list, y: str = 'DEPTH', y_range: tuple = (0, 0, 0), xscale: list = ['linear'], **kwargs)[source]
Base function/method for visualization
- Parameters
plots (list; a list of required plots to make. The list can contain strings and tuples.) – Use tuple to plot more than one log on an axes i.e (“GR”, “BS”) will plot the GR log and the BS log on the same axes
y (str; name of column in dataframe to be plotted on the vertical axis) –
y_range (tuple, value range for the y-axis, passed to the plot as ylim()) –
xscale ({"linear", "log", "symlog", "logit", ...} The scale type to apply to the x-axis,) – default = ‘linear’.
**kwargs (These are passed to the subplots function, e.g: figsize = (4, 9), dpi = 60) –