Commit 5f1d1db7 authored by Marvin Kastner's avatar Marvin Kastner
Browse files

Fuege Farbverlauf aus VL hinzu

parent c793b4ac
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import pandas as pd\n",
"import matplotlib.pyplot as plt"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"df = pd.DataFrame(np.matrix(\"0 0 1 1 2 2 2 4; 1 1 2 1 2 3 4 4; 1 2 2 2 3 4 4 6; \"\n",
" + \"2 3 3 4 4 4 5 6; 2 4 4 4 5 5 6 7; 3 4 5 6 7 7 8 8; 4 5 7 5 4 5 9 9; 6 6 7 4 3 6 9 10\"))\n",
"df"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"plt.imshow(df.values, cmap=\"gray\")\n",
"plt.show()"
]
}
],
"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.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment