Easier time series plotting.
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user