Bug fixed in 12.0
Could somebody explain, why Circle
does not inherit the PlotStyle
of the plot when used as PlotMarkers
? Here is an example:
l1 = RandomInteger[100, {20, 2}]
cross = Graphics[{Line[{{-1, 1}, {1, -1}}], Line[{{1, 1}, {-1, -1}}]}];
circle = Graphics[Circle[{0, 0}, 1]];
ListPlot[l1, PlotStyle -> Thick, PlotMarkers -> {cross, .03}]
ListPlot[l1, PlotStyle -> Thick, PlotMarkers -> {circle, .03}]
This seem to work as expected, but the only difference is that Graphics is given a list of primitives:
circle1 = Graphics[{Circle[{0, 0}, 1]}];
ListPlot[l1, PlotStyle -> Thick, PlotMarkers -> {circle1, .03}]
Graphics[Line[{{-1, 1}, {1, -1}}]]
shows the same behavior when used as plotmarker $\endgroup$cross = Graphics[Line[{{{-1, 1}, {1, -1}}, {{1, 1}, {-1, -1}}}]]; ListPlot[l1, PlotStyle -> Thick, PlotMarkers -> {cross, .03}]
also ignores thePlotStyle
. So the problem is in curly brackets, trycross = Graphics[{Line[{{{-1, 1}, {1, -1}}, {{1, 1}, {-1, -1}}}]}]; ListPlot[l1, PlotStyle -> Thick, PlotMarkers -> {cross, .03}]
. $\endgroup$