Skip to content
Snippets Groups Projects
Commit a4138310 authored by Delvigne Frank's avatar Delvigne Frank
Browse files

Upload New File

parent 0e9f0547
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Feb 26 07:12:21 2025
@author: delvigne
"""
'''
Exercice 2.6. Scaling law
'''
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
PATH = "/Users/delvigne/Documents/Cours Delvigne/Modelling physical and biological systems/2025/"
File_dir = PATH+'/'+'Ex_ScalingLaw.xlsx'
File = pd.read_excel(File_dir)
x1 = File['x_bioreactor (L)'] #[0:indexEnd]
y1 = File['y_productivity (g/L.h)']
x2 = File['x_bodyMass (Kg)']
y2 = File['y_metabolicRate (Watts)']
x3 = File['x_Population']
y3 = File['y_Patents']
#Bioreactor productivity
plt.plot(x1,y1,'o')
plt.xlabel('Size of the system')
plt.ylabel('Output of the system')
plt.title('Bioreactor')
plt.show()
plt.plot(np.log10(x1),np.log10(y1),'o')
plt.xlabel('log10 Size of the system')
plt.ylabel('log10 Output of the system')
plt.title('Bioreactor')
plt.show()
#Metabolic rate in mammals
plt.plot(x2,y2,'o')
plt.xlabel('Size of the system')
plt.ylabel('Output of the system')
plt.title('Metabolic rate in mammals')
plt.show()
plt.plot(np.log10(x2),np.log10(y2),'o')
plt.xlabel('log10 Size of the system')
plt.ylabel('log10 Output of the system')
plt.title('Metabolic rate in mammals')
plt.show()
#Patents in function of the size of the city
plt.plot(x3,y3,'o')
plt.xlabel('Size of the system')
plt.ylabel('Output of the system')
plt.title('Patents in fct of population size')
plt.show()
plt.plot(np.log10(x3),np.log10(y3),'o')
plt.xlabel('log10 Size of the system')
plt.ylabel('log10 Output of the system')
plt.title('Patents in fct of population size')
plt.show()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment