I saw this piece of code from an answer by @Syed here.
LineLegend[{Blue, Green, Red}, {"a = test1\na = test2",
"a = test3\na = test4", "a = test5\na = test6"},
LegendLayout -> {"Row", 1},
LegendMarkers -> {{"\[FilledCircle]", 15}, {"\[FilledUpTriangle]",
15}, {"\[FilledSquare]", 15}}]
At first, I noticed LegendLayout -> {"Row", 1}
which is new to me.
So I checked the documentation for LegendLayout and didn't see any example where they used something like {"Row", 1}
.
After that I tried the code and changed {"Row", 1}
to {"Row", 2}
and {"Row", 3}
and finally realized that this number indicates number of rows.
Question:
Does this usage exist in the documentation as I don't really see it?
If not then how would you learn something like this, from books, someone or just discover it by accident?
I know this is very simple for most of you but it's confusing for a beginner like me.
LegendLayout
shares the same options settings asPlotLayout
, i.e{Or["Column","Row"], n}
withn
a positive integer. It was usedhere
for the latter. $\endgroup$