\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 Nov 21 21:24:23 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.872,0.985)--(2.052,0.985); \node[gp node right] at (1.688,0.985) {$560000$}; \draw[gp path] (1.872,1.917)--(2.052,1.917); \node[gp node right] at (1.688,1.917) {$580000$}; \draw[gp path] (1.872,2.849)--(2.052,2.849); \node[gp node right] at (1.688,2.849) {$600000$}; \draw[gp path] (1.872,3.781)--(2.052,3.781); \node[gp node right] at (1.688,3.781) {$620000$}; \draw[gp path] (1.872,4.713)--(2.052,4.713); \node[gp node right] at (1.688,4.713) {$640000$}; \draw[gp path] (1.872,5.645)--(2.052,5.645); \node[gp node right] at (1.688,5.645) {$660000$}; \draw[gp path] (1.872,6.577)--(2.052,6.577); \node[gp node right] at (1.688,6.577) {$680000$}; \draw[gp path] (1.872,7.509)--(2.052,7.509); \node[gp node right] at (1.688,7.509) {$700000$}; \draw[gp path] (1.872,8.441)--(2.052,8.441); \node[gp node right] at (1.688,8.441) {$720000$}; \draw[gp path] (1.872,0.985)--(1.872,1.165); \node[gp node center] at (1.872,0.677) {672207}; \draw[gp path] (3.850,0.985)--(3.850,1.165); \node[gp node center] at (3.850,0.677) {681429}; \draw[gp path] (5.829,0.985)--(5.829,1.165); \node[gp node center] at (5.829,0.677) {692377}; \draw[gp path] (7.807,0.985)--(7.807,1.165); \node[gp node center] at (7.807,0.677) {702462}; \draw[gp path] (9.786,0.985)--(9.786,1.165); \node[gp node center] at (9.786,0.677) {709982}; \draw[gp path] (11.764,0.985)--(11.764,1.165); \node[gp node center] at (11.764,0.677) {717515}; \draw[gp path] (1.872,8.441)--(1.872,0.985)--(11.764,0.985); \node[gp node center,rotate=-270] at (0.108,4.713) {\(P\) (MW)}; \node[gp node center] at (6.818,0.215) {PD (MW)}; \node[gp node right] at (4.248,8.256) {Total \(PD\)}; \gpcolor{rgb color={0.580,0.000,0.827}} \gpsetdashtype{gp dt 1} \draw[gp path] (4.432,8.256)--(5.348,8.256); \draw[gp path] (1.872,6.214)--(3.850,6.644)--(5.829,7.154)--(7.807,7.624)--(9.786,7.974)% --(11.764,8.325); \gpcolor{color=gp lt color border} \node[gp node right] at (4.248,7.887) {Total \(UD\)}; \gpcolor{rgb color={0.000,0.620,0.451}} \gpsetdashtype{gp dt 2} \draw[gp path] (4.432,7.887)--(5.348,7.887); \draw[gp path] (1.872,1.851)--(3.850,2.321)--(5.829,2.862)--(7.807,3.360)--(9.786,3.714)% --(11.764,4.078); \gpcolor{color=gp lt color border} \gpsetdashtype{gp dt solid} \draw[gp path] (1.872,8.441)--(1.872,0.985)--(11.764,0.985); %% coordinates of the plot area \gpdefrectangularnode{gp plot 1}{\pgfpoint{1.872cm}{0.985cm}}{\pgfpoint{11.764cm}{8.441cm}} \end{tikzpicture} %% gnuplot variables \end{document}