% This script creates figures from the setpoint experiment
%
%
% Written by : Knut Åge Meland
% email: knutagemeland@gmail.com
%%
clear all
close all
clc

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

%set x akse
starttime=2000;
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     = [-1,  6];
par.slug_span   = [0,   6];
par.sp_span     = [0,   50];
par.valve_span  = [0,   100];


%% Processing data:
%step1: plot
plotter(filename, starttime, endtime, par, 2 );

%step2 :save
save_figure(1:3, dir)
