\begin{tikzpicture}[gnuplot]
%% generated with GNUPLOT 5.4p8 (Lua 5.3; terminal rev. Jun 2020, script rev. 118)
%% Thu Oct 26 18:10:58 2023
\path (0.000,0.000) rectangle (12.500,8.750);
\gpcolor{color=gp lt color border}
\gpsetlinetype{gp lt border}
\gpsetdashtype{gp dt solid}
\gpsetlinewidth{1.00}
\draw[gp path] (1.688,0.985)--(1.868,0.985);
\node[gp node right] at (1.504,0.985) {$-0.15$};
\draw[gp path] (1.688,2.228)--(1.868,2.228);
\node[gp node right] at (1.504,2.228) {$-0.1$};
\draw[gp path] (1.688,3.470)--(1.868,3.470);
\node[gp node right] at (1.504,3.470) {$-0.05$};
\draw[gp path] (1.688,4.713)--(1.868,4.713);
\node[gp node right] at (1.504,4.713) {$0$};
\draw[gp path] (1.688,5.956)--(1.868,5.956);
\node[gp node right] at (1.504,5.956) {$0.05$};
\draw[gp path] (1.688,7.198)--(1.868,7.198);
\node[gp node right] at (1.504,7.198) {$0.1$};
\draw[gp path] (1.688,8.441)--(1.868,8.441);
\node[gp node right] at (1.504,8.441) {$0.15$};
\draw[gp path] (1.688,0.985)--(1.688,1.165);
\node[gp node center] at (1.688,0.677) {$0$};
\draw[gp path] (2.878,0.985)--(2.878,1.165);
\node[gp node center] at (2.878,0.677) {$10000$};
\draw[gp path] (4.068,0.985)--(4.068,1.165);
\node[gp node center] at (4.068,0.677) {$20000$};
\draw[gp path] (5.258,0.985)--(5.258,1.165);
\node[gp node center] at (5.258,0.677) {$30000$};
\draw[gp path] (6.449,0.985)--(6.449,1.165);
\node[gp node center] at (6.449,0.677) {$40000$};
\draw[gp path] (7.639,0.985)--(7.639,1.165);
\node[gp node center] at (7.639,0.677) {$50000$};
\draw[gp path] (8.829,0.985)--(8.829,1.165);
\node[gp node center] at (8.829,0.677) {$60000$};
\draw[gp path] (10.019,0.985)--(10.019,1.165);
\node[gp node center] at (10.019,0.677) {$70000$};
\draw[gp path] (11.209,0.985)--(11.209,1.165);
\node[gp node center] at (11.209,0.677) {$80000$};
\draw[gp path] (1.688,8.441)--(1.688,0.985)--(11.947,0.985);
\node[gp node center,rotate=-270] at (0.108,4.713) {\(P\) (MW)};
\node[gp node center] at (6.817,0.215) {Time (sec)};
\node[gp node right] at (3.482,8.256) {\(PD_{51}\)};
\gpcolor{rgb color={0.580,0.000,0.827}}
\draw[gp path] (3.666,8.256)--(4.582,8.256);
\draw[gp path] (1.688,6.950)--(1.759,6.950)--(1.831,6.950)--(1.902,6.950)--(1.974,6.950)%
  --(2.045,6.950)--(2.116,6.950)--(2.188,6.950)--(2.259,6.950)--(2.331,6.950)--(2.402,6.950)%
  --(2.473,6.950)--(2.545,6.950)--(2.616,6.950)--(2.688,6.950)--(2.759,6.950)--(2.831,6.950)%
  --(2.902,6.950)--(2.973,6.950)--(3.045,6.950)--(3.116,6.950)--(3.188,6.950)--(3.259,6.950)%
  --(3.330,6.950)--(3.402,6.950)--(3.473,6.950)--(3.545,6.950)--(3.616,6.950)--(3.687,6.950)%
  --(3.759,6.950)--(3.830,6.950)--(3.902,6.950)--(3.973,6.950)--(4.044,6.950)--(4.116,6.950)%
  --(4.187,6.950)--(4.259,6.950)--(4.330,6.950)--(4.402,6.950)--(4.473,6.950)--(4.544,6.950)%
  --(4.616,6.950)--(4.687,6.950)--(4.759,6.950)--(4.830,6.950)--(4.901,6.950)--(4.973,6.950)%
  --(5.044,6.950)--(5.116,6.950)--(5.187,6.950)--(5.258,6.950)--(5.330,6.950)--(5.401,6.950)%
  --(5.473,6.950)--(5.544,6.950)--(5.615,6.950)--(5.687,6.950)--(5.758,6.950)--(5.830,6.950)%
  --(5.901,6.950)--(5.973,6.950)--(6.044,6.950)--(6.115,6.950)--(6.187,6.950)--(6.258,6.950)%
  --(6.330,6.950)--(6.401,6.950)--(6.472,6.950)--(6.544,6.950)--(6.615,6.950)--(6.687,6.950)%
  --(6.758,6.950)--(6.829,6.950)--(6.901,6.950)--(6.972,6.950)--(7.044,6.950)--(7.115,6.950)%
  --(7.186,6.950)--(7.258,6.950)--(7.329,6.950)--(7.401,6.951)--(7.472,6.951)--(7.543,6.955)%
  --(7.615,6.960)--(7.686,6.960)--(7.758,6.960)--(7.829,6.960)--(7.901,6.960)--(7.972,6.960)%
  --(8.043,6.969)--(8.115,6.969)--(8.186,6.969)--(8.258,6.969)--(8.329,6.969)--(8.400,6.981)%
  --(8.472,7.000)--(8.543,7.000)--(8.615,7.026)--(8.686,7.026)--(8.757,7.026)--(8.829,7.107)%
  --(8.900,7.166)--(8.972,7.239)--(9.043,7.239)--(9.114,7.239)--(9.186,7.239)--(9.257,7.239)%
  --(9.329,7.239)--(9.400,7.239)--(9.472,7.239)--(9.543,7.239)--(9.614,7.239)--(9.686,7.239)%
  --(9.757,7.239)--(9.829,7.239)--(9.900,7.239)--(9.971,7.239)--(10.043,7.328)--(10.114,7.328)%
  --(10.186,7.328)--(10.257,7.328)--(10.328,7.328)--(10.400,7.328)--(10.471,7.328)--(10.543,7.328)%
  --(10.614,7.559)--(10.685,7.559)--(10.757,7.559)--(10.828,7.559)--(10.900,7.559)--(10.971,7.559)%
  --(11.042,7.559)--(11.114,7.559)--(11.185,7.559)--(11.257,7.703)--(11.328,7.703)--(11.400,7.703)%
  --(11.471,7.703)--(11.542,7.703)--(11.614,7.703)--(11.685,7.867)--(11.757,7.867)--(11.828,8.050)%
  --(11.899,8.050)--(11.947,8.050);
\gpcolor{color=gp lt color border}
\node[gp node right] at (3.482,7.887) {\(UD_{51}\)};
\gpcolor{rgb color={0.000,0.620,0.451}}
\draw[gp path] (3.666,7.887)--(4.582,7.887);
\draw[gp path] (1.688,6.950)--(1.712,4.713)--(1.736,4.713)--(1.759,4.713)--(1.783,4.713)%
  --(1.807,4.713)--(1.831,4.713)--(1.855,4.713)--(1.878,4.713)--(1.902,4.713)--(1.926,4.713)%
  --(1.950,4.713)--(1.974,4.713)--(1.997,4.713)--(2.021,4.713)--(2.045,4.713)--(2.069,4.713)%
  --(2.093,4.713)--(2.116,4.713)--(2.140,4.713)--(2.164,4.713)--(2.188,4.713)--(2.212,4.713)%
  --(2.235,4.713)--(2.259,4.713)--(2.283,4.713)--(2.307,4.713)--(2.331,4.713)--(2.354,4.713)%
  --(2.378,4.713)--(2.402,4.713)--(2.426,4.713)--(2.450,4.713)--(2.473,4.713)--(2.497,4.713)%
  --(2.521,4.713)--(2.545,4.713)--(2.569,4.713)--(2.593,4.713)--(2.616,4.713)--(2.640,4.713)%
  --(2.664,4.713)--(2.688,4.713)--(2.712,4.713)--(2.735,4.713)--(2.759,4.713)--(2.783,4.713)%
  --(2.807,4.713)--(2.831,4.713)--(2.854,4.713)--(2.878,4.713)--(2.902,4.713)--(2.926,4.713)%
  --(2.950,4.713)--(2.973,4.713)--(2.997,4.713)--(3.021,4.713)--(3.045,4.713)--(3.069,4.713)%
  --(3.092,4.713)--(3.116,4.713)--(3.140,4.713)--(3.164,4.713)--(3.188,4.713)--(3.211,4.713)%
  --(3.235,4.713)--(3.259,4.713)--(3.283,4.713)--(3.307,4.713)--(3.330,4.713)--(3.354,4.713)%
  --(3.378,4.713)--(3.402,4.713)--(3.426,4.713)--(3.449,4.713)--(3.473,4.713)--(3.497,4.713)%
  --(3.521,4.713)--(3.545,4.713)--(3.568,4.713)--(3.592,4.713)--(3.616,4.713)--(3.640,4.713)%
  --(3.664,4.713)--(3.687,4.713)--(3.711,4.713)--(3.735,4.713)--(3.759,4.713)--(3.783,4.713)%
  --(3.806,4.713)--(3.830,4.713)--(3.854,4.713)--(3.878,4.713)--(3.902,4.713)--(3.925,4.713)%
  --(3.949,4.713)--(3.973,4.713)--(3.997,4.713)--(4.021,4.713)--(4.044,4.713)--(4.068,4.713)%
  --(4.092,4.713)--(4.116,4.713)--(4.140,4.713)--(4.163,4.713)--(4.187,4.713)--(4.211,4.713)%
  --(4.235,4.713)--(4.259,4.713)--(4.283,4.713)--(4.306,4.713)--(4.330,4.713)--(4.354,4.713)%
  --(4.378,4.713)--(4.402,4.713)--(4.425,4.713)--(4.449,4.713)--(4.473,4.713)--(4.497,4.713)%
  --(4.521,4.713)--(4.544,4.713)--(4.568,4.713)--(4.592,4.713)--(4.616,4.713)--(4.640,4.713)%
  --(4.663,4.713)--(4.687,4.713)--(4.711,4.713)--(4.735,4.713)--(4.759,4.713)--(4.782,4.713)%
  --(4.806,4.713)--(4.830,4.713)--(4.854,4.713)--(4.878,4.713)--(4.901,4.713)--(4.925,4.713)%
  --(4.949,4.713)--(4.973,4.713)--(4.997,4.713)--(5.020,4.713)--(5.044,4.713)--(5.068,4.713)%
  --(5.092,4.713)--(5.116,4.713)--(5.139,4.713)--(5.163,4.713)--(5.187,4.713)--(5.211,4.713)%
  --(5.235,4.713)--(5.258,4.713)--(5.282,4.713)--(5.306,4.713)--(5.330,4.713)--(5.354,4.713)%
  --(5.377,4.713)--(5.401,4.713)--(5.425,4.713)--(5.449,4.713)--(5.473,4.713)--(5.496,4.713)%
  --(5.520,4.713)--(5.544,4.713)--(5.568,4.713)--(5.592,4.713)--(5.615,4.713)--(5.639,4.713)%
  --(5.663,4.713)--(5.687,4.713)--(5.711,4.713)--(5.734,4.713)--(5.758,4.713)--(5.782,4.713)%
  --(5.806,4.713)--(5.830,4.713)--(5.853,4.713)--(5.877,4.713)--(5.901,4.713)--(5.925,4.713)%
  --(5.949,4.713)--(5.973,4.713)--(5.996,4.713)--(6.020,4.713)--(6.044,4.713)--(6.068,4.713)%
  --(6.092,4.713)--(6.115,4.713)--(6.139,4.713)--(6.163,4.713)--(6.187,4.713)--(6.211,4.713)%
  --(6.234,4.713)--(6.258,4.713)--(6.282,4.713)--(6.306,4.713)--(6.330,4.713)--(6.353,4.713)%
  --(6.377,4.713)--(6.401,4.713)--(6.425,4.713)--(6.449,4.713)--(6.472,4.713)--(6.496,4.713)%
  --(6.520,4.713)--(6.544,4.713)--(6.568,4.713)--(6.591,4.713)--(6.615,4.713)--(6.639,4.713)%
  --(6.663,4.713)--(6.687,4.713)--(6.710,4.713)--(6.734,4.713)--(6.758,4.713)--(6.782,4.713)%
  --(6.806,4.713)--(6.829,4.713)--(6.853,4.713)--(6.877,4.713)--(6.901,4.713)--(6.925,4.713)%
  --(6.948,4.713)--(6.972,4.713)--(6.996,4.713)--(7.020,4.713)--(7.044,4.713)--(7.067,4.713)%
  --(7.091,4.713)--(7.115,4.713)--(7.139,4.713)--(7.163,4.713)--(7.186,4.713)--(7.210,4.713)%
  --(7.234,4.713)--(7.258,4.713)--(7.282,4.713)--(7.305,4.713)--(7.329,4.713)--(7.353,4.713)%
  --(7.377,4.713)--(7.401,4.713)--(7.424,4.713)--(7.448,4.713)--(7.472,4.713)--(7.496,4.713)%
  --(7.520,4.713)--(7.543,4.713)--(7.567,4.713)--(7.591,4.713)--(7.615,4.713)--(7.639,4.713)%
  --(7.662,4.713)--(7.686,4.713)--(7.710,4.713)--(7.734,4.713)--(7.758,4.713)--(7.782,4.713)%
  --(7.805,4.713)--(7.829,4.713)--(7.853,4.713)--(7.877,4.713)--(7.901,4.713)--(7.924,4.713)%
  --(7.948,4.713)--(7.972,4.713)--(7.996,4.713)--(8.020,4.713)--(8.043,4.713)--(8.067,4.713)%
  --(8.091,4.713)--(8.115,4.713)--(8.139,4.713)--(8.162,4.713)--(8.186,4.713)--(8.210,4.713)%
  --(8.234,4.713)--(8.258,4.713)--(8.281,4.713)--(8.305,4.713)--(8.329,4.713)--(8.353,4.713)%
  --(8.377,4.713)--(8.400,4.713)--(8.424,4.713)--(8.448,4.713)--(8.472,4.713)--(8.496,4.713)%
  --(8.519,4.713)--(8.543,4.713)--(8.567,4.713)--(8.591,4.713)--(8.615,4.713)--(8.638,4.713)%
  --(8.662,4.713)--(8.686,4.713)--(8.710,4.713)--(8.734,4.713)--(8.757,4.713)--(8.781,4.713)%
  --(8.805,4.713)--(8.829,4.713)--(8.853,4.713)--(8.876,4.713)--(8.900,4.713)--(8.924,4.713)%
  --(8.948,4.713)--(8.972,4.713)--(8.995,4.713)--(9.019,4.713)--(9.043,4.713)--(9.067,4.713)%
  --(9.091,4.713)--(9.114,4.713)--(9.138,4.713)--(9.162,4.713)--(9.186,4.713)--(9.210,4.713)%
  --(9.233,4.713)--(9.257,4.713)--(9.281,4.713)--(9.305,4.713)--(9.329,4.713)--(9.352,4.713)%
  --(9.376,4.713)--(9.400,4.713)--(9.424,4.713)--(9.448,4.713)--(9.472,4.713)--(9.495,4.713)%
  --(9.519,4.713)--(9.543,4.713)--(9.567,4.713)--(9.591,4.713)--(9.614,4.713)--(9.638,4.713)%
  --(9.662,4.713)--(9.686,4.713)--(9.710,4.713)--(9.733,4.713)--(9.757,4.713)--(9.781,4.713)%
  --(9.805,4.713)--(9.829,4.713)--(9.852,4.713)--(9.876,4.713)--(9.900,4.713)--(9.924,4.713)%
  --(9.948,4.713)--(9.971,4.713)--(9.995,4.713)--(10.019,4.713)--(10.043,4.713)--(10.067,4.713)%
  --(10.090,4.713)--(10.114,4.713)--(10.138,4.713)--(10.162,4.713)--(10.186,4.713)--(10.209,4.713)%
  --(10.233,4.713)--(10.257,4.713)--(10.281,4.713)--(10.305,4.713)--(10.328,4.713)--(10.352,4.713)%
  --(10.376,4.713)--(10.400,4.713)--(10.424,4.713)--(10.447,4.713)--(10.471,4.713)--(10.495,4.713)%
  --(10.519,4.713)--(10.543,4.713)--(10.566,4.713)--(10.590,4.713)--(10.614,4.713)--(10.638,4.713)%
  --(10.662,4.713)--(10.685,4.713)--(10.709,4.713)--(10.733,4.713)--(10.757,4.713)--(10.781,4.713)%
  --(10.804,4.713)--(10.828,4.713)--(10.852,4.713)--(10.876,4.713)--(10.900,4.713)--(10.923,4.713)%
  --(10.947,4.713)--(10.971,4.713)--(10.995,4.713)--(11.019,4.713)--(11.042,4.713)--(11.066,4.713)%
  --(11.090,4.713)--(11.114,4.713)--(11.138,4.713)--(11.162,4.713)--(11.185,4.713)--(11.209,4.713)%
  --(11.233,4.713)--(11.257,4.713)--(11.281,4.713)--(11.304,4.713)--(11.328,4.713)--(11.352,4.713)%
  --(11.376,4.713)--(11.400,4.713)--(11.423,4.713)--(11.447,4.713)--(11.471,4.713)--(11.495,4.713)%
  --(11.519,4.713)--(11.542,4.713)--(11.566,4.713)--(11.590,4.713)--(11.614,4.713)--(11.638,4.713)%
  --(11.661,4.713)--(11.685,4.713)--(11.709,4.713)--(11.733,4.713)--(11.757,4.713)--(11.780,4.713)%
  --(11.804,4.713)--(11.828,4.713)--(11.852,4.713)--(11.876,4.713)--(11.899,4.713)--(11.923,4.713)%
  --(11.947,4.713);
\gpcolor{color=gp lt color border}
\node[gp node right] at (3.482,7.518) {\(P_{51}\)};
\gpcolor{rgb color={0.337,0.706,0.914}}
\draw[gp path] (3.666,7.518)--(4.582,7.518);
\draw[gp path] (1.688,4.713)--(1.759,2.476)--(1.831,2.476)--(1.902,2.476)--(1.974,2.476)%
  --(2.045,2.476)--(2.116,2.476)--(2.188,2.476)--(2.259,2.476)--(2.331,2.476)--(2.402,2.476)%
  --(2.473,2.476)--(2.545,2.476)--(2.616,2.476)--(2.688,2.476)--(2.759,2.476)--(2.831,2.476)%
  --(2.902,2.476)--(2.973,2.476)--(3.045,2.476)--(3.116,2.476)--(3.188,2.476)--(3.259,2.476)%
  --(3.330,2.476)--(3.402,2.476)--(3.473,2.476)--(3.545,2.476)--(3.616,2.476)--(3.687,2.476)%
  --(3.759,2.476)--(3.830,2.476)--(3.902,2.476)--(3.973,2.476)--(4.044,2.476)--(4.116,2.476)%
  --(4.187,2.476)--(4.259,2.476)--(4.330,2.476)--(4.402,2.476)--(4.473,2.476)--(4.544,2.476)%
  --(4.616,2.476)--(4.687,2.476)--(4.759,2.476)--(4.830,2.476)--(4.901,2.476)--(4.973,2.476)%
  --(5.044,2.476)--(5.116,2.476)--(5.187,2.476)--(5.258,2.476)--(5.330,2.476)--(5.401,2.476)%
  --(5.473,2.476)--(5.544,2.476)--(5.615,2.476)--(5.687,2.476)--(5.758,2.476)--(5.830,2.476)%
  --(5.901,2.476)--(5.973,2.476)--(6.044,2.476)--(6.115,2.476)--(6.187,2.476)--(6.258,2.476)%
  --(6.330,2.476)--(6.401,2.476)--(6.472,2.476)--(6.544,2.476)--(6.615,2.476)--(6.687,2.476)%
  --(6.758,2.476)--(6.829,2.476)--(6.901,2.476)--(6.972,2.476)--(7.044,2.476)--(7.115,2.476)%
  --(7.186,2.476)--(7.258,2.476)--(7.329,2.476)--(7.401,2.475)--(7.472,2.475)--(7.543,2.471)%
  --(7.615,2.466)--(7.686,2.466)--(7.758,2.466)--(7.829,2.466)--(7.901,2.466)--(7.972,2.466)%
  --(8.043,2.457)--(8.115,2.457)--(8.186,2.457)--(8.258,2.457)--(8.329,2.457)--(8.400,2.445)%
  --(8.472,2.426)--(8.543,2.426)--(8.615,2.400)--(8.686,2.400)--(8.757,2.400)--(8.829,2.319)%
  --(8.900,2.260)--(8.972,2.187)--(9.043,2.187)--(9.114,2.187)--(9.186,2.187)--(9.257,2.187)%
  --(9.329,2.187)--(9.400,2.187)--(9.472,2.187)--(9.543,2.187)--(9.614,2.187)--(9.686,2.187)%
  --(9.757,2.187)--(9.829,2.187)--(9.900,2.187)--(9.971,2.187)--(10.043,2.098)--(10.114,2.098)%
  --(10.186,2.098)--(10.257,2.098)--(10.328,2.098)--(10.400,2.098)--(10.471,2.098)--(10.543,2.098)%
  --(10.614,1.867)--(10.685,1.867)--(10.757,1.867)--(10.828,1.867)--(10.900,1.867)--(10.971,1.867)%
  --(11.042,1.867)--(11.114,1.867)--(11.185,1.867)--(11.257,1.723)--(11.328,1.723)--(11.400,1.723)%
  --(11.471,1.723)--(11.542,1.723)--(11.614,1.723)--(11.685,1.559)--(11.757,1.559)--(11.828,1.376)%
  --(11.899,1.376)--(11.947,1.915);
\gpcolor{color=gp lt color border}
\draw[gp path] (1.688,8.441)--(1.688,0.985)--(11.947,0.985);
%% coordinates of the plot area
\gpdefrectangularnode{gp plot 1}{\pgfpoint{1.688cm}{0.985cm}}{\pgfpoint{11.947cm}{8.441cm}}
\end{tikzpicture}
%% gnuplot variables
