Generating graph values from a scan/picture

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
Dave_G
Posts: 453
Joined: Thu 21 Jul 2011, 13:53

Generating graph values from a scan/picture

#1 Post by Dave_G »

Hi all

Found a very interesting and useful app called G3DATA that
generates values of graphs from pictures.

Available here http://www.frantz.fi/software/g3data.php

(Scroll to the bottom of the page to see some screen shots.)

Perhaps someone can make a .pet for it?

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#2 Post by pemasu »

First try....
Attachments
g3data-1.5.4.pet
(24.23 KiB) Downloaded 384 times

User avatar
Dave_G
Posts: 453
Joined: Thu 21 Jul 2011, 13:53

#3 Post by Dave_G »

Hi pemasu

Did not work.

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#4 Post by pemasu »

Hmmm....the downloaded pet works in my dpup exprimo. I compiled it in dpup exprimo. So...I cant help more...with my puppy.

User avatar
Dave_G
Posts: 453
Joined: Thu 21 Jul 2011, 13:53

#5 Post by Dave_G »

I suspect that the actual binary of G3DATA was somehow not compiled
properly as I can see 6 independent files in the /usr/bin/g3data section
of the pet and they seem to be the different sections that would normally
make up an executable elf.

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#6 Post by pemasu »

You might be right. I got warnings during compilation. They are not rare...but maybe this time they are significant. I attach the log of compile.
I believe someone else needs to try compiling the app. I just checked that the app starts and loads the pic. I didnt try to create any data.
Attachments
configure-compile-log.gz
(16.39 KiB) Downloaded 352 times

User avatar
kooliepup
Posts: 292
Joined: Sat 14 Jan 2012, 03:40
Location: Victoria, Australia

#7 Post by kooliepup »

I got nowhere trying to compile it into a useable program either.

Not wishing to derail production of a .pet of this,
if that doesn't happen, there is DataThief (java), which I use,
and also PlotDigitizer (also Java), which is useable.
There is also a Web-based WebPlotDigitizer, which I haven't tried.

HTH.

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#8 Post by seaside »

pemasu.

I just tried your pet in Racy5.22; made a plot of a scan, saved a data file, opened it in gnumeric and it graphed quite closely to the original.

Thanks very much,
s

User avatar
kooliepup
Posts: 292
Joined: Sat 14 Jan 2012, 03:40
Location: Victoria, Australia

#9 Post by kooliepup »

I just tried your .pet in Exprimo, and it worked fine, except there are some types of plots it doesn't seem to like.

Well done.
Better than having to use Java.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#10 Post by Flash »

Does it do histograms or what? :?

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#11 Post by Karl Godt »

I don't know what this is for , but 1.5.3 compiles on Puppy 4.3. The building of the documentation is problematic for me, because it depends heavily on docbook with all its jade, tex and whatever . My docbook installation works sometimes and sometimes not.

Version 1.5.4 from git depends on automake-1.11 and here i have a big big mismatch everywhere.

Must say i think Dave runs Puppy 4.3 so Exprimo compiles are likely not to work for him.
The .pet of pemasu seems to include everyhing : the binary and probably what Dave calls "6 indeendent files" are the .desktop file for to show up in some menu, the man page and the program's icon .

Another thing are the many shared library dependencies :

/lib/libc.so.6
/lib/libdl.so.2
/lib/libm.so.6
/lib/libz.so.1
/usr/lib/libatk-1.0.so.0
/usr/lib/libcairo.so.2
/usr/lib/libexpat.so.1
/usr/lib/libfontconfig.so.1
/usr/lib/libfreetype.so.6
/usr/lib/libgdk_pixbuf-2.0.so.0
/usr/lib/libgdk-x11-2.0.so.0
/usr/lib/libgio-2.0.so.0
/usr/lib/libglib-2.0.so.0
/usr/lib/libgmodule-2.0.so.0
/usr/lib/libgobject-2.0.so.0
/usr/lib/libgtk-x11-2.0.so.0
/usr/lib/libpango-1.0.so.0
/usr/lib/libpangocairo-1.0.so.0
/usr/lib/libpangoft2-1.0.so.0
/usr/lib/libpcre.so.0
/usr/lib/libpixman-1.so.0
/usr/lib/libpng12.so.0
/usr/lib/libX11.so.6
/usr/lib/libXau.so.6
/usr/lib/libXcomposite.so.1
/usr/lib/libXcursor.so.1
/usr/lib/libXdamage.so.1
/usr/lib/libXdmcp.so.6
/usr/lib/libXext.so.6
/usr/lib/libXfixes.so.3
/usr/lib/libXinerama.so.1
/usr/lib/libXi.so.6
/usr/lib/libXrandr.so.2
/usr/lib/libXrender.so.1

where the libX* are manually made links to ../X11R7/lib/ on my installation.

The program exports a file with such content :

Code: Select all

249,49  37,64
293,05  108,92
0,01  61,4
and i am not sure how to use these parameters.
Attachments
g3data.png
What is this program for ?
(130.56 KiB) Downloaded 479 times

User avatar
Dave_G
Posts: 453
Joined: Thu 21 Jul 2011, 13:53

#12 Post by Dave_G »

@Karl

The 6 independant files show up as this:
http://postimage.org/image/s2tjh5o75/

These are all in the /usr/bin/g3data section of the .pet
The other files such as man pages, desktop file etc etc are over and above these.
Normally a .pet should include the binary executable as a single file.
I don't know how/why it works on Dpup.

@Flash

If the histograms are plotted on a XY axis, then I don't see why not,
although you might have to manipulate the data further to compensate
for the widths of the rectangles (whose width indicates frequency).
At least you will already have the data in numeric form and might just
need to run it thru another script for further manipulation.
Certainly easier then capturing all the data manually.

@kooliepup

Thanks for the alternatives, I don't like java but if I don't come right with
G3DATA, I will look at the html option.

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#13 Post by Karl Godt »

Dave, what filebrowser do you use ?

I have checked pemasus's .pet and i don't have the files 0-5 anywhere.

I can only imagine that your favor for Fat filesystem is corrupting things.

User avatar
Dave_G
Posts: 453
Joined: Thu 21 Jul 2011, 13:53

#14 Post by Dave_G »

Karl Godt wrote:Dave, what filebrowser do you use ?
For viewing (and not installing .pets) I use 7zip.
It has never failed me.
I always inspect the .pet files I download before installing them.

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#15 Post by Karl Godt »

Dave_G wrote:
Karl Godt wrote:Dave, what filebrowser do you use ?
For viewing (and not installing .pets) I use 7zip.
It has never failed me.
I always inspect the .pet files I download before installing them.
You could try the default

Code: Select all

pet2tgz /path/to/thepet.pet
and run Xarchive on the now created .tar.gz .

7zip uses lzma and xz and apparently libz and i think that pemasu's libs are newer than yours.

Post Reply