Easier time series plotting.

This commit is contained in:
Miikka Vaisala
2019-06-18 14:50:35 +08:00
parent 71a35b2027
commit 0f62651374
5 changed files with 139 additions and 63 deletions

View File

@@ -14,7 +14,16 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Here we read data from the run directory"
"### Here we read data from the run directory"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"meshdir = \"/scratch/data/mvaisala/iotest/\""
]
},
{
@@ -24,7 +33,6 @@
"outputs": [],
"source": [
"imesh = 0\n",
"meshdir = \"/scratch/data/mvaisala/iotest/\"\n",
"mesh = ad.read.Mesh(imesh, fdir=meshdir)"
]
},
@@ -32,7 +40,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Example visualization funtion call. "
"### Example visualization funtion call. "
]
},
{
@@ -46,6 +54,38 @@
"vis.slices.plot_3(mesh, mesh.uu[0], title = r'$u_x$', bitmap = False, fname = 'uux')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Ploting time series"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"ts = ad.read.TimeSeries(fdir=meshdir)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"vis.lineplot.plot_ts(ts, lnrho=1, uutot=1, uux=1, ss=1)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,