\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:01 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.05$};
\draw[gp path] (1.688,2.849)--(1.868,2.849);
\node[gp node right] at (1.504,2.849) {$0.055$};
\draw[gp path] (1.688,4.713)--(1.868,4.713);
\node[gp node right] at (1.504,4.713) {$0.06$};
\draw[gp path] (1.688,6.577)--(1.868,6.577);
\node[gp node right] at (1.504,6.577) {$0.065$};
\draw[gp path] (1.688,8.441)--(1.868,8.441);
\node[gp node right] at (1.504,8.441) {$0.07$};
\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) {\(V\) (p.u.)};
\node[gp node center] at (6.817,0.215) {Time (sec)};
\node[gp node right] at (8.611,8.287) {\(V_{51}\)};
\gpcolor{rgb color={0.580,0.000,0.827}}
\draw[gp path] (8.795,8.287)--(9.711,8.287);
\draw[gp path] (1.749,0.985)--(1.759,3.797)--(1.831,3.902)--(1.902,3.945)--(1.974,3.968)%
  --(2.045,3.974)--(2.116,4.006)--(2.188,4.006)--(2.259,4.046)--(2.331,4.078)--(2.402,4.204)%
  --(2.473,4.225)--(2.545,4.249)--(2.616,4.259)--(2.688,4.254)--(2.759,4.259)--(2.831,4.274)%
  --(2.902,4.268)--(2.973,4.268)--(3.045,4.268)--(3.116,4.268)--(3.188,4.266)--(3.259,4.256)%
  --(3.330,4.250)--(3.402,4.235)--(3.473,4.235)--(3.545,4.245)--(3.616,4.220)--(3.687,4.213)%
  --(3.759,4.195)--(3.830,4.178)--(3.902,4.152)--(3.973,4.152)--(4.044,4.133)--(4.116,4.118)%
  --(4.187,4.094)--(4.259,4.079)--(4.330,4.073)--(4.402,4.054)--(4.473,4.029)--(4.544,4.003)%
  --(4.616,3.994)--(4.687,3.996)--(4.759,3.897)--(4.830,3.822)--(4.901,3.793)--(4.973,3.808)%
  --(5.044,3.824)--(5.116,3.824)--(5.187,3.825)--(5.258,3.783)--(5.330,3.783)--(5.401,3.769)%
  --(5.473,3.760)--(5.544,3.706)--(5.615,3.655)--(5.687,3.655)--(5.758,3.667)--(5.830,3.670)%
  --(5.901,3.645)--(5.973,3.666)--(6.044,3.677)--(6.115,3.659)--(6.187,3.666)--(6.258,3.673)%
  --(6.330,3.672)--(6.401,3.684)--(6.472,3.701)--(6.544,3.705)--(6.615,3.721)--(6.687,3.757)%
  --(6.758,3.789)--(6.829,3.810)--(6.901,3.831)--(6.972,3.876)--(7.044,3.914)--(7.115,3.929)%
  --(7.186,3.929)--(7.258,3.960)--(7.329,3.973)--(7.401,4.031)--(7.472,4.033)--(7.543,4.052)%
  --(7.615,4.071)--(7.686,4.063)--(7.758,4.063)--(7.829,4.079)--(7.901,4.116)--(7.972,4.108)%
  --(8.043,4.096)--(8.115,4.126)--(8.186,4.156)--(8.258,4.156)--(8.329,4.147)--(8.400,4.147)%
  --(8.472,4.161)--(8.543,4.184)--(8.615,4.173)--(8.686,4.174)--(8.757,4.174)--(8.829,4.171)%
  --(8.900,4.147)--(8.972,4.122)--(9.043,4.114)--(9.114,4.091)--(9.186,4.091)--(9.257,4.039)%
  --(9.329,4.039)--(9.400,4.049)--(9.472,4.048)--(9.543,4.069)--(9.614,4.047)--(9.686,4.039)%
  --(9.757,4.040)--(9.829,3.989)--(9.900,3.989)--(9.971,3.988)--(10.043,3.979)--(10.114,3.959)%
  --(10.186,3.933)--(10.257,3.889)--(10.328,3.846)--(10.400,3.858)--(10.471,3.854)--(10.543,3.854)%
  --(10.614,3.826)--(10.685,3.816)--(10.757,3.803)--(10.828,3.787)--(10.900,3.785)--(10.971,3.790)%
  --(11.042,3.789)--(11.114,3.774)--(11.185,3.804)--(11.257,3.792)--(11.328,3.788)--(11.400,3.806)%
  --(11.471,3.822)--(11.542,3.827)--(11.614,3.828)--(11.685,3.825)--(11.757,3.790)--(11.828,3.766)%
  --(11.899,3.741)--(11.947,3.666);
\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}
