I have two Graphics images, the first generated by Manipulate and the second generated directly that don’t overlap correctly. Changing both primary graphs to Manipulate doesn’t solve the problem.
Version that overlays properly (See attached notebook)
Version that doesn’t overlay properly (see attached notebook)
The underlying definitions
In[24] = lineLONCUR = Line[{{iloncapture2, 1}, {iloncapture2, 9}}]
In[25] = lineLONGRA = Show[Graphics[lineLONCUR]]
In[26]:= lineTRKCUR = Line[{{0.0, 1.6}, {1.7, 3.2}, {3.4, 4.2}, {5.1, 5.4}, {6.9, 6.2}, {8.6, 6.2}, {103, 6.1}}];
In[27]:= Line[{{0.`, 1.6`}, {1.7`, 3.2`}, {3.4`, 4.2`}, {5.1`, 5.4`}, {6.9`, 6.2`}, {8.6`, 6.2`}, {103, 6.1`}}];
In[28]:= Line[{{0.`, 1.6`}, {1.7`, 3.2`}, {3.4`, 4.2`}, {5.1`, 5.4`}, {6.9`, 6.2`}, {8.6`, 6.2`}, {103, 6.1`}}];
In[29]:= lineTRKGRA = Show[Graphics[{Green, Thick, lineTRKCUR}]]
In[30]:= lineTURCUR = Line[{{8.51, 5.85}, {8.71, 5.85}}];
In[31]:= lineTURGRA = Show[Graphics[{Red, Thick, lineTURCUR}]]
The one that overlays properly
Manipulate[
wspdLEVshort2 =
Table[wspd3d[[klev, jlat, ilon]], {jlat, nlat, 1, -1}, {ilon, 1, nlon, 1}];
klevcapture = klev;
gLEV1 =
ListContourPlot[wspdLEVshort2, ContourLabels -> All, AxesLabel -> {Longitude, Latitude},
Contours -> {90, 80, 70, 60, 50, 40} , PlotLabel -> "wspdLEV", PlotLegends -> Automatic]
, {{klev, 3}, 1, 5, 1}
]
]
gLEV1comb = Show[gLEV1, lineLONGRA, lineTRKGRA, lineTURGRA]
The one that doesn’t overlay properly
gLEV2 = ListContourPlot[wlinLEV, ContourLabels -> All,
AxesLabel -> {Longitude, Latitude},
Contours -> {90, 80, 70, 60, 50, 40} , PlotLabel -> "wspdLEV",
PlotRegion -> {{0.0, 1.0}, {0.0, 1.0}}, PlotLegends -> Automatic]
v2LEV2comb = Show[{lineLONGRA, lineTRKGRA, lineTURGRA, gLEV2}]
correct_and_incorrect_overlays.nb (33.4 KB)