I have a function firsttempinterp[x]
that I plot using LogLogPlot
. I used Filling
to fill a region with gray color, however, using PlotRangePadding
does not cover the entire region I want. The region is above the curve until the y-axis to the left. Any guide on how to resolve this?
temp = {0.1, 0.1355, 0.5, 10};
firsttime = {0.21707, 0.23616, 0.44440, 6.47129};
firsttempdata = Transpose[{firsttime, temp}];
firsttempinterp =
Interpolation[
firsttempdata,
InterpolationOrder -> 2,
Method -> "Spline"
]
LogLogPlot[{
If[x < 0.23616 + 3 2.361387, firsttempinterp[x - 3 2.361387] + 3 1.355, None],
If[x > 0.23616 + 3 2.361387, firsttempinterp[x - 3 2.361387] + 3 1.355, None]},
{x, 0, 17},
Frame -> True,
FrameStyle -> Directive[Black, 20],
PlotStyle -> {{Dashed, Black, Thick}, {Black, Thick}},
PlotRange -> {All, {0.09, 10.5}},
PlotRangePadding -> 0,
Filling -> {
1 -> {Top, {Directive[Opacity[0.3], Gray]}},
2 -> {Top, {Directive[Opacity[0.3], Gray]}}
},
ImageSize -> Large
]