Skip to content
Snippets Groups Projects
Commit 0c8549be authored by Alexander Böhmländer's avatar Alexander Böhmländer
Browse files

Added a function for plotting timeseries of size distribution data.

parent 900d0273
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed May 31 15:59:04 2023
@author: alex
"""
import numpy as np
def lognormal_func(dp, mu, sigma, tot):
pre_exp_factor = tot / (sigma * dp * np.sqrt(2 * np.pi))
exp_factor = np.exp(- (np.log(dp) - mu)**2 / (2 * sigma**2))
return pre_exp_factor * exp_factor
......@@ -127,3 +127,9 @@ def annotate_heatmap(im, data=None, valfmt="{x:.2f}",
texts.append(text)
return texts
def sd_timeseries(min_exp, max_exp):
(colormap, min_exp, max_exp) = omccolors.generate_omc(data_min,
data_max)
return colormap
Statistics/T_cycles_water_Hendrik.png

207 KiB

......@@ -179,5 +179,5 @@ def add_asym(x0s, siglos, sighis, order=2, nmax=100, tol=1e-6, ohwell=False):
siglo = sig - alpha # >Final values |
sighi = sig + alpha # /____________________________|
return np.array([x0, siglo, sighi])
return np.array([x0, siglo, sighi]) / len(x0)
# ------------------------------------------------------------------------------
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