I want to plot multiple data sets having error bands with legends such that the style of error band is also reflected in the corresponding legend. So for e.g. let's say I have the following two data sets.
sinData = Table[{x, Around[Sin[x], 0.1*Sin[x]]}, {x, 0.1, Pi, 0.1}];
cosData = Table[{x, Around[Cos[x], 0.1*Sin[x]]}, {x, 0.1, Pi, 0.1}];
Now I plot them together with error bands and legend
ListPlot[{sinData, cosData}, IntervalMarkers -> "Bands",
IntervalMarkersStyle -> {Blue, Red}, Joined -> True,
IntervalMarkersStyle -> Gray, PlotRange -> All,
PlotLegends -> LineLegend[{"sin", "cos"}], Frame -> True]
Here the problem is the legends do not have the error band. So I have the following two questions based on this problem.
1) Is it possible to show the same plot with legends having a small rectangular band in the same style as the plot where I would have the control over the height of that small rectangular band with the legend line in the middle. So for the above example the sin curve legend should look something like below with adjustable height.
2) Also is it possible to have different types of lined shading within the error band like for e.g. the commanly used are the chequered shading, forward line shading, backward line shading etc. Below I have shown a portion of a plot with chequered shaded error band.
then it should have the corresponding chequered shaded legend