#] #] ********************* #] "$d_SysMaint"'digitizelt graph from image/digitizelt - produce graphical data from image.txt' # www.BillHowell.ca ~19Jan2021 initial - downloaded software 49$US # view in text editor, using constant-width font (eg courier), tabWidth = 3 24************************24 #24************************24 # Table of Contents, generate with : # $ grep "^#]" "$d_SysMaint"'digitizelt graph from image/digitizelt - produce graphical data from image.txt' | sed "s/^#\]/ /" # ********************* "$d_SysMaint"'digitizelt graph from image/digitizelt - produce graphical data from image.txt' +-----+ Instructions : +-----+ 22Aug2022 GFDFinaeon 05Feb2019 Figure 2 GFD UK-100 Price Index, 1692 to 2018.jpeg 22Aug2022 NEW digizelt - AppImage basis, I didn't pay the fee yet 21Aug2022 Do I have to buy digizelt again for Suse? 06Feb2021 How do I load an image on startup? 6Jan2021 Digitizelt lessons - from David Fischer medieval to modern pricing mini-project 19Jan2021 initial - downloaded digitizelt software 49$US #24************************24 #] +-----+ #] Instructions : Use gimp to clean up image, background colors etc Add a background white layer filemanager goto "$d_PROJECTS"'SW install & maintain/digitizelt graph from image' click DigitizeIt-x86_64.AppImage Axis : set [x,y] cart [min, max, lin/log] #] +-----+ #24************************24 #08********08 #] ??Aug2022 #08********08 #] ??Aug2022 #08********08 #] ??Aug2022 #08********08 #] ??Aug2022 #08********08 #] ??Aug2022 #08********08 #] 23Aug2022 'UK blueChip 1829-2018 Campbell, Grossman, Turner.png' try : $ "$d_PROJECTS"'SW install & maintain/digitizelt graph from image/DigitizeIt-x86_64.AppImage' >> Wow, it actually worked!?!? now, open : "$d_References"'economics, markets/Campbell, Grossman, Turner 04Sep2019 monthly British stock market, 1829-1929.html' #08********08 #] 22Aug2022 GFDFinaeon 05Feb2019 Figure 2 GFD UK-100 Price Index, 1692 to 2018.jpeg fix profile.local to include Digizelt $ sudo -i cp '/home/bill/SG6/web/System_maintenance/Linux/profile.local' '/etc/' >> It's an AppImage now! I am using the demo version for now filemanager goto "$d_PROJECTS"'SW install & maintain/digitizelt graph from image' click DigitizeIt-x86_64.AppImage from within Digizelt : /home/bill/SG6/web/economics, markets/market data/digitize graphs/GFDFinaeon 05Feb2019 Figure 2 GFD UK-100 Price Index, 1692 to 2018.jpeg Digizelt can't find curve - possibly due to shading gimp - remove shading /home/bill/SG6/web/economics, markets/market data/digitize graphs/GFDFinaeon 05Feb2019 Figure 2 GFD UK-100 Price Index, 1692 to 2018.dig #08********08 #] 22Aug2022 NEW digizelt - AppImage basis, I didn't pay the fee yet "$d_PROJECTS"'/SW install & maintain/digitizelt graph from image/DigitizeIt-x86_64.AppImage' #08********08 #] 21Aug2022 Do I have to buy digizelt again for Suse? it's still in "$d_PROJECTS"'SW install & maintain/digitizelt graph from image/' from below : 06Feb2021 How do I load an image on startup? +-----+ try (note : .jar cannot be in $d_web - propretary) : $ pDigIt="$d_PROJECTS"'SW install & maintain/digitizelt graph from image/DigitizeIt.jar' $ pImg="$d_mktData"'digitize graphs/GFDFinaeon 05Feb2019 Figure 2 GFD UK-100 Price Index, 1692 to 2018.jpeg' $ java -jar "$pDigIt" "$pImg" & $ java -jar "$pDigIt" "$pImg" & [1] 32115 ~ $ Exception in thread "main" java.lang.NoClassDefFoundError: com/incors/plaf/kunststoff/themes/KunststoffDesktopTheme at de.ibo.digitizer.DigitizeIt.main(Unknown Source) Caused by: java.lang.ClassNotFoundException: com.incors.plaf.kunststoff.themes.KunststoffDesktopTheme at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) ... 1 more [1]+ Exit 1 java -jar "$pDigIt" "$pImg" >> nuts - probably missing all java stuff on ThinkPad Suse From README.txt : 1) first things first, execute "java -version" on the command line, and check if you already have a java version >= 1.6 >> OK 2) nyet - install the java if not alredy present 3) make sure java is on your PATH >> Ah hah! not on 4) nyet - repeat step one, make sure the version >= 1.6. Otherwise adjust your PATH (this can only happen, if you already have an older version installed). 5) unzip DigitizeIt in its own directory, cd into that directory >> already in "$d_PROJECTS"'SW install & maintain/digitizelt graph from image/DigitizeIt_unix/' 6) nyet - see my commands [above, below] - type "java -jar DigitizeIt.jar" +--+ https://www.java67.com/2016/06/how-to-set-javahome-and-path-in-linux.html How to set JAVA_HOME and PATH in Linux? Example ...To bridge that gap, I am going to cover a couple of very important environment variables like PATH and JAVA_HOME. The JAVA_HOME environment variable points to the JDK installation directory and is used by many Java tools and applications like Tomcat, Maven, Eclipse, NetBeans or IntelliJIDEA, etc. to figure out Java executables as they need Java for running. $ echo "$JAVA_HOME" /usr/lib64/jvm/jre-11-openjdk I augmented : +-----+ # /etc/profile.local for SUSE Linux #www.BillHowell.ca for Suse Linux on ThinkPad 09Oct2019 initial # also - see "/run/media/bill/PROJECTS/System_maintenance/Linux/environment variables, permanent.txt" # $ sudo cp "/run/media/bill/PROJECTS/System_maintenance/Linux/environment variables, permanent.txt" "/etc/profile.local" # # PLEASE DO NOT CHANGE /etc/profile. There are chances that your changes # will be lost during system upgrades. Instead use /etc/profile.local for # your local settings, favourite global aliases, VISUAL and EDITOR # variables, etc ... export HOWELL_computer="ThinkPad" export PATH = $JAVA_HOME/bin:$PATH # enddoc +-----+ >> I have NO idea of where JAVA_HOME is set during startup (find out later) sudo kwrite '/etc/profile.local' & $ sudo -i [sudo] password for root: linux-nn7r:~ # kwrite THIS IS POTENTIALLY INSECURE! To edit files as root please use: SUDO_EDITOR=kwrite sudoedit qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. error: XDG_RUNTIME_DIR not set in the environment. Failed to create wl_display (No such file or directory) qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: wayland-org.kde.kwin.qpa, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb. Aborted (core dumped) $ SUDO_EDITOR=kwrite sudoedit >> nyet - use cp to ~ edit then sudo cp after (have backup) $ export PATH = $JAVA_HOME/bin:$PATH bash: export: `=': not a valid identifier bash: export: `/usr/lib64/jvm/jre-11-openjdk/bin:/home/bill/bin/:/home/bill/SG6/web/bin/:usr/local/bin:/usr/bin:/bin': not a valid identifier >> ouch - grammar errors in webPage, but I should have known that! $ echo "$PATH" /home/bill/bin/:/home/bill/SG6/web/bin/:usr/local/bin:/usr/bin:/bin ~ $ export PATH="$JAVA_HOME/bin:$PATH" ~ $ echo "$PATH" /usr/lib64/jvm/jre-11-openjdk/bin:/home/bill/bin/:/home/bill/SG6/web/bin/:usr/local/bin:/usr/bin:/bin +-----+ Try again : $ pDigIt="$d_PROJECTS"'SW install & maintain/digitizelt graph from image/DigitizeIt.jar' $ pImg="$d_mktData"'digitize graphs/GFDFinaeon 05Feb2019 Figure 2 GFD UK-100 Price Index, 1692 to 2018.jpeg' $ echo "$pDigIt" /home/bill/SG6/PROJECTS/SW install & maintain/digitizelt graph from image/DigitizeIt.jar ~ $ echo "$pImg" /home/bill/SG6/web/economics, markets/market data/digitize graphs/GFDFinaeon 05Feb2019 Figure 2 GFD UK-100 Price Index, 1692 to 2018.jpeg ~ $ java -jar "$pDigIt" "$pImg" & +--+ $ java -jar "$pDigIt" "$pImg" & [2] 32689 ~ $ Exception in thread "main" java.lang.NoClassDefFoundError: com/incors/plaf/kunststoff/themes/KunststoffDesktopTheme at de.ibo.digitizer.DigitizeIt.main(Unknown Source) Caused by: java.lang.ClassNotFoundException: com.incors.plaf.kunststoff.themes.KunststoffDesktopTheme at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) ... 1 more [2]- Exit 1 java -jar "$pDigIt" "$pImg" +--+ >> same problem Hmm - as before : 5) unzip DigitizeIt in its own directory, cd into that directory do I have to work from that directory?!?!? I don't remember that I HATE using in-directory commands!! $ cd '/home/bill/SG6/PROJECTS/SW install & maintain/digitizelt graph from image/DigitizeIt_unix/' $ java -jar "$pDigIt" "$pImg" & >> NOPE. didn't help Screw it. I'm going jogging 08********08 #] 06Feb2021 How do I load an image on startup? OK - works (see below) +-----+ https://stackoverflow.com/questions/15303215/how-to-specify-a-text-file-in-the-command-line If you have your class as below public class YourClass { public static void main(String[] args) { String fileName = args[0]; // would contain "textInput.txt" // work with fileName } } run your program as java YourClass textInput.txt. The String array args contains any arguments you pass when you run the java command. It can be anything, not restricted to file names. As Bailey S puts it, these arguments are tokenized based on the tokenization of your shell. The index starts at 0. java YourClass arg1 arg2 arg3 ^ ^ ^ index: 0 1 2 edited Mar 8 '13 at 21:57 answered Mar 8 '13 at 21:04 Sotirios Delimanolis +-----+ try : $ d_gimp="/media/bill/Dell2/PROJECTS/References/Fischer, David 1996 The Great Wave/gimped/" $ java -jar "$d_SysMaint""digitizelt graph from image/DigitizeIt.jar" "$d_gimp""Fig 5.02 450-150 BC ancient Greece [barley, olive oil], raw image.png" & >> It works (did it work before, as I'm sure that I tried this!!?!?) +-----+ Alternatives https://automeris.io/WebPlotDigitizer/ >> javascript, but NO instruct as to how to start up!!! https://plotdigitizer.com/webplotdigitizer-alternative WebPlotDigitizer is one of the popular tools for digitizing your graphs and charts. It is a free and open-source tool. You can find it on Github. You can extract data from XY, ternary, polar, and maps. However, it has many faults and drawbacks. The software is not well-maintained, and it is very buggy and cannot handle heavy operations. If you use it often, you will notice many errors. There are also some major glitches with the user-interface. >> downloaded, but I can't see how to launch!?!?!? Though the program is free, it comes with many bugs. PlotDigitizer is the best alternative to WebPlotDigitizer; it totally outclasses WebPlotDigitizer. PlotDigitizer has far more features; it is polished and well-maintained and has a professional touch. You can try PlotDigitizerā€™s free online app. In this short guide, we will compare the features of both. >> free online app 08********08 #] 26Jan2021 Digitizelt lessons - from David Fischer medieval to modern pricing mini-project gimp - must provide [continuous, unbroken, same-color] curves!! make curve continuous Menu -> Tools -> Paint -> pencil adjust line width = 3 (see gimp instructions in d_SysMaint) but basically [Alt, mouse wheel] to [thicken, thin] Menu -> Tools -> Paint -> pick color -click on existing curve to match color (somewhat) generate path by clicking change points of curve where it is been [augmented, continuous] Menu -> Edit - "stroke path" clean up curve!!! Menu -> Tools -> Paint -> eraser remove extraneous blotches erase away [adjacent, intersecting] cart [curves, lines] 08********08 #] 19Jan2021 initial - downloaded digitizelt software 49$US just use gimp - hairs >> way too much work!! https://automeris.io/WebPlotDigitizer/ >> looks good - no trial https://plotdigitizer.com/ >> demo doesn't even work! https://www.digitizeit.xyz/ >> trial period Read.me file : DigitizeIt is entirely written in Java. Therefore it can run on any platform that has an appropriate Java implementation. Most likely java is already included with your distribution or can be installed using the standard package manager. If not, it can be downloaded for free from http://java.com or http://openjdk.java.net So, 1) first things first, execute "java -version" on the command line, and check if you already have a java version >= 1.6 $ java -version $ java -version openjdk version "1.8.0_275" OpenJDK Runtime Environment (build 1.8.0_275-8u275-b01-1~deb9u1-b01) OpenJDK 64-Bit Server VM (build 25.275-b01, mixed mode) >> OK 2) install the java if not alredy present 3) make sure java is on your PATH 4) repeat step one, make sure the version >= 1.6. Otherwise adjust your PATH (this can only happen, if you already have an older version installed). 5) unzip DigitizeIt in its own directory, cd into that directory >> I had saved in Howell_BASE, copied to 6) type "java -jar DigitizeIt.jar" $ java -jar "$d_SysMaint""digitizelt graph from image/DigitizeIt.jar" Registration key : >> I purchased it Order Number 700754523 Key g6Lu92MaFUvSC1Q4dXOSdcC9Pfg8JLzK5N40ufOEYPMni+zPgaa9MA== SP500 1870-2030 y-log detrend, y-data no model, digitizelt fixed.csv # enddoc