How can I automate the process of digitizing a line plot from an image using MATLAB?
21 views (last 30 days)
Show older comments
MathWorks Support Team
on 7 Feb 2019
Edited: MathWorks Support Team
on 5 Nov 2025
How can I automate the process of digitizing a plot from an image using MATLAB? I have an image of the plot and I would like to extract the plotted data from it automatically using MATLAB, and generate a MATLAB figure.
Accepted Answer
MathWorks Support Team
on 28 Oct 2025
Edited: MathWorks Support Team
on 5 Nov 2025
Digitizing a line plot from an image can be done in MATLAB using functions from the Image Processing Toolbox. You can read the following in-depth blog posts that demonstrate how to extract data from a line plot.
As noted in the blog post, "automatability[...]depends markedly on the ability to exploit similarities in the data set (images)." This is to say that the ability to automate depends on the amount of preprocessing that must be done to make each image resemble each other. For example, if one image has a large watermark across its entire graph, this could entail a different set of preprocessing steps as compared to an image without such a watermark.
However, there are also many community contributions at MATLAB File Exchange that offer solutions for this feature:
0 Comments
More Answers (0)
See Also
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!