I have plots with custom PlotMarkers
that I need to display in a Grid
with other information. When the Grid
is given a Background
option
- The custom
PlotMarkers
are given theGrid
background and it over prints other markers - The axis labels and plot area are given the
Grid
background even if an explicitBackground
option has been given for the plot.
Plot outside of the grid
p =
ListPlot[{{{1, 1}}, {{2, 1}}, {{3, 1}}},
PlotMarkers -> Graphics /@ {
Circle[{0, 0}, Scaled[.1]],
Disk[{0, 0}, Scaled[.1]],
Disk[{0, 0}, Scaled[.1], {0, 4}]},
ImageSize -> Small]
Plot in a Grid
with Background
option
Grid[{{p}},
Background -> LightBlue]
Here the markers have been given the Grid
Background
option. Their background also over prints adjacent markers.
Plot with Background
option in a Grid
with Background
option
Grid[{{Show[p, Background -> Pink]}},
Background -> LightBlue]
The horror! Even by explicitly setting the plot's Background
option Grid
still hijacks the background.
How do I stop Grid
Background
from overriding both the plot's and the custom PlotMarkers
backgrounds?
Version 11.1.0 with Win 7 Ent
CASE:3890272
Grid[{{Graphics[Disk[{0, 0}, Scaled[.1]]]}}, Background -> LightBlue]
. It comes out white, but if you move the cursor up, it becomes blue. I assume you don't wantRasterize
? $\endgroup$Rasterize
. $\endgroup$