0
$\begingroup$

I am trying to plot some things using Mathematica. I haven't used Mathematica for plotting before , so apologies if my question is basic.

I have the following image, which is my target image: enter image description here

I also two more plots that I did using Mathematica, and that I plotted in separate files. They are in log-log scales. So let's say image 1 is in file 1, and image 2 is in file 2. For example, image 1 is given by

The target image

Image 2 is

enter image description here

I can export and import both images and load them to different files.

My goal, however, is to merge the plots that I did in Mathematica with the target image, i.e. I want to add image 1 and 2 to the target image such that it also appears as a colored area there. Is something like that possible?

If not: Can I at least merge my image 1 and 2 in a single picture and plot it next to my target image?

$\endgroup$
3
  • 2
    $\begingroup$ To combine the two Mathematica plots, see Show. To include the image, see Inset, which you can then put into the Prolog. So in total, you would have Show[plot1,plot2,Prolog->Inset[image,...]] $\endgroup$
    – Lukas Lang
    Jun 6, 2022 at 10:10
  • $\begingroup$ @LukasLang Thanks, but 'Show' does apparently not work with imported images. Is there an alternative? The point is that plot1 is already imported (i.e. its a jpg file) $\endgroup$ Jun 6, 2022 at 14:29
  • $\begingroup$ Sorry for the confusion - you need to use Inset for the images, and Show for the plots created by Mathematica, as I have tried to hint at in my last comment. To use your naming scheme: Show[image1,image2,Prolog->Inset[target,...]]. $\endgroup$
    – Lukas Lang
    Jun 6, 2022 at 14:58

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.