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
PlotMarkersare given theGridbackground and it over prints other markers - The axis labels and plot area are given the
Gridbackground even if an explicitBackgroundoption 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? – Stitch May 12 '17 at 14:55Rasterize. – Edmund May 12 '17 at 17:07PaneorPanelto protect the backgrounds from Grid. – Edmund May 12 '17 at 20:50Paneas a solution before I posted. Next time please consider self-answering rather than leaving a comment. – Mr.Wizard May 13 '17 at 02:05