Menu

#1155 set terminal png x000000 does not work

closed-wont-fix
nobody
2D plot (258)
5
2012-08-03
2012-07-29
Mark
No

I upgraded to 4.6 from 4.2 and my plots stopped working due to trying to set the background color.

> set terminal png x000000 # gives error "obsolete color option"
> set terminal png background x000000 # gives error "undefined variable: x000000"

The 4.6 PDF manual (page 209) says "set terminal png xffffff" is valid, but it isn't accepted
By trial and error I found that the following is accepted:

> set terminal png background "#000000"

I used to use the command:

> set terminal png x000000 xFFFFFF x4F4F4F

Is there some way to accomplish that with the new command format? The 4.6 manual says that specifying more than one color is deprecated, that should mean I can still do it. How can I do it?

Thanks.

Discussion

  • Ethan Merritt

    Ethan Merritt - 2012-08-03
    • status: open --> closed-wont-fix
     
  • Ethan Merritt

    Ethan Merritt - 2012-08-03

    The intent was to issue a deprecation warning but accept the command anyhow. Unfortunately, that turned into an error rather than a warning. I will restore the warning status of the message for 4.6.1, but the old syntax is definitely gone in 4.7

    New syntax:
    set term png background "#000000"
    set linetype 0 lc rgb "#FFFFFF"
    set linetype 1 lc rgb "#4F4F4F"

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.