Possible Duplicate:
Why does ListPlot ignore some global options?
Using this data:
curve = {{0.833, 0.1}, {0.25, 0.08}, {0.5, 0.15}, {1, 0.2}, {2,
0.3}, {3, 0.45}, {5, 0.75}, {7, 1.25}, {10, 1.85}, {20,
2.55}, {30, 3}};
ListPlot with options set inside show plot markers:
But if I put the exact same options in SetOptions, like this:
SetOptions[ListPlot, ImageSize->300, Frame->True, Joined->True, PlotMarkers->Automatic,
AxesOrigin->{0.5,0}, PlotRange->All, GridLines->Automatic, GridLinesStyle->LightGray,
FrameLabel->{"Years","Yield (%)","Treasury Yield Curve on Oct 17, 2012"},
LabelStyle->{11, FontFamily -> "Arial"}];
The plot markers disappear. I perfer to keep the (relatively unimportant) options out of posts here, showing only the data, plot function, and results. This annoyance thwarts me.
ListLinePlot
and corresponding options (minus theJoined
part). $\endgroup$PlotRange
orAxesOrigin
aren't inAutomatic
it forgets to checkPlotMarkers
in the defaults? Blergh $\endgroup$ListPlot[curve, Options@ListPlot]
$\endgroup$