\documentclass[10pt]{article}
\usepackage[T1]{fontenc}
\usepackage{textcomp}

\usepackage{ifluatex,ifxetex}
\ifluatex
  \usepackage{fontspec}
  \setmainfont{Free Serif}
\else\ifxetex
  \usepackage{fontspec}
  \setmainfont{FreeSerif}
\else
  \usepackage{ucs}
  \SetUnicodeOption{mathletters}
  \usepackage[utf8x]{inputenc}
\fi\fi

\usepackage{gnuplot-lua-tikz}
\pagestyle{empty}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{\gpbboxborder}
\begin{document}

\begin{tikzpicture}[gnuplot]
%% generated with GNUPLOT 5.4p8 (Lua 5.3; terminal rev. Jun 2020, script rev. 118)
%% Thu Oct 26 18:11:02 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_{61}\)};
\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,7.695)--(1.792,7.695)--(1.895,7.695)--(1.999,7.695)--(2.103,7.695)%
  --(2.206,7.695)--(2.310,7.695)--(2.413,7.695)--(2.517,7.695)--(2.621,7.695)--(2.724,7.695)%
  --(2.828,7.695)--(2.932,7.695)--(3.035,7.695)--(3.139,7.695)--(3.242,7.695)--(3.346,7.695)%
  --(3.450,7.695)--(3.553,7.695)--(3.657,7.695)--(3.761,7.695)--(3.864,7.695)--(3.968,7.695)%
  --(4.071,7.695)--(4.175,7.695)--(4.279,7.695)--(4.382,7.695)--(4.486,7.695)--(4.590,7.695)%
  --(4.693,7.695)--(4.797,7.695)--(4.900,7.695)--(5.004,7.695)--(5.108,7.695)--(5.211,7.695)%
  --(5.315,7.695)--(5.419,7.695)--(5.522,7.695)--(5.626,7.695)--(5.729,7.695)--(5.833,7.695)%
  --(5.937,7.695)--(6.040,7.695)--(6.144,7.695)--(6.248,7.695)--(6.351,7.695)--(6.455,7.695)%
  --(6.558,7.695)--(6.662,7.695)--(6.766,7.695)--(6.869,7.695)--(6.973,7.695)--(7.077,7.695)%
  --(7.180,7.695)--(7.284,7.695)--(7.387,7.695)--(7.491,7.695)--(7.595,7.695)--(7.698,7.695)%
  --(7.802,7.695)--(7.906,7.695)--(8.009,7.695)--(8.113,7.695)--(8.216,7.695)--(8.320,7.695)%
  --(8.424,7.695)--(8.527,7.695)--(8.631,7.695)--(8.735,7.695)--(8.838,7.695)--(8.942,7.695)%
  --(9.045,7.695)--(9.149,7.695)--(9.253,7.695)--(9.356,7.695)--(9.460,7.695)--(9.564,7.695)%
  --(9.667,7.695)--(9.771,7.695)--(9.874,7.695)--(9.978,7.695)--(10.082,7.695)--(10.185,7.695)%
  --(10.289,7.695)--(10.393,7.695)--(10.496,7.695)--(10.600,7.695)--(10.703,7.695)--(10.807,7.695)%
  --(10.911,7.695)--(11.014,7.695)--(11.118,7.695)--(11.222,7.695)--(11.325,7.695)--(11.429,7.695)%
  --(11.532,7.695)--(11.636,7.695)--(11.740,7.695)--(11.843,7.695)--(11.947,7.695);
\gpcolor{color=gp lt color border}
\node[gp node right] at (3.482,7.887) {\(UD_{62}\)};
\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,7.695)--(1.759,4.713)--(1.831,4.713)--(1.902,4.713)--(1.974,4.713)%
  --(2.045,4.713)--(2.116,4.713)--(2.188,4.713)--(2.259,4.713)--(2.331,4.713)--(2.402,4.713)%
  --(2.473,4.713)--(2.545,4.713)--(2.616,4.713)--(2.688,4.713)--(2.759,4.713)--(2.831,4.713)%
  --(2.902,4.713)--(2.973,4.713)--(3.045,4.713)--(3.116,4.713)--(3.188,4.713)--(3.259,4.713)%
  --(3.330,4.713)--(3.402,4.713)--(3.473,4.713)--(3.545,4.713)--(3.616,4.713)--(3.687,4.713)%
  --(3.759,4.713)--(3.830,4.713)--(3.902,4.713)--(3.973,4.713)--(4.044,4.713)--(4.116,4.713)%
  --(4.187,4.713)--(4.259,4.713)--(4.330,4.713)--(4.402,4.713)--(4.473,4.713)--(4.544,4.713)%
  --(4.616,4.713)--(4.687,4.713)--(4.759,4.713)--(4.830,4.713)--(4.901,4.713)--(4.973,4.713)%
  --(5.044,4.713)--(5.116,4.713)--(5.187,4.713)--(5.258,4.713)--(5.330,4.713)--(5.401,4.713)%
  --(5.473,4.713)--(5.544,4.713)--(5.615,4.713)--(5.687,4.713)--(5.758,4.713)--(5.830,4.713)%
  --(5.901,4.713)--(5.973,4.713)--(6.044,4.713)--(6.115,4.713)--(6.187,4.713)--(6.258,4.713)%
  --(6.330,4.713)--(6.401,4.713)--(6.472,4.713)--(6.544,4.713)--(6.615,4.713)--(6.687,4.713)%
  --(6.758,4.713)--(6.829,4.713)--(6.901,4.713)--(6.972,4.713)--(7.044,4.713)--(7.115,4.713)%
  --(7.186,4.713)--(7.258,4.713)--(7.329,4.713)--(7.401,4.713)--(7.472,4.713)--(7.543,4.713)%
  --(7.615,4.713)--(7.686,4.713)--(7.758,4.713)--(7.829,4.713)--(7.901,4.713)--(7.972,4.713)%
  --(8.043,4.713)--(8.115,4.713)--(8.186,4.713)--(8.258,4.713)--(8.329,4.713)--(8.400,4.713)%
  --(8.472,4.713)--(8.543,4.713)--(8.615,4.713)--(8.686,4.713)--(8.757,4.713)--(8.829,4.713)%
  --(8.900,4.713)--(8.972,4.713)--(9.043,4.713)--(9.114,4.713)--(9.186,4.713)--(9.257,4.713)%
  --(9.329,4.713)--(9.400,4.713)--(9.472,4.713)--(9.543,4.713)--(9.614,4.713)--(9.686,4.713)%
  --(9.757,4.713)--(9.829,4.713)--(9.900,4.713)--(9.971,4.713)--(10.043,4.713)--(10.114,4.713)%
  --(10.186,4.713)--(10.257,4.713)--(10.328,4.713)--(10.400,4.713)--(10.471,4.713)--(10.543,4.713)%
  --(10.614,4.713)--(10.685,4.713)--(10.757,4.713)--(10.828,4.713)--(10.900,4.713)--(10.971,4.713)%
  --(11.042,4.713)--(11.114,4.713)--(11.185,4.713)--(11.257,4.713)--(11.328,4.713)--(11.400,4.713)%
  --(11.471,4.713)--(11.542,4.713)--(11.614,4.713)--(11.685,4.713)--(11.757,4.713)--(11.828,4.713)%
  --(11.899,4.713)--(11.947,4.713);
\gpcolor{color=gp lt color border}
\node[gp node right] at (3.482,7.518) {\(P_{62}\)};
\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,1.731)--(1.831,1.731)--(1.902,1.731)--(1.974,1.731)%
  --(2.045,1.731)--(2.116,1.731)--(2.188,1.731)--(2.259,1.731)--(2.331,1.731)--(2.402,1.731)%
  --(2.473,1.731)--(2.545,1.731)--(2.616,1.731)--(2.688,1.731)--(2.759,1.731)--(2.831,1.731)%
  --(2.902,1.731)--(2.973,1.731)--(3.045,1.731)--(3.116,1.731)--(3.188,1.731)--(3.259,1.731)%
  --(3.330,1.731)--(3.402,1.731)--(3.473,1.731)--(3.545,1.731)--(3.616,1.731)--(3.687,1.731)%
  --(3.759,1.731)--(3.830,1.731)--(3.902,1.731)--(3.973,1.731)--(4.044,1.731)--(4.116,1.731)%
  --(4.187,1.731)--(4.259,1.731)--(4.330,1.731)--(4.402,1.731)--(4.473,1.731)--(4.544,1.731)%
  --(4.616,1.731)--(4.687,1.731)--(4.759,1.731)--(4.830,1.731)--(4.901,1.731)--(4.973,1.731)%
  --(5.044,1.731)--(5.116,1.731)--(5.187,1.731)--(5.258,1.731)--(5.330,1.731)--(5.401,1.731)%
  --(5.473,1.731)--(5.544,1.731)--(5.615,1.731)--(5.687,1.731)--(5.758,1.731)--(5.830,1.731)%
  --(5.901,1.731)--(5.973,1.731)--(6.044,1.731)--(6.115,1.731)--(6.187,1.731)--(6.258,1.731)%
  --(6.330,1.731)--(6.401,1.731)--(6.472,1.731)--(6.544,1.731)--(6.615,1.731)--(6.687,1.731)%
  --(6.758,1.731)--(6.829,1.731)--(6.901,1.731)--(6.972,1.731)--(7.044,1.731)--(7.115,1.731)%
  --(7.186,1.731)--(7.258,1.731)--(7.329,1.731)--(7.401,1.731)--(7.472,1.731)--(7.543,1.731)%
  --(7.615,1.731)--(7.686,1.731)--(7.758,1.731)--(7.829,1.731)--(7.901,1.731)--(7.972,1.731)%
  --(8.043,1.731)--(8.115,1.731)--(8.186,1.731)--(8.258,1.731)--(8.329,1.731)--(8.400,1.731)%
  --(8.472,1.731)--(8.543,1.731)--(8.615,1.731)--(8.686,1.731)--(8.757,1.731)--(8.829,1.731)%
  --(8.900,1.731)--(8.972,1.731)--(9.043,1.731)--(9.114,1.731)--(9.186,1.731)--(9.257,1.731)%
  --(9.329,1.731)--(9.400,1.731)--(9.472,1.731)--(9.543,1.731)--(9.614,1.731)--(9.686,1.731)%
  --(9.757,1.731)--(9.829,1.731)--(9.900,1.731)--(9.971,1.731)--(10.043,1.731)--(10.114,1.731)%
  --(10.186,1.731)--(10.257,1.731)--(10.328,1.731)--(10.400,1.731)--(10.471,1.731)--(10.543,1.731)%
  --(10.614,1.731)--(10.685,1.731)--(10.757,1.731)--(10.828,1.731)--(10.900,1.731)--(10.971,1.731)%
  --(11.042,1.731)--(11.114,1.731)--(11.185,1.731)--(11.257,1.731)--(11.328,1.731)--(11.400,1.731)%
  --(11.471,1.731)--(11.542,1.731)--(11.614,1.731)--(11.685,1.731)--(11.757,1.731)--(11.828,1.731)%
  --(11.899,1.731)--(11.947,1.731);
\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
\end{document}
