1
$\begingroup$

This question already has an answer here:

I use the StandardReport style sheet in my notebooks, but I would like to export plots without any backgrounds. Apparently, there isn't a global option to change the background on a plot, so I change the background for everything:

bgc = White;
ListPlot[{{1, 1}, {2, 2}}
, Background -> bgc
, TicksStyle -> {{12, Background -> bgc}, {12, Background -> bgc}}
, Joined -> True
, PlotMarkers -> Automatic
]

But there is still a gray background on plot markers.

example

How can I disable it?

$\endgroup$

marked as duplicate by Szabolcs, MarcoB, m_goldberg, Yves Klett, Edmund Jun 29 '16 at 23:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • $\begingroup$ Could you provide a specific example for your plot? I have gray background of markers with PlotMarkers -> Automatic and transparent background with PlotMarkers -> None. It works for me (Linux, V10.0.1) but contradicts the docs, which say None = no markers. $\endgroup$ – ybeltukov Jan 28 '15 at 18:56
  • $\begingroup$ PlotMarkers -> None gives me no makers at all (Linux, V9.0.0.0) $\endgroup$ – Clèm Jan 28 '15 at 19:19
  • $\begingroup$ Try with PlotMarkers -> {} $\endgroup$ – user9660 Jan 28 '15 at 20:18
  • $\begingroup$ Almost :) But how can I tune the marker size? $\endgroup$ – Clèm Jan 28 '15 at 20:30
  • 2
    $\begingroup$ V9.0.0.0 is the first v9 release so is very buggy, you should ugrade. $\endgroup$ – Öskå Jan 29 '15 at 2:02
1
$\begingroup$

Edit, 28.06.2016

There is a Background on PlotMarkers on 10.0 for Mac OS X x86 (64-bit) (December 4, 2014) with the StandardReport style:

 bgc = White;
 ListPlot[{{1, 1}, {2, 2}}, Background -> bgc, 
 TicksStyle -> {{12, Background -> bgc}, {12, Background -> bgc}}, 
 Joined -> True, PlotMarkers -> Automatic]

enter image description here

enter image description here

There is no Background on PlotMarkers on 10.0 for Mac OS X x86 (64-bit) (December 4, 2014) with the StandardReport style when using BaseStyle -> {Background -> None}:

bgc = White;
ListPlot[{{1, 1}, {2, 2}}
 , Background -> bgc
 , TicksStyle -> {{12, Background -> bgc}, {12, Background -> bgc}}
 , Joined -> True, PlotMarkers -> {{Graphics[{Disk[]}], 1/4}}
 , PlotRange -> {{0, 3}, {0, 3}}
 , BaseStyle -> {Background -> None}]

enter image description here

enter image description here

There is no Background on PlotMarkers on 10.0 for Mac OS X x86 (64-bit) (December 4, 2014) without the StandardReport style.

bgc = White;
ListPlot[{{1, 1}, {2, 2}}, Background -> bgc, 
TicksStyle -> {{12, Background -> bgc}, {12, Background -> bgc}}, 
Joined -> True, PlotMarkers -> Automatic]

enter image description here

And the the marker size can be tuned like so (see How can I change the size of the plot markers):

ListPlot[{{1, 1}, {2, 2}}
, Joined -> True
, PlotMarkers -> {{Graphics[{Disk[]}], 1/4}}
, PlotRange -> {{0, 3}, {0, 3}}]

enter image description here

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.