From 20d5919e591485a419e25efbde9a0e9ef4f12947 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Tue, 22 Feb 2022 15:22:21 +0100 Subject: [PATCH] Terminal setting to X11 fails in macOS, and is not required on Linux. Setting terminal here is redundant, so remove this setting. --- src/frontend/plotting/gnuplot.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/frontend/plotting/gnuplot.c b/src/frontend/plotting/gnuplot.c index ed68c9ebf..677a51bce 100644 --- a/src/frontend/plotting/gnuplot.c +++ b/src/frontend/plotting/gnuplot.c @@ -385,18 +385,11 @@ void ft_gnuplot(double *xlims, double *ylims, } /* Set up the file header. */ -#if !defined(__MINGW32__) && !defined(_MSC_VER) && !defined(__CYGWIN__) - fprintf(file, "set terminal X11 noenhanced\n"); -#elif defined(__CYGWIN__) #ifndef EXT_ASC - fprintf(file, "set encoding utf8\n"); -#endif -#else -#ifndef EXT_ASC - fprintf(file, "set encoding utf8\n"); + fprintf(file, "set encoding utf8\n"); #endif fprintf(file, "set termoption noenhanced\n"); -#endif + if (contours) { fprintf(file, "set view map\n"); fprintf(file, "set contour\n");