\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:22 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) {$630000$}; \draw[gp path] (1.872,2.228)--(2.052,2.228); \node[gp node right] at (1.688,2.228) {$635000$}; \draw[gp path] (1.872,3.470)--(2.052,3.470); \node[gp node right] at (1.688,3.470) {$640000$}; \draw[gp path] (1.872,4.713)--(2.052,4.713); \node[gp node right] at (1.688,4.713) {$645000$}; \draw[gp path] (1.872,5.956)--(2.052,5.956); \node[gp node right] at (1.688,5.956) {$650000$}; \draw[gp path] (1.872,7.198)--(2.052,7.198); \node[gp node right] at (1.688,7.198) {$655000$}; \draw[gp path] (1.872,8.441)--(2.052,8.441); \node[gp node right] at (1.688,8.441) {$660000$}; \draw[gp path] (1.872,0.985)--(1.872,1.165); \node[gp node center] at (1.872,0.677) {655994}; \draw[gp path] (3.850,0.985)--(3.850,1.165); \node[gp node center] at (3.850,0.677) {655994}; \draw[gp path] (5.829,0.985)--(5.829,1.165); \node[gp node center] at (5.829,0.677) {655994}; \draw[gp path] (7.807,0.985)--(7.807,1.165); \node[gp node center] at (7.807,0.677) {655994}; \draw[gp path] (9.786,0.985)--(9.786,1.165); \node[gp node center] at (9.786,0.677) {655994}; \draw[gp path] (11.764,0.985)--(11.764,1.165); \node[gp node center] at (11.764,0.677) {655994}; \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,7.445)--(3.850,7.445)--(5.829,7.445)--(7.807,7.445)--(9.786,7.445)% --(11.764,7.445); \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.600)--(3.850,1.600)--(5.829,1.600)--(7.807,1.600)--(9.786,1.600)% --(11.764,1.600); \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}