Page MenuHomec4science

plot_comp.py
No OneTemporary

File Metadata

Created
Thu, May 16, 22:24

plot_comp.py

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: Theo Lemaire
# @Date: 2017-02-13 12:41:26
# @Email: theo.lemaire@epfl.ch
# @Last Modified by: Theo Lemaire
# @Last Modified time: 2017-08-25 18:26:33
""" Compare profiles of several specific output variables of NICE simulations. """
from PointNICE.utils import OpenFilesDialog
from PointNICE.plt import plotComp
# List of variables to plot
ASTIM_vars = ['Pac', 'Pmavg', 'Telastic', 'Qm', 'iL', 'iNet']
ESTIM_vars = ['Vm', 'iL', 'iNet']
MECH_vars = ['Pac', 'Z', 'ng']
# Select data files
pkl_filepaths, _ = OpenFilesDialog('pkl')
if not pkl_filepaths:
print('error: no input file')
quit()
# Comparative plot
plotComp(ESTIM_vars, pkl_filepaths)

Event Timeline