Source code :: main
[Return]
[Download]#!/usr/bin/python2
# -*- coding: utf-8 -*-
import matplotlib #on JET must be used Qt4Agg backend
matplotlib.rcParams['backend'] = 'Agg'
matplotlib.rc('font', family='arial', size='10')
matplotlib.rc('text', usetex=True)
import sys
sys.path.append('/home/michal/Desktop/Prace/Golem/web_framework')
import pygolem
from numpy import *
from pygolem.config import *
from pygolem.modules import *
from matplotlib.pyplot import *
import time
from shutil import copy
import os
def graphs():
out = get_columns('Time_AD4ETHb', ['U$_{B}$', 'U$_{BD}$', 'U$_{CD}$','U$_{ST}$'], 'U [V]', xlabel = 'Time [s]', columns = [0,1,2,3], tvec_rescale = 1, ylim = [0, None] )
paralel_multiplot(out, 'Charging log' , 'charging', (9,7) )
out = get_columns('Time_AD4ETHb', 'Pressure', 'p [mPa]', xlabel = 'Time [s]', columns = [4],tvec_rescale = 1, ylim = [0, None] )
paralel_multiplot(out, 'Pressure log' , 'pressure', (9,2.5) )
def main():
graphs()
if __name__ == "__main__":
main()[Return]