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?

Newsgroups comp.graphics.apps.gnuplot
Date 2020-04-12 16:11 -0700
References <da4ec435-81fe-4a6a-a244-7a00eec6cf8f@googlegroups.com>
Message-ID <6970f945-2ab4-4e20-8607-d1b3f2e51115@googlegroups.com> (permalink)
Subject Re: How to plot graphic in Windows?
From eridanibrew@gmail.com

Show all headers | 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