<p>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)</p>

[{'answer_id': 69510, 'author': 'Allan Wind', 'author_id': 9706, 'author_profile': 'https://Stackoverflow.com/users/9706', 'pm_score': 2, 'selected': False, 'text': '<p>It is a setting for some terminal (windows use background).  Check out colorbox including its bdefault.</p>\n\n<p>/Allan</p>\n'}, {'answer_id': 69512, 'author': 'raldi', 'author_id': 7598, 'author_profile': 'https://Stackoverflow.com/users/7598', 'pm_score': 4, 'selected': True, 'text': "<p>Ooh, found it. It's along the lines of:</p>\n\n<pre><code>set terminal png x222222 xffffff\n</code></pre>\n"}, {'answer_id': 7334137, 'author': 'hsxz', 'author_id': 932735, 'author_profile': 'https://Stackoverflow.com/users/932735', 'pm_score': 5, 'selected': False, 'text': '<p>You can change the background color by command <code>set object 1 rectangle from screen 0,0 to screen 1,1 fillcolor rgb"green" behind</code> to set the background color to the  the color you specified (here is green).</p>\n\n<p>To get more knowledge about setting the background in gnuplot, you can visit this <a href="http://gnuplot-surprising.blogspot.com/" rel="noreferrer" title="blog">blog</a>. There are even provided methods to set a gradient color background and background pictures. Good luck!</p>\n'}, {'answer_id': 64352284, 'author': 'Marco Righele', 'author_id': 162945, 'author_profile': 'https://Stackoverflow.com/users/162945', 'pm_score': 1, 'selected': False, 'text': '<p>According to the <a href="http://www.gnuplot.info/documentation.html" rel="nofollow noreferrer">official documentation</a>, as of version 5.4 the right way to set the background color in a gnuplot script is something like the following:</p>\n<pre><code>set term wxt background rgb &quot;gray75&quot;\n</code></pre>\n<p>Note that the color must be quoted. Beside color names you can use hex values with the format &quot;#AARRGGBB&quot; or &quot;0xAARRGGBB</p>\n'}]
['https://Stackoverflow.com/questions/69480', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/7598/']