Plot data on top of an image

Say you downloaded a plot (as an image) from a journal publication. You can plot your results/data on the downloaded image using this script

Vous suivez désormais cette soumission

Using this script, you can plot your data on top of an image. The diplay picture of this thread shows a sample output.
The script works even when the axes scaling is 'log'.
The script works only for 2D rectangular plots.
There are 5 steps in the script. The steps are very well commented. In case, you still need help, type your question in the discussion tab.

Citation pour cette source

Ravi Kumar Pallantla (2026). Plot data on top of an image (https://fr.mathworks.com/matlabcentral/fileexchange/115950-plot-data-on-top-of-an-image), MATLAB Central File Exchange. Extrait(e) le .

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.2

Minor changes in comments and renaming some of the variables. One change in the code :"wth = width_of_square - 1" changed to "wth = width_of_square".

1.0.1

Added display picture, that shows a sample output.

1.0.0