Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #4317

Re: How to plot graphic in Windows?

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 csiph.com!xmission!news.snarked.org!border2.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 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> (permalink)
Subject Re: How to plot graphic in Windows?
From eridanibrew@gmail.com
Injection-Date Sun, 12 Apr 2020 23:11:18 +0000
Content-Type text/plain; charset="UTF-8"
Lines 30
Xref csiph.com comp.graphics.apps.gnuplot:4317

Show key headers only | View raw


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:(

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Find similar


Thread

How to plot graphic in Windows? eridanibrew@gmail.com - 2020-04-09 17:28 -0700
  Re: How to plot graphic in Windows? eridanibrew@gmail.com - 2020-04-12 16:11 -0700

csiph-web