The documentation indicates simple, consistent, and intuitive usage for wrappers in ListLinePlot
and ListLinePlot3D
. However, the Style
wrapper for ListLinePlot
doesn't seem to work.
For example, consider the examples below. The Labeled
wrapper works as the documentation indicates, the same way for ListLinePlot
and ListLinePlot3D
, and how you would expect (examples 1 and 2). The Style
wrapper works this way for ListLinePlot3d
(example 3) but not for ListLinePlot
(example 4).
Can I fix this or get around it? I would like to stylize individual points in ListLinePlot
.
1 ) ListLinePlot3D with Labeled (ok)
ListLinePlot3D[{{2.1, Labeled[2.9, "hello"], 2.8, 1.9}, {2.2, 2.7,
1.1, 2.2}, {2.3, 1.7, 2.3, 1.7}}, PlotMarkers -> {Automatic, 0.03}]
2 ) ListLinePlot with Labeled (ok)
ListLinePlot[{{2.1, Labeled[2.9, "hello"], 2.8, 1.9}, {2.2, 2.7, 1.1,
2.2}, {2.3, 1.7, 2.3, 1.7}}, PlotMarkers -> {Automatic, 0.05}]
3 ) ListLinePlot3D with Style (ok)
ListLinePlot3D[{{2.1, Style[2.9, Red], 2.8, 1.9}, {2.2, 2.7, 1.1,
2.2}, {2.3, 1.7, 2.3, 1.7}}, PlotMarkers -> {Automatic, 0.03}]
4 ) ListLinePlot with Style (broken)
ListLinePlot[{{2.1, Style[2.9, Red], 2.8, 1.9}, {2.2, 2.7, 1.1,
2.2}, {2.3, 1.7, 2.3, 1.7}}, PlotMarkers -> {Automatic, 0.05}]
- Mathematica Version 13.0.1.0
- macOS Big Sur Version 11.6.5
ListLinePlot3D
is doing something that it shouldn't be doing. In the manual for bothListLinePlot
andListLinePlot3D
Style
is applied to a complete dataset rather than an individual data point. Also, whenStyle
is applied to a dataset inListLinePlot
, it is the line that is modified and not the plot marker. $\endgroup$ListLinePlot3D
's (arguably expected) feature is a bug andStyle
not working on points forListLinePlot
is intended behavior, considering it is unnecessarily restrictive. All other wrappers I've tested work as expected. OnlyStyle
, only forListLinePlot
, only for points, is the exception. $\endgroup$Style
should work on an individual point. Doing so would be a nice feature but it's not clear to me that it has been advertised as such. $\endgroup$