• How to plot graphic in Windows?

    From eridanibrew@gmail.com@21:1/5 to All on Thu Apr 9 17:28:47 2020
    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]

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From eridanibrew@gmail.com@21:1/5 to erida...@gmail.com on Sun Apr 12 16:11:18 2020
    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:(

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)