Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Image Gnuplot PNG显示为黑色,背景设置为透明_Image_Png_Gnuplot - Fatal编程技术网

Image Gnuplot PNG显示为黑色,背景设置为透明

Image Gnuplot PNG显示为黑色,背景设置为透明,image,png,gnuplot,Image,Png,Gnuplot,我正在尝试使用gnuplot 4.2生成具有透明背景的PNG。但是,背景显示为黑色而不是白色,并且在其他查看器中不透明。当我生成JPEG、GIF或EMF时,背景是白色的。我正在使用Windows7 以下是我使用的代码片段: set terminal png size 600,600 transparent truecolor set style data points set xyplane at 000; set output "image.png" splot "data1.txt" usi

我正在尝试使用gnuplot 4.2生成具有透明背景的PNG。但是,背景显示为黑色而不是白色,并且在其他查看器中不透明。当我生成JPEG、GIF或EMF时,背景是白色的。我正在使用Windows7

以下是我使用的代码片段:

set terminal png size 600,600 transparent truecolor
set style data points
set xyplane at 000;
set output "image.png"
splot "data1.txt" using 1:3:5 title ""    
unset output

非常感谢你的建议。

你做得对。它在linux上适用于我。带有JPEG的白色背景不支持透明度。如果在set终端中使用trasparent,我希望GIF有一个透明的背景。你试过什么?您确定查看器的默认背景不是黑色吗?我唯一能想到的另一件事是,你的libgd版本不支持透明,至少gnuplot希望这样。你能试着将终端pngcairo设置为透明吗。。。