|
From: Henri M. <hen...@gm...> - 2020-08-21 01:35:30
|
Currently the cairolatex terminal does not respect transparency options
given in the terminal setting. In this minimal example the
notransparent option is ignored:
set terminal cairolatex png notransparent
set output "test.tex"
plot sin(x)
Running this through gnuplot and then using `file' reveals that the
alpha channel is still present:
$ gnuplot test.gnuplot && file test.png
test.png: PNG image data, 1500 x 900, 8-bit/color RGBA, non-interlace
With this patch the transparency setting will be honoured. The current
default setting of implicitly assuming transparency is unaltered.
---
term/cairo.trm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/term/cairo.trm b/term/cairo.trm
index ee748dfe2..3ef76ecc6 100644
--- a/term/cairo.trm
+++ b/term/cairo.trm
@@ -849,7 +849,7 @@ void cairotrm_graphics()
plot.background.g = cairo_params->background.g;
plot.background.b = cairo_params->background.b;
gp_cairo_set_background(cairo_params->background);
- if (ISCAIROLATEX || cairo_params->transparent)
+ if (cairo_params->transparent)
gp_cairo_clear_background(&plot);
else
gp_cairo_solid_background(&plot);
--
2.28.0
|