\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:42:16 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.1$};
\draw[gp path] (1.504,2.228)--(1.684,2.228);
\node[gp node right] at (1.320,2.228) {$0$};
\draw[gp path] (1.504,3.470)--(1.684,3.470);
\node[gp node right] at (1.320,3.470) {$0.1$};
\draw[gp path] (1.504,4.713)--(1.684,4.713);
\node[gp node right] at (1.320,4.713) {$0.2$};
\draw[gp path] (1.504,5.956)--(1.684,5.956);
\node[gp node right] at (1.320,5.956) {$0.3$};
\draw[gp path] (1.504,7.198)--(1.684,7.198);
\node[gp node right] at (1.320,7.198) {$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.334)--(1.574,6.231)--(1.643,6.231)--(1.713,7.051)--(1.782,7.051)%
  --(1.852,7.725)--(1.922,8.196)--(1.991,8.196)--(2.061,8.423)--(2.131,8.423)--(2.200,8.423)%
  --(2.270,8.388)--(2.339,8.388)--(2.409,8.388)--(2.479,7.563)--(2.548,7.563)--(2.618,7.563)%
  --(2.688,7.563)--(2.757,7.563)--(2.827,7.563)--(2.896,7.563)--(2.966,7.563)--(3.036,7.563)%
  --(3.105,7.563)--(3.175,7.563)--(3.245,7.563)--(3.314,7.563)--(3.384,7.563)--(3.453,7.563)%
  --(3.523,7.563)--(3.593,7.563)--(3.662,7.563)--(3.732,7.563)--(3.801,7.563)--(3.871,7.563)%
  --(3.941,7.563)--(4.010,7.563)--(4.080,7.563)--(4.150,7.563)--(4.219,7.563)--(4.289,7.563)%
  --(4.358,7.563)--(4.428,7.563)--(4.498,7.563)--(4.567,7.563)--(4.637,7.563)--(4.707,7.563)%
  --(4.776,7.563)--(4.846,7.563)--(4.915,7.563)--(4.985,7.563)--(5.055,7.563)--(5.124,7.563)%
  --(5.194,7.563)--(5.263,7.563)--(5.333,7.563)--(5.403,7.563)--(5.472,7.563)--(5.542,7.563)%
  --(5.612,7.563)--(5.681,7.563)--(5.751,7.563)--(5.820,7.563)--(5.890,7.563)--(5.960,7.563)%
  --(6.029,7.563)--(6.099,7.563)--(6.169,7.563)--(6.238,7.563)--(6.308,7.563)--(6.377,7.563)%
  --(6.447,7.563)--(6.517,7.563)--(6.586,7.563)--(6.656,7.563)--(6.726,7.563)--(6.795,7.563)%
  --(6.865,7.563)--(6.934,7.563)--(7.004,7.563)--(7.074,7.563)--(7.143,7.563)--(7.213,7.563)%
  --(7.282,7.563)--(7.352,7.563)--(7.422,7.563)--(7.491,7.563)--(7.561,7.563)--(7.631,7.563)%
  --(7.700,7.563)--(7.770,7.563)--(7.839,7.563)--(7.909,7.563)--(7.979,7.563)--(8.048,7.563)%
  --(8.118,7.563)--(8.188,7.563)--(8.257,7.563)--(8.327,7.563)--(8.396,7.563)--(8.466,7.563)%
  --(8.536,7.563)--(8.605,7.563)--(8.675,7.563)--(8.744,7.563)--(8.814,7.563)--(8.884,7.563)%
  --(8.953,7.563)--(9.023,7.563)--(9.093,7.563)--(9.162,7.563)--(9.232,7.563)--(9.301,7.563)%
  --(9.371,7.563)--(9.441,7.563)--(9.510,7.563)--(9.580,7.563)--(9.650,7.563)--(9.719,7.563)%
  --(9.789,7.563)--(9.858,7.563)--(9.928,7.563)--(9.998,7.563)--(10.067,7.563)--(10.137,7.563)%
  --(10.207,7.563)--(10.276,7.563)--(10.346,7.563)--(10.415,7.563)--(10.485,7.563)--(10.555,7.563)%
  --(10.624,7.563)--(10.694,7.563)--(10.763,7.563)--(10.833,7.563)--(10.903,7.563)--(10.972,7.563)%
  --(11.042,7.563)--(11.112,7.563)--(11.181,7.563)--(11.251,7.563)--(11.320,7.563)--(11.390,7.563)%
  --(11.460,7.563)--(11.529,7.563);
\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,2.228)--(1.574,3.745)--(1.643,3.745)--(1.713,4.565)--(1.782,4.565)%
  --(1.852,5.240)--(1.922,5.710)--(1.991,5.710)--(2.061,5.938)--(2.131,5.938)--(2.200,5.938)%
  --(2.270,5.902)--(2.339,5.902)--(2.409,5.902)--(2.479,5.078)--(2.548,5.078)--(2.618,5.078)%
  --(2.688,5.078)--(2.757,5.078)--(2.827,5.078)--(2.896,5.078)--(2.966,5.078)--(3.036,5.078)%
  --(3.105,5.078)--(3.175,5.078)--(3.245,5.078)--(3.314,5.078)--(3.384,5.078)--(3.453,5.078)%
  --(3.523,5.078)--(3.593,5.078)--(3.662,5.078)--(3.732,5.078)--(3.801,5.078)--(3.871,5.078)%
  --(3.941,5.078)--(4.010,5.078)--(4.080,5.078)--(4.150,5.078)--(4.219,5.078)--(4.289,5.078)%
  --(4.358,5.078)--(4.428,5.078)--(4.498,5.078)--(4.567,5.078)--(4.637,5.078)--(4.707,5.078)%
  --(4.776,5.078)--(4.846,5.078)--(4.915,5.078)--(4.985,5.078)--(5.055,5.078)--(5.124,5.078)%
  --(5.194,5.078)--(5.263,5.078)--(5.333,5.078)--(5.403,5.078)--(5.472,5.078)--(5.542,5.078)%
  --(5.612,5.078)--(5.681,5.078)--(5.751,5.078)--(5.820,5.078)--(5.890,5.078)--(5.960,5.078)%
  --(6.029,5.078)--(6.099,5.078)--(6.169,5.078)--(6.238,5.078)--(6.308,5.078)--(6.377,5.078)%
  --(6.447,5.078)--(6.517,5.078)--(6.586,5.078)--(6.656,5.078)--(6.726,5.078)--(6.795,5.078)%
  --(6.865,5.078)--(6.934,5.078)--(7.004,5.078)--(7.074,5.078)--(7.143,5.078)--(7.213,5.078)%
  --(7.282,5.078)--(7.352,5.078)--(7.422,5.078)--(7.491,5.078)--(7.561,5.078)--(7.631,5.078)%
  --(7.700,5.078)--(7.770,5.078)--(7.839,5.078)--(7.909,5.078)--(7.979,5.078)--(8.048,5.078)%
  --(8.118,5.078)--(8.188,5.078)--(8.257,5.078)--(8.327,5.078)--(8.396,5.078)--(8.466,5.078)%
  --(8.536,5.078)--(8.605,5.078)--(8.675,5.078)--(8.744,5.078)--(8.814,5.078)--(8.884,5.078)%
  --(8.953,5.078)--(9.023,5.078)--(9.093,5.078)--(9.162,5.078)--(9.232,5.078)--(9.301,5.078)%
  --(9.371,5.078)--(9.441,5.078)--(9.510,5.078)--(9.580,5.078)--(9.650,5.078)--(9.719,5.078)%
  --(9.789,5.078)--(9.858,5.078)--(9.928,5.078)--(9.998,5.078)--(10.067,5.078)--(10.137,5.078)%
  --(10.207,5.078)--(10.276,5.078)--(10.346,5.078)--(10.415,5.078)--(10.485,5.078)--(10.555,5.078)%
  --(10.624,5.078)--(10.694,5.078)--(10.763,5.078)--(10.833,5.078)--(10.903,5.078)--(10.972,5.078)%
  --(11.042,5.078)--(11.112,5.078)--(11.181,5.078)--(11.251,5.078)--(11.320,5.078)--(11.390,5.078)%
  --(11.460,5.078)--(11.529,5.078);
\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,1.606)--(1.574,2.228)--(1.643,2.228)--(1.713,2.228)--(1.782,2.228)%
  --(1.852,2.228)--(1.922,2.228)--(1.991,2.228)--(2.061,2.228)--(2.131,2.228)--(2.200,2.228)%
  --(2.270,2.228)--(2.339,2.228)--(2.409,2.228)--(2.479,2.228)--(2.548,2.228)--(2.618,2.228)%
  --(2.688,2.228)--(2.757,2.228)--(2.827,2.228)--(2.896,2.228)--(2.966,2.228)--(3.036,2.228)%
  --(3.105,2.228)--(3.175,2.228)--(3.245,2.228)--(3.314,2.228)--(3.384,2.228)--(3.453,2.228)%
  --(3.523,2.228)--(3.593,2.228)--(3.662,2.228)--(3.732,2.228)--(3.801,2.228)--(3.871,2.228)%
  --(3.941,2.228)--(4.010,2.228)--(4.080,2.228)--(4.150,2.228)--(4.219,2.228)--(4.289,2.228)%
  --(4.358,2.228)--(4.428,2.228)--(4.498,2.228)--(4.567,2.228)--(4.637,2.228)--(4.707,2.228)%
  --(4.776,2.228)--(4.846,2.228)--(4.915,2.228)--(4.985,2.228)--(5.055,2.228)--(5.124,2.228)%
  --(5.194,2.228)--(5.263,2.228)--(5.333,2.228)--(5.403,2.228)--(5.472,2.228)--(5.542,2.228)%
  --(5.612,2.228)--(5.681,2.228)--(5.751,2.228)--(5.820,2.228)--(5.890,2.228)--(5.960,2.228)%
  --(6.029,2.228)--(6.099,2.228)--(6.169,2.228)--(6.238,2.228)--(6.308,2.228)--(6.377,2.228)%
  --(6.447,2.228)--(6.517,2.228)--(6.586,2.228)--(6.656,2.228)--(6.726,2.228)--(6.795,2.228)%
  --(6.865,2.228)--(6.934,2.228)--(7.004,2.228)--(7.074,2.228)--(7.143,2.228)--(7.213,2.228)%
  --(7.282,2.228)--(7.352,2.228)--(7.422,2.228)--(7.491,2.228)--(7.561,2.228)--(7.631,2.228)%
  --(7.700,2.228)--(7.770,2.228)--(7.839,2.228)--(7.909,2.228)--(7.979,2.228)--(8.048,2.228)%
  --(8.118,2.228)--(8.188,2.228)--(8.257,2.228)--(8.327,2.228)--(8.396,2.228)--(8.466,2.228)%
  --(8.536,2.228)--(8.605,2.228)--(8.675,2.228)--(8.744,2.228)--(8.814,2.228)--(8.884,2.228)%
  --(8.953,2.228)--(9.023,2.228)--(9.093,2.228)--(9.162,2.228)--(9.232,2.228)--(9.301,2.228)%
  --(9.371,2.228)--(9.441,2.228)--(9.510,2.228)--(9.580,2.228)--(9.650,2.228)--(9.719,2.228)%
  --(9.789,2.228)--(9.858,2.228)--(9.928,2.228)--(9.998,2.228)--(10.067,2.228)--(10.137,2.228)%
  --(10.207,2.228)--(10.276,2.228)--(10.346,2.228)--(10.415,2.228)--(10.485,2.228)--(10.555,2.228)%
  --(10.624,2.228)--(10.694,2.228)--(10.763,2.228)--(10.833,2.228)--(10.903,2.228)--(10.972,2.228)%
  --(11.042,2.228)--(11.112,2.228)--(11.181,2.228)--(11.251,2.228)--(11.320,2.228)--(11.390,2.228)%
  --(11.460,2.228)--(11.529,2.228);
\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,2.228)--(1.605,2.228)--(1.707,2.228)--(1.808,2.228)--(1.909,2.228)%
  --(2.010,2.228)--(2.112,2.228)--(2.213,2.228)--(2.314,2.228)--(2.415,2.228)--(2.517,2.228)%
  --(2.618,2.228)--(2.719,2.228)--(2.820,2.228)--(2.922,2.228)--(3.023,2.228)--(3.124,2.228)%
  --(3.226,2.228)--(3.327,2.228)--(3.428,2.228)--(3.529,2.228)--(3.631,2.228)--(3.732,2.228)%
  --(3.833,2.228)--(3.934,2.228)--(4.036,2.228)--(4.137,2.228)--(4.238,2.228)--(4.339,2.228)%
  --(4.441,2.228)--(4.542,2.228)--(4.643,2.228)--(4.744,2.228)--(4.846,2.228)--(4.947,2.228)%
  --(5.048,2.228)--(5.150,2.228)--(5.251,2.228)--(5.352,2.228)--(5.453,2.228)--(5.555,2.228)%
  --(5.656,2.228)--(5.757,2.228)--(5.858,2.228)--(5.960,2.228)--(6.061,2.228)--(6.162,2.228)%
  --(6.263,2.228)--(6.365,2.228)--(6.466,2.228)--(6.567,2.228)--(6.669,2.228)--(6.770,2.228)%
  --(6.871,2.228)--(6.972,2.228)--(7.074,2.228)--(7.175,2.228)--(7.276,2.228)--(7.377,2.228)%
  --(7.479,2.228)--(7.580,2.228)--(7.681,2.228)--(7.782,2.228)--(7.884,2.228)--(7.985,2.228)%
  --(8.086,2.228)--(8.188,2.228)--(8.289,2.228)--(8.390,2.228)--(8.491,2.228)--(8.593,2.228)%
  --(8.694,2.228)--(8.795,2.228)--(8.896,2.228)--(8.998,2.228)--(9.099,2.228)--(9.200,2.228)%
  --(9.301,2.228)--(9.403,2.228)--(9.504,2.228)--(9.605,2.228)--(9.707,2.228)--(9.808,2.228)%
  --(9.909,2.228)--(10.010,2.228)--(10.112,2.228)--(10.213,2.228)--(10.314,2.228)--(10.415,2.228)%
  --(10.517,2.228)--(10.618,2.228)--(10.719,2.228)--(10.820,2.228)--(10.922,2.228)--(11.023,2.228)%
  --(11.124,2.228)--(11.225,2.228)--(11.327,2.228)--(11.428,2.228)--(11.529,2.228);
\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}
