A simple walkthrough to use the Engauge Digitizer to pull values off a "printed" graph

There's a far more complete manual that comes with the download, but these are the steps I used to generate the data for the webservices graphs. It assumes you've got a black and white image of the graph, with continuous lines for the data and orthogonal gridlines, and linear axes.

We'll use the bilirubin risk levels from the AAP bilirubin guidelines:

  1. Open the digitizer

    You can't use Open with... from the context menu because the program expects filenames as part of the options; you can read the manual to see how to modify the context menu. Click Import on the toolbar: Import icon and select your image file:

    graph imported

    Save your work (it's a .dig file) often. You don't need me to remind you.

  2. Set the axes

    Click Axis Point in the toolbar: Axis icon and click on the origin (lower left corner) of the graph and enter the x,y values for the origin in the units of the graph (not pixels!). Usually that's (0,0) but can be anything. Click on the maximum of the y-axis (upper left corner), then the maximum of the x-axis (lower right corner).

  3. Remove the grid

    Select Grid Removal... from the Settings menu. Select "Remove thin lines parallel to the axes" and play with the "Minimum line thickness" until the gridlines are gone from the preview on the bottom but the real curves are still there.

    remove grid window

    Now the grid is gone and digitizing the curves will be easy:

    graph without grid
  4. Create curves

    Select Curves... from the Settings menu. Create as many curves as you need (we have three). Give them descriptive names if you like:

    curve window
  5. Digitize each curve

    Click Segment Fill in the toolbar: Segment icon. For each curve, select it from the curve menu: Axis icon and click the points on the graph for that curve until it is covered with points. There's no undo command. If a wrong point is included, use the Select tool: Select icon to select the bad points and use the Delete key. To add individual points, use the Curve Point tool: Curve Point icon. In a few clicks, you have the fully digitized graph:

    curve window
  6. Set up the export

    If you exported the data now, you'd have lots of points; probably far more than is justified from the original graph. Decide which x-axis values should be exported (the program will interpolate appropriately if the digitized points don't land exactly). Select Grid Display... from the Settings menu:

    grid window

    The values to be specified are related by count = (stop - start)/step so you only need to specify three; select the one you don't want to specify from the Disable dropdown menu. Make sure that the start and stop values are actually in the curve; the program will happily extrapolate off the curve but it's probably not scientifically legitimate. Ignore the y axis grid lines.

    Select Export Setup... from the Settings menu. In the Points Selection section, select Intepolate Y's at gridline X's.

    grid window
  7. Export

    Click the Export icon in the toolbar: Export icon. Pick a name and you now have a CSV file with your data. Simple, no?

8 Comments

  1. Frank Doyle says:

    Have you attempted to print the graph that results from / during the Engauge 4.1 analysis?

    I cannot “rescale” the internal image to obtain a plot that will fit on printer paper. I only get an enlarged image of the top left corner area.

  2. Danny says:

    @Frank Doyle:
    No, I’ve never tried to print from Engauge. I took screenshots, which isn’t quite the same thing but worked for my examples. I’ve always exported the data into OpenOffice (Excel would work as well) and graphed it from there.
    –Danny

  3. Bob Roddy says:

    Thank you very much for the tutorial. I had been using ED for awhile but never had to try to delete data points until today. I did not find any clue to this in ED but your tutorial did the trick.

    Thanks Again

  4. Danny says:

    @Bob Roddy:
    Glad to be of help. It took me a while to figure all this out, so I wanted to write it down where I could find it again.
    –Danny

  5. Bill Bullock says:

    First off, I am 75 years old but have been using desktops since the TRS-80. I have worked in the oilfield all my life and have many old well logs that I am revisiting looking for missed production as well as coal bed methane formations. My question pertains to “Grid Removal” using Engauge Digitizer: how can I determine what parameters to change in this tool and if you can tell me what each possible entry pertains to? For instance, the “Minimum Line Thickness” entry; does this mean the pixel width of the grid lines I want to remove and if so how do I determine this value? I could use Photoshop and blow them up and count the pixels if that is the best method. Under the “Maximum gap to connect (pixels) doe this mean the gap left in the graph curve when the grid lines are removed?
    Would it help if I subscribe to the discussion below? How about the Engauge forums?

    ANY help you could give me would be appreciated!

    Bill Bullock

  6. Danny says:

    @Bill Bullock:
    I am not an Engauge expert but as far as I can tell, the answers to your questions are all “yes”: Minimum line thickness is the pixel width of the grid lines and Maximum gap is the gap in the curve. The best way to find what values to use is to play with it; try varying numbers and see how the resulting graph looks. That’s what I did.
    Hope this helps,
    Danny

  7. Nupur says:

    when i import my graph image graph line doesn’t show up what should i do…

  8. Danny says:

    @Nupur:
    I can’t tell you without more details. Does the image import at all?
    –Danny

Leave a Reply


Warning: Undefined variable $user_ID in /home/public/blog/wp-content/themes/evanescence/comments.php on line 75