\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)
%% Tue Oct 24 19:41:10 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.504,0.985)--(1.684,0.985);
\node[gp node right] at (1.320,0.985) {$-0.2$};
\draw[gp path] (1.504,2.050)--(1.684,2.050);
\node[gp node right] at (1.320,2.050) {$-0.1$};
\draw[gp path] (1.504,3.115)--(1.684,3.115);
\node[gp node right] at (1.320,3.115) {$0$};
\draw[gp path] (1.504,4.180)--(1.684,4.180);
\node[gp node right] at (1.320,4.180) {$0.1$};
\draw[gp path] (1.504,5.246)--(1.684,5.246);
\node[gp node right] at (1.320,5.246) {$0.2$};
\draw[gp path] (1.504,6.311)--(1.684,6.311);
\node[gp node right] at (1.320,6.311) {$0.3$};
\draw[gp path] (1.504,7.376)--(1.684,7.376);
\node[gp node right] at (1.320,7.376) {$0.4$};
\draw[gp path] (1.504,8.441)--(1.684,8.441);
\node[gp node right] at (1.320,8.441) {$0.5$};
\draw[gp path] (1.504,0.985)--(1.504,1.165);
\node[gp node center] at (1.504,0.677) {$0$};
\draw[gp path] (2.664,0.985)--(2.664,1.165);
\node[gp node center] at (2.664,0.677) {$10000$};
\draw[gp path] (3.825,0.985)--(3.825,1.165);
\node[gp node center] at (3.825,0.677) {$20000$};
\draw[gp path] (4.985,0.985)--(4.985,1.165);
\node[gp node center] at (4.985,0.677) {$30000$};
\draw[gp path] (6.145,0.985)--(6.145,1.165);
\node[gp node center] at (6.145,0.677) {$40000$};
\draw[gp path] (7.306,0.985)--(7.306,1.165);
\node[gp node center] at (7.306,0.677) {$50000$};
\draw[gp path] (8.466,0.985)--(8.466,1.165);
\node[gp node center] at (8.466,0.677) {$60000$};
\draw[gp path] (9.626,0.985)--(9.626,1.165);
\node[gp node center] at (9.626,0.677) {$70000$};
\draw[gp path] (10.787,0.985)--(10.787,1.165);
\node[gp node center] at (10.787,0.677) {$80000$};
\draw[gp path] (11.947,0.985)--(11.947,1.165);
\node[gp node center] at (11.947,0.677) {$90000$};
\draw[gp path] (1.504,8.441)--(1.504,0.985)--(11.947,0.985);
\node[gp node center,rotate=-270] at (0.108,4.713) {\(P\) W};
\node[gp node center] at (6.725,0.215) {Time};
\node[gp node right] at (-1.868,8.164) {\(PAv_{DG_5}\)};
\gpcolor{rgb color={0.580,0.000,0.827}}
\draw[gp path] (-1.684,8.164)--(-0.768,8.164);
\draw[gp path] (1.504,5.778)--(1.574,6.546)--(1.643,6.546)--(1.713,7.249)--(1.782,7.249)%
  --(1.852,7.827)--(1.922,8.231)--(1.991,8.231)--(2.061,8.426)--(2.131,8.426)--(2.200,8.426)%
  --(2.270,8.395)--(2.339,8.395)--(2.409,8.395)--(2.479,7.689)--(2.548,7.689)--(2.618,7.689)%
  --(2.688,7.689)--(2.757,7.689)--(2.827,7.689)--(2.896,7.689)--(2.966,7.689)--(3.036,7.689)%
  --(3.105,7.689)--(3.175,7.689)--(3.245,7.689)--(3.314,7.072)--(3.384,7.072)--(3.453,7.072)%
  --(3.523,7.072)--(3.593,7.072)--(3.662,6.346)--(3.732,6.346)--(3.801,6.346)--(3.871,4.814)%
  --(3.941,4.814)--(4.010,4.139)--(4.080,3.603)--(4.150,3.603)--(4.219,3.116)--(4.289,3.116)%
  --(4.358,3.207)--(4.428,3.516)--(4.498,4.018)--(4.567,4.018)--(4.637,4.018)--(4.707,5.415)%
  --(4.776,6.933)--(4.846,6.933)--(4.915,6.933)--(4.985,7.576)--(5.055,7.576)--(5.124,7.576)%
  --(5.194,7.576)--(5.263,7.576)--(5.333,7.576)--(5.403,7.576)--(5.472,8.066)--(5.542,8.066)%
  --(5.612,8.362)--(5.681,8.362)--(5.751,8.438)--(5.820,8.288)--(5.890,8.288)--(5.960,8.288)%
  --(6.029,8.288)--(6.099,8.288)--(6.169,8.288)--(6.238,8.288)--(6.308,8.288)--(6.377,8.288)%
  --(6.447,8.288)--(6.517,8.288)--(6.586,8.288)--(6.656,8.288)--(6.726,8.288)--(6.795,8.288)%
  --(6.865,8.288)--(6.934,8.288)--(7.004,8.288)--(7.074,7.924)--(7.143,7.378)--(7.213,6.695)%
  --(7.282,6.695)--(7.352,5.935)--(7.422,5.935)--(7.491,5.935)--(7.561,5.935)--(7.631,5.161)%
  --(7.700,3.833)--(7.770,3.833)--(7.839,3.833)--(7.909,3.833)--(7.979,3.833)--(8.048,3.833)%
  --(8.118,3.833)--(8.188,3.833)--(8.257,3.833)--(8.327,3.833)--(8.396,3.833)--(8.466,3.833)%
  --(8.536,3.833)--(8.605,3.833)--(8.675,3.833)--(8.744,3.833)--(8.814,3.833)--(8.884,3.833)%
  --(8.953,3.833)--(9.023,3.833)--(9.093,3.833)--(9.162,3.833)--(9.232,3.833)--(9.301,3.152)%
  --(9.371,3.346)--(9.441,3.346)--(9.510,3.346)--(9.580,3.346)--(9.650,3.346)--(9.719,3.346)%
  --(9.789,3.346)--(9.858,3.762)--(9.928,3.762)--(9.998,3.762)--(10.067,4.349)--(10.137,4.349)%
  --(10.207,4.349)--(10.276,4.349)--(10.346,4.349)--(10.415,4.349)--(10.485,4.349)--(10.555,4.349)%
  --(10.624,4.349)--(10.694,4.349)--(10.763,4.349)--(10.833,4.349)--(10.903,4.349)--(10.972,5.058)%
  --(11.042,5.829)--(11.112,5.829)--(11.181,5.829)--(11.251,5.829)--(11.320,6.595)--(11.390,7.291)%
  --(11.460,7.291)--(11.529,7.291);
\gpcolor{color=gp lt color border}
\node[gp node right] at (-1.868,7.610) {\(P_{62}\)};
\gpcolor{rgb color={0.000,0.620,0.451}}
\draw[gp path] (-1.684,7.610)--(-0.768,7.610);
\draw[gp path] (1.504,3.115)--(1.574,4.416)--(1.643,4.416)--(1.713,5.119)--(1.782,5.119)%
  --(1.852,5.697)--(1.922,6.100)--(1.991,6.100)--(2.061,6.295)--(2.131,6.295)--(2.200,6.295)%
  --(2.270,6.265)--(2.339,6.265)--(2.409,6.265)--(2.479,5.558)--(2.548,5.558)--(2.618,5.558)%
  --(2.688,5.558)--(2.757,5.558)--(2.827,5.558)--(2.896,5.558)--(2.966,5.558)--(3.036,5.558)%
  --(3.105,5.558)--(3.175,5.558)--(3.245,5.558)--(3.314,4.942)--(3.384,4.942)--(3.453,4.942)%
  --(3.523,4.942)--(3.593,4.942)--(3.662,4.215)--(3.732,4.215)--(3.801,4.215)--(3.871,2.683)%
  --(3.941,2.683)--(4.010,2.008)--(4.080,1.473)--(4.150,1.473)--(4.219,0.986)--(4.289,0.986)%
  --(4.358,1.077)--(4.428,1.386)--(4.498,1.888)--(4.567,1.888)--(4.637,1.888)--(4.707,3.285)%
  --(4.776,4.803)--(4.846,4.803)--(4.915,4.803)--(4.985,5.446)--(5.055,5.446)--(5.124,5.446)%
  --(5.194,5.446)--(5.263,5.446)--(5.333,5.446)--(5.403,5.446)--(5.472,5.936)--(5.542,5.936)%
  --(5.612,6.232)--(5.681,6.232)--(5.751,6.308)--(5.820,6.157)--(5.890,6.157)--(5.960,6.157)%
  --(6.029,6.157)--(6.099,6.157)--(6.169,6.157)--(6.238,6.157)--(6.308,6.157)--(6.377,6.157)%
  --(6.447,6.157)--(6.517,6.157)--(6.586,6.157)--(6.656,6.157)--(6.726,6.157)--(6.795,6.157)%
  --(6.865,6.157)--(6.934,6.157)--(7.004,6.157)--(7.074,5.794)--(7.143,5.247)--(7.213,4.565)%
  --(7.282,4.565)--(7.352,3.805)--(7.422,3.805)--(7.491,3.805)--(7.561,3.805)--(7.631,3.031)%
  --(7.700,1.703)--(7.770,1.703)--(7.839,1.703)--(7.909,1.703)--(7.979,1.703)--(8.048,1.703)%
  --(8.118,1.703)--(8.188,1.703)--(8.257,1.703)--(8.327,1.703)--(8.396,1.703)--(8.466,1.703)%
  --(8.536,1.703)--(8.605,1.703)--(8.675,1.703)--(8.744,1.703)--(8.814,1.703)--(8.884,1.703)%
  --(8.953,1.703)--(9.023,1.703)--(9.093,1.703)--(9.162,1.703)--(9.232,1.703)--(9.301,1.022)%
  --(9.371,1.215)--(9.441,1.215)--(9.510,1.215)--(9.580,1.215)--(9.650,1.215)--(9.719,1.215)%
  --(9.789,1.215)--(9.858,1.631)--(9.928,1.631)--(9.998,1.631)--(10.067,2.219)--(10.137,2.219)%
  --(10.207,2.219)--(10.276,2.219)--(10.346,2.219)--(10.415,2.219)--(10.485,2.219)--(10.555,2.219)%
  --(10.624,2.219)--(10.694,2.219)--(10.763,2.219)--(10.833,2.219)--(10.903,2.219)--(10.972,2.928)%
  --(11.042,3.698)--(11.112,3.698)--(11.181,3.698)--(11.251,3.698)--(11.320,4.464)--(11.390,5.161)%
  --(11.460,5.161)--(11.529,4.222);
\gpcolor{color=gp lt color border}
\node[gp node right] at (-1.868,7.056) {\(UnsuppliedDemand_{62}\)};
\gpcolor{rgb color={0.337,0.706,0.914}}
\draw[gp path] (-1.684,7.056)--(-0.768,7.056);
\draw[gp path] (1.504,2.583)--(1.574,3.115)--(1.643,3.115)--(1.713,3.115)--(1.782,3.115)%
  --(1.852,3.115)--(1.922,3.115)--(1.991,3.115)--(2.061,3.115)--(2.131,3.115)--(2.200,3.115)%
  --(2.270,3.115)--(2.339,3.115)--(2.409,3.115)--(2.479,3.115)--(2.548,3.115)--(2.618,3.115)%
  --(2.688,3.115)--(2.757,3.115)--(2.827,3.115)--(2.896,3.115)--(2.966,3.115)--(3.036,3.115)%
  --(3.105,3.115)--(3.175,3.115)--(3.245,3.115)--(3.314,3.115)--(3.384,3.115)--(3.453,3.115)%
  --(3.523,3.115)--(3.593,3.115)--(3.662,3.115)--(3.732,3.115)--(3.801,3.115)--(3.871,3.115)%
  --(3.941,3.115)--(4.010,3.115)--(4.080,3.115)--(4.150,3.115)--(4.219,3.115)--(4.289,3.115)%
  --(4.358,3.115)--(4.428,3.115)--(4.498,3.115)--(4.567,3.115)--(4.637,3.115)--(4.707,3.115)%
  --(4.776,3.115)--(4.846,3.115)--(4.915,3.115)--(4.985,3.115)--(5.055,3.115)--(5.124,3.115)%
  --(5.194,3.115)--(5.263,3.115)--(5.333,3.115)--(5.403,3.115)--(5.472,3.115)--(5.542,3.115)%
  --(5.612,3.115)--(5.681,3.115)--(5.751,3.115)--(5.820,3.115)--(5.890,3.115)--(5.960,3.115)%
  --(6.029,3.115)--(6.099,3.115)--(6.169,3.115)--(6.238,3.115)--(6.308,3.115)--(6.377,3.115)%
  --(6.447,3.115)--(6.517,3.115)--(6.586,3.115)--(6.656,3.115)--(6.726,3.115)--(6.795,3.115)%
  --(6.865,3.115)--(6.934,3.115)--(7.004,3.115)--(7.074,3.115)--(7.143,3.115)--(7.213,3.115)%
  --(7.282,3.115)--(7.352,3.115)--(7.422,3.115)--(7.491,3.115)--(7.561,3.115)--(7.631,3.115)%
  --(7.700,3.115)--(7.770,3.115)--(7.839,3.115)--(7.909,3.115)--(7.979,3.115)--(8.048,3.115)%
  --(8.118,3.115)--(8.188,3.115)--(8.257,3.115)--(8.327,3.115)--(8.396,3.115)--(8.466,3.115)%
  --(8.536,3.115)--(8.605,3.115)--(8.675,3.115)--(8.744,3.115)--(8.814,3.115)--(8.884,3.115)%
  --(8.953,3.115)--(9.023,3.115)--(9.093,3.115)--(9.162,3.115)--(9.232,3.115)--(9.301,3.115)%
  --(9.371,3.115)--(9.441,3.115)--(9.510,3.115)--(9.580,3.115)--(9.650,3.115)--(9.719,3.115)%
  --(9.789,3.115)--(9.858,3.115)--(9.928,3.115)--(9.998,3.115)--(10.067,3.115)--(10.137,3.115)%
  --(10.207,3.115)--(10.276,3.115)--(10.346,3.115)--(10.415,3.115)--(10.485,3.115)--(10.555,3.115)%
  --(10.624,3.115)--(10.694,3.115)--(10.763,3.115)--(10.833,3.115)--(10.903,3.115)--(10.972,3.115)%
  --(11.042,3.115)--(11.112,3.115)--(11.181,3.115)--(11.251,3.115)--(11.320,3.115)--(11.390,3.115)%
  --(11.460,3.115)--(11.529,2.177);
\gpcolor{color=gp lt color border}
\node[gp node right] at (-1.868,6.502) {$0$};
\gpcolor{rgb color={0.902,0.624,0.000}}
\draw[gp path] (-1.684,6.502)--(-0.768,6.502);
\draw[gp path] (1.504,3.115)--(1.605,3.115)--(1.707,3.115)--(1.808,3.115)--(1.909,3.115)%
  --(2.010,3.115)--(2.112,3.115)--(2.213,3.115)--(2.314,3.115)--(2.415,3.115)--(2.517,3.115)%
  --(2.618,3.115)--(2.719,3.115)--(2.820,3.115)--(2.922,3.115)--(3.023,3.115)--(3.124,3.115)%
  --(3.226,3.115)--(3.327,3.115)--(3.428,3.115)--(3.529,3.115)--(3.631,3.115)--(3.732,3.115)%
  --(3.833,3.115)--(3.934,3.115)--(4.036,3.115)--(4.137,3.115)--(4.238,3.115)--(4.339,3.115)%
  --(4.441,3.115)--(4.542,3.115)--(4.643,3.115)--(4.744,3.115)--(4.846,3.115)--(4.947,3.115)%
  --(5.048,3.115)--(5.150,3.115)--(5.251,3.115)--(5.352,3.115)--(5.453,3.115)--(5.555,3.115)%
  --(5.656,3.115)--(5.757,3.115)--(5.858,3.115)--(5.960,3.115)--(6.061,3.115)--(6.162,3.115)%
  --(6.263,3.115)--(6.365,3.115)--(6.466,3.115)--(6.567,3.115)--(6.669,3.115)--(6.770,3.115)%
  --(6.871,3.115)--(6.972,3.115)--(7.074,3.115)--(7.175,3.115)--(7.276,3.115)--(7.377,3.115)%
  --(7.479,3.115)--(7.580,3.115)--(7.681,3.115)--(7.782,3.115)--(7.884,3.115)--(7.985,3.115)%
  --(8.086,3.115)--(8.188,3.115)--(8.289,3.115)--(8.390,3.115)--(8.491,3.115)--(8.593,3.115)%
  --(8.694,3.115)--(8.795,3.115)--(8.896,3.115)--(8.998,3.115)--(9.099,3.115)--(9.200,3.115)%
  --(9.301,3.115)--(9.403,3.115)--(9.504,3.115)--(9.605,3.115)--(9.707,3.115)--(9.808,3.115)%
  --(9.909,3.115)--(10.010,3.115)--(10.112,3.115)--(10.213,3.115)--(10.314,3.115)--(10.415,3.115)%
  --(10.517,3.115)--(10.618,3.115)--(10.719,3.115)--(10.820,3.115)--(10.922,3.115)--(11.023,3.115)%
  --(11.124,3.115)--(11.225,3.115)--(11.327,3.115)--(11.428,3.115)--(11.529,3.115);
\gpcolor{color=gp lt color border}
\draw[gp path] (1.504,8.441)--(1.504,0.985)--(11.947,0.985);
%% coordinates of the plot area
\gpdefrectangularnode{gp plot 1}{\pgfpoint{1.504cm}{0.985cm}}{\pgfpoint{11.947cm}{8.441cm}}
\end{tikzpicture}
%% gnuplot variables
\end{document}
