%this script makes figureplots and saves figure
clear all
close all
clc

%fil som skal loades
filename= 'P4P2_Kc2_ravg1_filter_42.lvm';
%hvor bilde lagres
%dir = 'c:\users\knutage\desktop\Master oppgave\Master_source\bilder\matlabfig\venturi\beforechoke\';

%set x akse
starttime=0;
endtime= inf;
%set akse span(y akse)
par.Air_span    = [2.5, 3.5];
par.Water_span  = [0,   7.5];
par.P1_span     = [0,   50];
par.P2_span     = [0,   50];
par.P3_span     = [0,   50];
par.P4_span     = [0,   50];
par.dp_span     = [0,  50];
par.slug_span   = [0,   6];
par.sp_span     = [0,   50];
par.valve_span  = [0,   40];


%% Processing data:
%step1: plot
[t, P1, P2, P3, P4]= plotter(filename, starttime, endtime, par );
[P4f]=filterplotter(t,P4,4, 1/(4*20));
%step2 :save
%save_figure(1:7, dir)
