{ "cells": [ { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "import pandas as pd\n", "import os as os\n", "\n", "import scipy.optimize as optimization\n", "import glob as glob\n", "import h5py as h5py\n", "from scipy.signal import argrelextrema\n", "\n", "pd.options.mode.chained_assignment = None " ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "import matplotlib\n", "matplotlib.use('TkAgg')\n", "\n", "%matplotlib inline\n", "import matplotlib.pyplot as plt\n", "\n", "import seaborn as sns\n", "\n", "NEJM = sns.color_palette(palette = ['#bc3c29',\n", " '#0072bf',\n", " '#e18727',\n", " '#20854e',\n", " '#7876b1',\n", " '#6f99ad',\n", " '#ffdc91',\n", " '#ee4c97'])\n", "sns.set(\n", " context='paper', \n", " style='white', \n", " palette=NEJM, \n", " font='sans-serif', \n", " font_scale=1, \n", " color_codes=False, \n", " rc = {'figure.dpi' : 150,\n", " 'text.usetex' : True,\n", " 'axes.labelsize' : 10,\n", " 'xtick.labelsize' : 10, \n", " 'ytick.labelsize' : 10,\n", " 'legend.fontsize' : 10,\n", " 'xtick.bottom' : True, \n", " 'xtick.minor.bottom' : False,\n", " 'ytick.left' : True,\n", " 'ytick.minor.left' : False\n", " })" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "%run \"../../mcelectron-analysis/functions/particles/plot_df_part.py\"\n", "%run \"../../mcelectron-analysis/functions/populations/plot_df_pop.py\"" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "plot_dir = \"/Users/ChristianReiling/Documents/Masterarbeit/docs/LaTeX/pics/tests/\"\n", "dpi = 150\n", "cs = sns.color_palette()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# TC1" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [], "source": [ "df_1a = pd.read_csv(\"tc_data/tc1/1a.csv\")\n", "df_1b = pd.read_csv(\"tc_data/tc1/1b.csv\")\n", "df_1c = pd.read_csv(\"tc_data/tc1/1c.csv\")" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
Unnamed: 0zEminEmaxEmidrminrmaxrmidNdndEdjzabsdEdjzdE
00-1.00.0000100.0000120.0000110.00.0450.022500.00.00.0
11-1.00.0000120.0000150.0000140.00.0450.022500.00.00.0
22-1.00.0000150.0000190.0000170.00.0450.022500.00.00.0
33-1.00.0000190.0000240.0000210.00.0450.022500.00.00.0
44-1.00.0000240.0000290.0000260.00.0450.022500.00.00.0
.......................................
1395959.06854.5428538491.5856777629.2816120.00.0450.022500.00.00.0
1396969.08491.58567710519.5968369451.3521690.00.0450.022500.00.00.0
1397979.010519.59683613031.94972111708.5804890.00.0450.022500.00.00.0
1398989.013031.94972116144.31771314504.8935440.00.0450.022500.00.00.0
1399999.016144.31771320000.00000017969.0387690.00.0450.022500.00.00.0
\n", "

1400 rows × 12 columns

\n", "
" ], "text/plain": [ " Unnamed: 0 z Emin Emax Emid rmin rmax \\\n", "0 0 -1.0 0.000010 0.000012 0.000011 0.0 0.045 \n", "1 1 -1.0 0.000012 0.000015 0.000014 0.0 0.045 \n", "2 2 -1.0 0.000015 0.000019 0.000017 0.0 0.045 \n", "3 3 -1.0 0.000019 0.000024 0.000021 0.0 0.045 \n", "4 4 -1.0 0.000024 0.000029 0.000026 0.0 0.045 \n", "... ... ... ... ... ... ... ... \n", "1395 95 9.0 6854.542853 8491.585677 7629.281612 0.0 0.045 \n", "1396 96 9.0 8491.585677 10519.596836 9451.352169 0.0 0.045 \n", "1397 97 9.0 10519.596836 13031.949721 11708.580489 0.0 0.045 \n", "1398 98 9.0 13031.949721 16144.317713 14504.893544 0.0 0.045 \n", "1399 99 9.0 16144.317713 20000.000000 17969.038769 0.0 0.045 \n", "\n", " rmid N dndE djzabsdE djzdE \n", "0 0.0225 0 0.0 0.0 0.0 \n", "1 0.0225 0 0.0 0.0 0.0 \n", "2 0.0225 0 0.0 0.0 0.0 \n", "3 0.0225 0 0.0 0.0 0.0 \n", "4 0.0225 0 0.0 0.0 0.0 \n", "... ... .. ... ... ... \n", "1395 0.0225 0 0.0 0.0 0.0 \n", "1396 0.0225 0 0.0 0.0 0.0 \n", "1397 0.0225 0 0.0 0.0 0.0 \n", "1398 0.0225 0 0.0 0.0 0.0 \n", "1399 0.0225 0 0.0 0.0 0.0 \n", "\n", "[1400 rows x 12 columns]" ] }, "execution_count": 8, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df_1a" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.4" } }, "nbformat": 4, "nbformat_minor": 2 }