I have two plots which I want to present on a single figure.
The bottom left corner is a point of origin of the first plot. The top right corner is a point of origin of the second plot. Also, the second plot's axes have reversed directions. That image presents those two plots - the rightmost function belongs to the second plot.
I am using Epilog->Inset[Rotate[plot2,180 Degree]]
. The result I posted was obtained after tweaking ImageSize
, ImagePadding
, AspectRatio
and Inset
coordinates with some arbitrary numbers. Is there a different, perhaps more elegant way?
edit: Code snippet:
T = {{"100", 12.23, 2.675, 1}, {"140", 35.2, 3.5, 1.4}, {"180", 81.3,4.275, 1.9},
{"220", 162, 5.05, 2.4}, {"260", 288, 5.8,2.9}, {"300", 451, 6.4, 3.3},
{"340", 674, 7, 3.8}, {"360", 818,7.25, 4.1}, {"400", 1160, 7.825, 4.6}};
p1 = Plot[(Pi^2*205*10^9*T[[2, 2]]*10^(-8)/x^2)/1000, {x, 0, 10}, ImageSize -> 1000,
PlotRange -> {0, 3000}, ImagePadding -> {{6, 5}, {5, 6}}, AspectRatio -> 0.595];
Show[Table[{
Plot[(Pi^2*205*10^9*T[[n, 2]]*10^(-8)/x^2)/1000, {x, 0,T[[n,3]]},
PlotStyle -> {Thick}],
Plot[(Pi^2*205*10^9*T[[n, 2]]*10^(-8)/x^2)/1000, {x, T[[n,3]],10},
PlotStyle -> {Dashed}]}
, {n, Dimensions[T][[1]]}],
PlotRange -> {0, 3000}, GridLines -> {Range[0, 10, 1], Range[0, 3000, 100]},
GridLinesStyle -> Directive[GrayLevel[0.7], Dashed], ImageSize -> 1000,
ImagePadding -> {{6, 5}, {5, 6}},
Epilog -> {
Table[Inset[Framed[T[[n, 1]], RoundingRadius -> 10, Background -> White],
{T[[n, 4]], 250*T[[n, 4]]}],
{n,Dimensions[T][[1]]}],
Inset[Rotate[p1, 180 Degree], {5.01, 1490}]
}
]