Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Background Color :-((

5 views
Skip to first unread message

Thomas

unread,
Dec 11, 2007, 10:16:42 AM12/11/07
to
Hello,

in first time ( 3month ago) i using gnuplot ver 3.xx ...
I made easy png graph' outputs with background color Fe3355 to
integrate on an html site.

1 Month ago i'm upgrade to Version 4.2.
... i'm Stupid but i dont find an easy way to do it also.

can someone tell me in what graph format i can use any background color,
The output graph must be an easy integrateable on an html-site how png it
was.

I#m Stupid .. i think

mfg
Thomas

--
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/

Ethan Merritt

unread,
Dec 11, 2007, 11:30:35 AM12/11/07
to
In article <op.t26fd...@tneef.agfeo.de>, Thomas <tn...@agfeo.de> wrote:
>Hello,
>
>in first time ( 3month ago) i using gnuplot ver 3.xx ...
>I made easy png graph' outputs with background color Fe3355 to
>integrate on an html site.
>
>1 Month ago i'm upgrade to Version 4.2.
>can someone tell me in what graph format i can use any background color,
>The output graph must be an easy integrateable on an html-site how png it
>was.

Here's one way that works for all terminals:
http://gnuplot.sourceforge.net/demo_4.2/rectangle.html

Here is another, that works only for PNG:
set term png xfe3355

For integration into an html page, you want either PNG or SVG.
--
Ethan A Merritt

Thomas

unread,
Dec 13, 2007, 10:09:34 AM12/13/07
to

Hello,
'set term png xfe3355' works not in version 4.2.
the rectangle demo is an filled rectangle inside the chart,
but i mean an completely background like term png background in version
3.xx

also thanks

Ethan Merritt

unread,
Dec 13, 2007, 12:42:51 PM12/13/07
to
In article <op.t294d...@tneef.agfeo.de>, Thomas <tn...@agfeo.de> wrote:
>Am 11.12.2007, 17:30 Uhr, schrieb Ethan Merritt <mer...@u.washington.edu>:
>
>> In article <op.t26fd...@tneef.agfeo.de>, Thomas <tn...@agfeo.de>
>> wrote:
>>
>> Here is another, that works only for PNG:
>> set term png xfe3355
>>
>> For integration into an html page, you want either PNG or SVG.
>
>Hello,
>'set term png xfe3355' works not in version 4.2.

It works here in all versions of gnuplot from 3.7 to current cvs.
What operating system are you using?
What C compiler?
--
Ethan A Merritt

Thomas

unread,
Dec 14, 2007, 6:42:43 AM12/14/07
to

Hello,
oh, it sounds nice :) as can be that it can work also here :-))

the Server is an Suse-Enterprise Server 9 (i586) V = 9 Patchlevel = 3
gcc is Version 3.3.3

thx

Peter Weilbacher

unread,
Dec 14, 2007, 11:35:31 AM12/14/07
to
On 11.12.2007 16:16, Thomas wrote:

> can someone tell me in what graph format i can use any background color,
> The output graph must be an easy integrateable on an html-site how png it
> was.

Can you not do with the transparent option of the PNG terminal
set term png transparent
Even broken browsers should handle simple transparency, so that would be
easy to handle for you even if at some point you change the color on the
webpage.

Peter.

Ethan Merritt

unread,
Dec 14, 2007, 12:30:11 PM12/14/07
to
In article <op.t3bph...@tneef.agfeo.de>, Thomas <tn...@agfeo.de> wrote:
>Am 13.12.2007, 18:42 Uhr, schrieb Ethan Merritt <mer...@u.washington.edu>:
>
>> In article <op.t294d...@tneef.agfeo.de>, Thomas <tn...@agfeo.de>
>> wrote:
>>> Am 11.12.2007, 17:30 Uhr, schrieb Ethan Merritt
>>> <mer...@u.washington.edu>:
>>>
>>>> In article <op.t26fd...@tneef.agfeo.de>, Thomas <tn...@agfeo.de>
>>>> wrote:
>>>>
>>>> Here is another, that works only for PNG:
>>>> set term png xfe3355
>>>>
>>>> For integration into an html page, you want either PNG or SVG.
>>>
>>> Hello,
>>> 'set term png xfe3355' works not in version 4.2.
>>
>> It works here in all versions of gnuplot from 3.7 to current cvs.
>> What operating system are you using?
>> What C compiler?
>
>Hello,
>oh, it sounds nice :) as can be that it can work also here :-))
>
>the Server is an Suse-Enterprise Server 9 (i586) V = 9 Patchlevel = 3
>gcc is Version 3.3.3

Strange. OK, can you please report the exact output from giving gnuplot
the following commands:

gnuplot> show version long
gnuplot> set term png xfe3355


--
Ethan A Merritt

Ethan Merritt

unread,
Dec 14, 2007, 1:04:01 PM12/14/07
to
In article <op.t294d...@tneef.agfeo.de>, Thomas <tn...@agfeo.de> wrote:
>>
>> Here's one way that works for all terminals:
>> http://gnuplot.sourceforge.net/demo_4.2/rectangle.html
>>
>the rectangle demo is an filled rectangle inside the chart,
>but i mean an completely background like term png background in version

The demo shows you how to define a rectangle.
Yes, the one in the figure covers only the plot area. But you can just
as easily define a rectangle that covers the entire page:

# rectangle covers only the plot area:
set obj 20 rect from graph 0,0 to graph 1,1 fs solid 0.15 fc rgb "#FFD700" behind

# rectangle covers the entire page:
set obj 20 rect from screen 0,0 to screen 1,1 fs solid 0.15 fc rgb "#FFD700" behind
--
Ethan A Merritt

0 new messages