如何更改gnuplot中的背景颜色?

时间:2022-10-13 19:42:52

I have a script that renders graphs in gnuplot. The graphs all end up with an ugly white background. How do I change this? (Ideally, with a command that goes into a gnuplot script, as opposed to a command-line option or something in a settings file)

我有一个脚本在gnuplot中呈现图形。这些图表都以丑陋的白色背景结束。我该如何改变? (理想情况下,使用进入gnuplot脚本的命令,而不是命令行选项或设置文件中的某些内容)

3 个解决方案

#1


21  

You can change the background color by command set object 1 rectangle from screen 0,0 to screen 1,1 fillcolor rgb"green" behind to set the background color to the the color you specified (here is green).

您可以通过命令设置对象1矩形从屏幕0,0更改背景颜色到屏幕1,1 fillcolor rgb“绿色”后面,将背景颜色设置为您指定的颜色(此处为绿色)。

To get more knowledge about setting the background in gnuplot, you can visit this blog. There are even provided methods to set a gradient color background and background pictures. Good luck!

要获得有关在gnuplot中设置背景的更多信息,您可以访问此博客。甚至提供了设置渐变颜色背景和背景图片的方法。祝好运!

#2


9  

Ooh, found it. It's along the lines of:

哦,找到了。它是这样的:

set terminal png x222222 xffffff

#3


2  

It is a setting for some terminal (windows use background). Check out colorbox including its bdefault.

它是某个终端的设置(窗口使用背景)。查看colorbox,包括它的bdefault。

/Allan

#1


21  

You can change the background color by command set object 1 rectangle from screen 0,0 to screen 1,1 fillcolor rgb"green" behind to set the background color to the the color you specified (here is green).

您可以通过命令设置对象1矩形从屏幕0,0更改背景颜色到屏幕1,1 fillcolor rgb“绿色”后面,将背景颜色设置为您指定的颜色(此处为绿色)。

To get more knowledge about setting the background in gnuplot, you can visit this blog. There are even provided methods to set a gradient color background and background pictures. Good luck!

要获得有关在gnuplot中设置背景的更多信息,您可以访问此博客。甚至提供了设置渐变颜色背景和背景图片的方法。祝好运!

#2


9  

Ooh, found it. It's along the lines of:

哦,找到了。它是这样的:

set terminal png x222222 xffffff

#3


2  

It is a setting for some terminal (windows use background). Check out colorbox including its bdefault.

它是某个终端的设置(窗口使用背景)。查看colorbox,包括它的bdefault。

/Allan