Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

<lilo> I've always wanted to have a web site with a big picture of a carrot on it


computers / comp.graphics.apps.gnuplot / Re: How to plot graphic in Windows?

SubjectAuthor
* How to plot graphic in Windows?eridanibrew
`- Re: How to plot graphic in Windows?eridanibrew

1
Subject: How to plot graphic in Windows?
From: eridanib...@gmail.com
Newsgroups: comp.graphics.apps.gnuplot
Date: Fri, 10 Apr 2020 00:28 UTC
X-Received: by 2002:a37:8847:: with SMTP id k68mr1695666qkd.474.1586478528303; Thu, 09 Apr 2020 17:28:48 -0700 (PDT)
X-Received: by 2002:aca:c0c3:: with SMTP id q186mr80001oif.174.1586478527959; Thu, 09 Apr 2020 17:28:47 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!peer01.am4!peer.am4.highwinds-media.com!news.highwinds-media.com!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Thu, 9 Apr 2020 17:28:47 -0700 (PDT)
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=174.17.94.97; posting-account=JlHXFwoAAAB-Z4lpNURZF7izOESwbDb8
NNTP-Posting-Host: 174.17.94.97
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <da4ec435-81fe-4a6a-a244-7a00eec6cf8f@googlegroups.com>
Subject: How to plot graphic in Windows?
From: eridanib...@gmail.com
Injection-Date: Fri, 10 Apr 2020 00:28:48 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 25
X-Received-Bytes: 1829
X-Received-Body-CRC: 3318495767
View all headers
I would like to place a background image on a plot, like a watermark or logo.

I am trying the following code (stolen from another site), which fails with the message
"imgSimple.gpl" line 15: libgd doesn't recognize the format of "D:/Dropbox/CoolStu
ff/Pickleball/PaddleTester/VendorPaddleData/Selkirk.png"

It also rejects .jpg files

I am running 5.2 patchlevel 8 on a windows 10 1909 machine.

[code]
f="D:/Dropbox/CoolStuff/Pickleball/PaddleTester/VendorPaddleData/Selkirk.png"

reset
set term windows
set xrange [0:2399]
set yrange [0:2999]
unset tics
unset border
set lmargin at screen 0.175
set rmargin at screen 0.9
set bmargin at screen 0.15
set tmargin at screen 0.9
#Plot the background image
plot f binary filetype=png w rgbimage
[/code]


Subject: Re: How to plot graphic in Windows?
From: eridanib...@gmail.com
Newsgroups: comp.graphics.apps.gnuplot
Date: Sun, 12 Apr 2020 23:11 UTC
References: 1
X-Received: by 2002:ac8:32cd:: with SMTP id a13mr9216816qtb.360.1586733078651;
Sun, 12 Apr 2020 16:11:18 -0700 (PDT)
X-Received: by 2002:a9d:7c94:: with SMTP id q20mr11060739otn.150.1586733078359;
Sun, 12 Apr 2020 16:11:18 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder7.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Sun, 12 Apr 2020 16:11:18 -0700 (PDT)
In-Reply-To: <da4ec435-81fe-4a6a-a244-7a00eec6cf8f@googlegroups.com>
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=174.17.94.97; posting-account=JlHXFwoAAAB-Z4lpNURZF7izOESwbDb8
NNTP-Posting-Host: 174.17.94.97
References: <da4ec435-81fe-4a6a-a244-7a00eec6cf8f@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6970f945-2ab4-4e20-8607-d1b3f2e51115@googlegroups.com>
Subject: Re: How to plot graphic in Windows?
From: eridanib...@gmail.com
Injection-Date: Sun, 12 Apr 2020 23:11:18 +0000
Content-Type: text/plain; charset="UTF-8"
View all headers
On Thursday, April 9, 2020 at 5:28:49 PM UTC-7, erida...@gmail.com wrote:
I would like to place a background image on a plot, like a watermark or logo.

I am trying the following code (stolen from another site), which fails with the message
"imgSimple.gpl" line 15: libgd doesn't recognize the format of "D:/Dropbox/CoolStu
ff/Pickleball/PaddleTester/VendorPaddleData/Selkirk.png"

It also rejects .jpg files

I am running 5.2 patchlevel 8 on a windows 10 1909 machine.

[code]
f="D:/Dropbox/CoolStuff/Pickleball/PaddleTester/VendorPaddleData/Selkirk.png"

reset
set term windows
set xrange [0:2399]
set yrange [0:2999]
unset tics
unset border
set lmargin at screen 0.175
set rmargin at screen 0.9
set bmargin at screen 0.15
set tmargin at screen 0.9
#Plot the background image
plot f binary filetype=png w rgbimage
[/code]

Well, figured it out. Very weird; I had randomly pulled a couple of images (a jpg and a png) from the net to test with. Somehow both images are corrupted somehow? They could not be loaded into Paint either, although they of course look fine in the browser.

Grabbed another image and now things work fine. Have never seen images be messed up like that:(


1
rocksolid light 0.7.2
clearneti2ptor