From: Christoph B. <us...@be...> - 2011-05-23 12:19:08
|
Hi, is there a specific reason why the 'transparent' terminal option applies only to the pngcairo and not to the pdfcairo terminal? I removed the two respective lines in term/cairo.trm and it worked well for me: --- gnuplot-cvs/term/cairo.trm 2011-05-23 13:48:46.000000000 +0200 +++ gnuplot/term/cairo.trm 2011-05-23 14:00:16.000000000 +0200 @@ -299,13 +299,11 @@ break; case CAIROTRM_TRANSPARENT: c_token++; - if (!strcmp(term->name,"pngcairo")) - cairo_params->transparent = TRUE; + cairo_params->transparent = TRUE; break; case CAIROTRM_NOTRANSPARENT: c_token++; - if (!strcmp(term->name,"pngcairo")) - cairo_params->transparent = FALSE; + cairo_params->transparent = FALSE; break; case CAIROTRM_CROP: c_token++; I only tested it with set terminal pdfcairo transparent set output 'test-transparency.pdf' plot sin(x) But because there is an explicit test for the pngcairo terminal, I suppose there was a good reason for this? Christoph |