iui-group-l-name-zensiert/1-first-project/tdt/DataVisualization.ipynb

337 lines
1.8 MiB
Plaintext
Raw Normal View History

{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
2021-06-07 19:58:49 +02:00
"id": "d26a4f5b",
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd\n",
"import numpy as np\n"
]
},
{
"cell_type": "code",
"execution_count": 2,
2021-06-07 19:58:49 +02:00
"id": "6c91f3a4",
"metadata": {},
"outputs": [],
"source": [
"delim = ';'"
]
},
{
"cell_type": "code",
"execution_count": 3,
2021-06-07 19:58:49 +02:00
"id": "c1e013c1",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA3wAABC/CAYAAADCXkJrAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAAsTAAALEwEAmpwYAAEAAElEQVR4nOzdd5xkV33n/c+5FTt3z0xPTgojiRFCSAhJRBOFwIC0XsDggIzxys8uXmOvn8cLTtjY3sVeL/ZiG2xstAbWRmDDGpERAiyC0ijnyaPJnVNVVz7PH/fe6qru6u6q7sr1fb9e85qqW6FPVZ+qPr/7O+d3jLUWERERERERaT9OoxsgIiIiIiIitaGAT0REREREpE0p4BMREREREWlTCvhERERERETalAI+ERERERGRNqWAT0REREREpE0p4BMREREREWlTCvhalDHm+8aYSWNMpNFtESmX+q20GvVZaTXqs9Jq1GdrTwFfCzLG7AVeAVjgrY1tjUh51G+l1ajPSqtRn5VWoz5bHwr4WtO7gXuBfwBuaWxTRMqmfiutRn1WWo36rLQa9dk6MNbaRrdBKmSMOQx8FLgP90Oy01p7vrGtElmZ+q20GvVZaTXqs9Jq1GfrQxm+FmOMeTmwB/iCtfZB4AjwM41tlcjK1G+l1ajPSqtRn5VWoz5bPwr4Ws8twLettWPe9X9CKXBpfuq30mrUZ6XVqM9Kq1GfrRNN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Iq3n/7w/zs39/HwfNzjW6KiIiIVFnGG5sGA+6UTp3gda26hs9aexY4612eNcY8DewAbgJe5d3t08D3gf/qHf+Mdd/he40xg8aYbd5977TWTgA
"text/plain": [
"<Figure size 1080x5616 with 130 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"import matplotlib.pyplot as plt\n",
"from math import isqrt\n",
"\n",
"count = 5\n",
"\n",
"plt_in_row = 5\n",
"\n",
"fig, axs = plt.subplots(26, plt_in_row, figsize=(3*plt_in_row, 3*26), sharey=True)\n",
" \n",
"for j,k in zip(range(1,27), range(65,91)):\n",
" num = j\n",
" letter = chr(k)\n",
" filename = f'{num}{letter}.csv'\n",
" for i in range(0, count):\n",
" path = f'/opt/iui-datarelease1-sose2021/{i}/split_letters_csv/{filename}'\n",
" try:\n",
" ex_letter = pd.read_csv(path, delim)\n",
" except:\n",
" continue\n",
" f = ex_letter['Force']\n",
" temp_axs = axs[j-1][i%plt_in_row]\n",
" temp_axs.title.set_text(f'{letter}')\n",
" temp_axs.plot(ex_letter['Time']-ex_letter['Time'][0], f)\n",
" \n",
"plt.savefig('./single_first_five.png')"
]
},
{
"cell_type": "code",
"execution_count": 4,
2021-06-07 19:58:49 +02:00
"id": "e4ac61e5",
"metadata": {},
"outputs": [],
"source": [
"import matplotlib.pyplot as plt\n",
"from math import isqrt\n",
"\n",
"count = 10\n",
"\n",
"numxalph = np.array(np.meshgrid(range(65,91), range(0,4)))[0].flatten() # I swear there must be a more efficient method to this..."
]
},
{
"cell_type": "code",
2021-06-07 19:58:49 +02:00
"execution_count": null,
"id": "8496f4af",
"metadata": {},
2021-06-07 19:58:49 +02:00
"outputs": [],
"source": [
"fig, axs = plt.subplots(13,2,figsize=(20, 60), sharey=True)\n",
"\n",
"for j,k in zip(range(1,105),numxalph):\n",
" num = j\n",
" letter = chr(k)\n",
" filename = f'{num}{letter}.csv'\n",
" r = int((j-1)/2)%13\n",
" c = (j-1)%2\n",
" for i in range(0, count):\n",
" path = f'/opt/iui-datarelease1-sose2021/{i}/split_letters_csv/{filename}'\n",
" try:\n",
" ex_letter = pd.read_csv(path, delim)\n",
" except:\n",
" continue\n",
" f = ex_letter['Force']\n",
2021-06-07 19:58:49 +02:00
" f_short = shorten(f)\n",
" \n",
" idx = (f > 100) | (f == 0)\n",
" f=f[idx]\n",
" t=ex_letter['Millis']-ex_letter['Millis'][0]\n",
" t=t[idx]\n",
" axs[r][c].title.set_text(f'{letter}')\n",
" axs[r][c].plot(t, f)\n",
"plt.savefig('./ten_force_entries_all_alphs.png')"
]
},
{
"cell_type": "code",
2021-05-26 23:03:28 +02:00
"execution_count": 6,
2021-06-07 19:58:49 +02:00
"id": "d62de263",
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjoAABC/CAYAAACQdOpMAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAAsTAAALEwEAmpwYAAEAAElEQVR4nOzdd3hb1fnA8e8ryXvGibOcvcgkCQkhzATCCKMEKNBAC2GV8isUKLQUSlsoo6XQslrKaBmBAmHvQMggCQFCBtnb2XaWHcd7Sjq/P+6VLNnyirf8fp5Hj6/OHTrXPpZenSnGGJRSSimlwpGjtTOglFJKKdVcNNBRSimlVNjSQEcppZRSYUsDHaWUUkqFLQ10lFJKKRW2NNBRSimlVNjSQEcppZRSYUsDnTAmIgtF5IiIRLV2XpQ6WlqOVXunZbh1aaATpkSkH3AqYIALWzc3Sh0dLceqvdMy3Po00AlfVwNLgVeAGfU9SUROEpFsEeltPx9tfxMZ2jzZVKpWR1uOnxGRf1RJ+1hEft202VOqTkdbhu8SkcKAR4WIvNJMeQxroktAhCcRSQceB77H+ifrZYw5aO/7N4Ax5pc1nPswcCJwPrAMeN4Y86+WyLdSgY62HIvIBOBD+3iviHQB9gD9fecr1RIa814ccI3e9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R82KeAM8t2s6BvFK6JERqjY5SbVSjh5crpVR9VJ2gD6yOuxFOB05H5QwVLy7Zye7DxVz7yjK2ZxUxulcSYAUfu7KLgs6PcjnZm1PMb96xaol+2JPLK9/sJDrCyaheSYzoaZ2bX1K5Qvnuw8V8uaFyvptN+/N
"text/plain": [
"<Figure size 648x5616 with 78 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"import matplotlib.pyplot as plt\n",
"\n",
"user_count = 1\n",
"\n",
"fig, axs = plt.subplots(26, 3, figsize=(3*3, 3*26), sharey=True)\n",
" \n",
"col = 'Acc1'\n",
"\n",
"for j,k in zip(range(1,27), range(65,91)):\n",
" num = j\n",
" letter = chr(k)\n",
" filename = f'{num}{letter}.csv'\n",
" for i in range(0, user_count):\n",
" path = f'/opt/iui-datarelease1-sose2021/{i}/split_letters_csv/{filename}'\n",
" try:\n",
" ex_letter = pd.read_csv(path, delim)\n",
" except:\n",
" continue\n",
" \n",
" x = ex_letter[f'{col} X']\n",
" y = ex_letter[f'{col} Y']\n",
" z = ex_letter[f'{col} Z']\n",
" f = ex_letter[f'Force']\n",
" t=ex_letter['Millis']-ex_letter['Millis'][0]\n",
" temp_axs = axs[j-1]\n",
" \n",
" temp_axs[0].plot(t, x)\n",
" temp_axs[1].plot(t, y)\n",
" temp_axs[2].plot(t, z)\n",
" \n",
" temp_axs[0].plot(t, f)\n",
" temp_axs[1].plot(t, f)\n",
" temp_axs[2].plot(t, f)\n",
" \n",
" temp_axs[0].title.set_text(f'{letter}: x')\n",
" temp_axs[1].title.set_text(f'{letter}: y')\n",
" temp_axs[2].title.set_text(f'{letter}: z')\n",
" \n",
"plt.savefig('./u1_Acc_all_alphs.png')"
]
},
{
"cell_type": "code",
"execution_count": 7,
2021-06-07 19:58:49 +02:00
"id": "12151db8",
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjQAABC/CAYAAACOvdr/AAAAOXRFWHRTb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xhOix2kPw8d/A6+r9a6x/vP/KE8ckoBHRffoAZ2+7mSccv8WCv+cnqxTjRMi9x0Jjef+XbxgItdDEYGI98/+dlWIHoMnVQUBjttAYyzT0T0Cz9Ug9q7tYQ6pbjqyDf54Fz34Nyrb2/PlOc+Xwzc/A9lf6Xh4hesrdDPefCK//FNY+0vPnhx87nh/6rTQS0IjoDnwIgF35mKSO9DygGXd86PaRdf1YsOEjlEMz+O8d6D7KTHYA0NjqjbpfXbObrBQHNkv/tdAsvft9Lrv/476/0KFVodtmfe4Rqz10+5O/9b08QvRUzT5orTNu96YOe8MWjF3/WP+UKY7ZYl0AEacaSnFbknD4WylUFXh9fiPat1hg87OQPhIqd0LedBi3qP3zfWFzl3hlFebeiOXSB4Fursxk46Te4Io+F01ti4esZDuWeOxyaigBZQVlgdqDxja/DyxWOLwaqvZAWh40VcKcK9o/P7ze5k8fnDILEa7BnDLBntK+DtcfgW0vwfgTYNfrcMKNkUE4RNbhvKFfhyWgEdE1lHAofR6T6j7hUuv7LPpoOWxOhqPOgTd+FrnvT4vBmRa5zdsSut1UOfDlHYKsyghoGlu9tHp8JNmtg/be/jZdTtFaaPx+TV2LmUPTTy00/bqyeEMppI8yuo52vQmuBiPB99zb4OkvRe6bPwNGzorc5gk7GUgdFrEQyEEcfyLs/wDe+yN89Fc470/w1q+g/nBoX2cGLPxa5PPD825a+qE
"text/plain": [
"<Figure size 648x5616 with 78 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"import matplotlib.pyplot as plt\n",
"\n",
"user_count = 1\n",
"\n",
"fig, axs = plt.subplots(26, 3, figsize=(3*3, 3*26), sharey=True)\n",
" \n",
"col = 'Gyro'\n",
"\n",
"for j,k in zip(range(1,27), range(65,91)):\n",
" num = j\n",
" letter = chr(k)\n",
" filename = f'{num}{letter}.csv'\n",
" for i in range(0, user_count):\n",
" path = f'/opt/iui-datarelease1-sose2021/{i}/split_letters_csv/{filename}'\n",
" try:\n",
" ex_letter = pd.read_csv(path, delim)\n",
" except:\n",
" continue\n",
" \n",
" x = ex_letter[f'{col} X']\n",
" y = ex_letter[f'{col} Y']\n",
" z = ex_letter[f'{col} Z']\n",
" f = ex_letter[f'Force']\n",
" t=ex_letter['Millis']-ex_letter['Millis'][0]\n",
" temp_axs = axs[j-1]\n",
" \n",
" temp_axs[0].plot(t, x)\n",
" temp_axs[1].plot(t, y)\n",
" temp_axs[2].plot(t, z)\n",
" \n",
" temp_axs[0].plot(t, f)\n",
" temp_axs[1].plot(t, f)\n",
" temp_axs[2].plot(t, f)\n",
" \n",
" temp_axs[0].title.set_text(f'{letter}: x')\n",
" temp_axs[1].title.set_text(f'{letter}: y')\n",
" temp_axs[2].title.set_text(f'{letter}: z')\n",
" \n",
"plt.savefig('./u1_Gyro_all_alphs.png')"
]
},
{
"cell_type": "code",
2021-05-31 15:43:48 +02:00
"execution_count": 8,
2021-06-07 19:58:49 +02:00
"id": "812b1b32",
"metadata": {},
2021-05-31 15:43:48 +02:00
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAisAABC/CAYAAABYGACaAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAAsTAAALEwEAmpwYAAEAAElEQVR4nOzdd5xjd33v/9dHdXrb3ry7thfba2NcFhfAFDtgQwiGBAjdl5A4F5wbUu4jgZBfSEJIAikQLgRCgm9MCeAACQ6Ba4wxxYDLupdlvbu2t/fpVe37++MczWhmpBlJo5GOpPfz8ZjHOTo60nw1+9F3P+fbjjnnEBEREQmqUK0LICIiIrIQJSsiIiISaEpWREREJNCUrIiIiEigKVkRERGRQFOyIiIiIoGmZEVEREQCTclKHTCzH5jZgJnFa10WkXIohqURKI5rR8lKwJnZFuAqwAGvqW1pREqnGJZGoDiuLSUrwfcO4B7gX4Ebin2Rmb3AzE6Z2Sb/8fP8K4J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p0DiZGZ40cegs51XgxvuMQ7dnLX/NdP36Mt2vAxrGSlGWXmVPRZY36XT8RvGl99LowcgYnB2a+fzubVDSQ1kk1WwpHZMQxepZ+NzdXnedt8LYSzuoEauwldAiqd8BKNuTE8dgIifgz3bIZIK5woEMOYV5c3eD2sZKUZZbttwtH8/flTfoa/8hxve3rf7Odzmx5BTehSfdmYC8egpWv+80/9P2+b/U9g7sBx8JMVf/WGBm9Cl4DKzgbKF8PZgeKhMKw8G07niWGc1/oSiihZkQa
"text/plain": [
"<Figure size 648x5616 with 78 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"import matplotlib.pyplot as plt\n",
"\n",
"user_count = 1\n",
"\n",
"fig, axs = plt.subplots(26, 3, figsize=(3*3, 3*26), sharey=True)\n",
" \n",
"col = 'Mag'\n",
"\n",
"for j,k in zip(range(1,27), range(65,91)):\n",
" num = j\n",
" letter = chr(k)\n",
" filename = f'{num}{letter}.csv'\n",
" for i in range(0, user_count):\n",
" path = f'/opt/iui-datarelease1-sose2021/{i}/split_letters_csv/{filename}'\n",
" try:\n",
" ex_letter = pd.read_csv(path, delim)\n",
" except:\n",
" continue\n",
" \n",
" x = ex_letter[f'{col} X']\n",
" y = ex_letter[f'{col} Y']\n",
" z = ex_letter[f'{col} Z']\n",
" f = ex_letter[f'Force']\n",
" t=ex_letter['Millis']-ex_letter['Millis'][0]\n",
" temp_axs = axs[j-1]\n",
" \n",
" temp_axs[0].plot(t, x)\n",
" temp_axs[1].plot(t, y)\n",
" temp_axs[2].plot(t, z)\n",
" \n",
" temp_axs[0].plot(t, f)\n",
" temp_axs[1].plot(t, f)\n",
" temp_axs[2].plot(t, f)\n",
" \n",
" temp_axs[0].title.set_text(f'{letter}: x')\n",
" temp_axs[1].title.set_text(f'{letter}: y')\n",
" temp_axs[2].title.set_text(f'{letter}: z')\n",
" \n",
"plt.savefig('./u1_Mag_all_alphs.png')"
]
},
{
"cell_type": "code",
2021-05-31 15:43:48 +02:00
"execution_count": 9,
2021-06-07 19:58:49 +02:00
"id": "8eddc349",
"metadata": {},
"outputs": [],
2021-05-26 23:03:28 +02:00
"source": [
"exit()"
]
}
],
"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.8.5"
}
},
"nbformat": 4,
"nbformat_minor": 5
}