0% found this document useful (0 votes)
11 views

Code py2

Uploaded by

Ali Alamatsaz
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Code py2

Uploaded by

Ali Alamatsaz
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

import pandas as pd

import matplotlib.pyplot as plt

import numpy as np

from scipy.stats import linregress

# Load the Excel file

input_path = r'C:\Users\alire\Downloads\Logan\converted_data5.xlsx'

xls = pd.ExcelFile(input_path)

# Read the Filtered_Data sheet

filtered_data = pd.read_excel(xls, sheet_name='Filtered_Data')

# Plot 1: All data

plt.figure(figsize=(10, 6))

plt.plot(filtered_data['SQRT_Time'], filtered_data['(P_initial -
BHP)/Downhole_Rate'], marker='o', linestyle='', color='b', label='All Data')

# Add labels and title

plt.xlabel('Root Time (√days)')

plt.ylabel('Rate Normalized Pressure (psi/rbbl/day)')

plt.title('Rate Normalized Pressure vs. Root Time (Filtered Data)')

plt.grid(True, which="both", ls="--")

You might also like