Change the dimension of the result of PointLegend? [duplicate]
$begingroup$
This question already has an answer here:
How to raise the LegendLayout “Row” size
2 answers
Here is the output of PointLegend
:
a = {"a", "ai", "an", "ang", "ao", "b", "c", "ch", "d", "e", "ei", "en", "eng", "er", "f", "g", "h", "i", "ia", "ian", "iang", "iao", "ie", "ii", "iii", "in", "ing", "iong", "iou", "j", "k", "l", "m", "n", "o", "ong", "ou", "p", "q", "r", "s", "sh", "sil", "sp", "t", "u", "ua", "uai", "uan", "uang", "uei", "uen", "ueng", "uo", "v", "van", "ve", "vn", "x", "z", "zh"};
PointLegend["Rainbow", a, LegendMarkerSize -> 15, LegendLayout -> "Column"]
It's like a 9*7 matrix, how to reshape it? like 5*13.
I find the Head
of the result is still PointLegend
.So Can't using List
method to reshape it.
However I found If changing LegendLayout
to LegendLayout -> "Automatic"
.
It seems it construct from the List
plotting legending visualization
$endgroup$
marked as duplicate by Lukas Lang, Community♦ Jan 15 at 8:59
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.
add a comment |
$begingroup$
This question already has an answer here:
How to raise the LegendLayout “Row” size
2 answers
Here is the output of PointLegend
:
a = {"a", "ai", "an", "ang", "ao", "b", "c", "ch", "d", "e", "ei", "en", "eng", "er", "f", "g", "h", "i", "ia", "ian", "iang", "iao", "ie", "ii", "iii", "in", "ing", "iong", "iou", "j", "k", "l", "m", "n", "o", "ong", "ou", "p", "q", "r", "s", "sh", "sil", "sp", "t", "u", "ua", "uai", "uan", "uang", "uei", "uen", "ueng", "uo", "v", "van", "ve", "vn", "x", "z", "zh"};
PointLegend["Rainbow", a, LegendMarkerSize -> 15, LegendLayout -> "Column"]
It's like a 9*7 matrix, how to reshape it? like 5*13.
I find the Head
of the result is still PointLegend
.So Can't using List
method to reshape it.
However I found If changing LegendLayout
to LegendLayout -> "Automatic"
.
It seems it construct from the List
plotting legending visualization
$endgroup$
marked as duplicate by Lukas Lang, Community♦ Jan 15 at 8:59
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.
add a comment |
$begingroup$
This question already has an answer here:
How to raise the LegendLayout “Row” size
2 answers
Here is the output of PointLegend
:
a = {"a", "ai", "an", "ang", "ao", "b", "c", "ch", "d", "e", "ei", "en", "eng", "er", "f", "g", "h", "i", "ia", "ian", "iang", "iao", "ie", "ii", "iii", "in", "ing", "iong", "iou", "j", "k", "l", "m", "n", "o", "ong", "ou", "p", "q", "r", "s", "sh", "sil", "sp", "t", "u", "ua", "uai", "uan", "uang", "uei", "uen", "ueng", "uo", "v", "van", "ve", "vn", "x", "z", "zh"};
PointLegend["Rainbow", a, LegendMarkerSize -> 15, LegendLayout -> "Column"]
It's like a 9*7 matrix, how to reshape it? like 5*13.
I find the Head
of the result is still PointLegend
.So Can't using List
method to reshape it.
However I found If changing LegendLayout
to LegendLayout -> "Automatic"
.
It seems it construct from the List
plotting legending visualization
$endgroup$
This question already has an answer here:
How to raise the LegendLayout “Row” size
2 answers
Here is the output of PointLegend
:
a = {"a", "ai", "an", "ang", "ao", "b", "c", "ch", "d", "e", "ei", "en", "eng", "er", "f", "g", "h", "i", "ia", "ian", "iang", "iao", "ie", "ii", "iii", "in", "ing", "iong", "iou", "j", "k", "l", "m", "n", "o", "ong", "ou", "p", "q", "r", "s", "sh", "sil", "sp", "t", "u", "ua", "uai", "uan", "uang", "uei", "uen", "ueng", "uo", "v", "van", "ve", "vn", "x", "z", "zh"};
PointLegend["Rainbow", a, LegendMarkerSize -> 15, LegendLayout -> "Column"]
It's like a 9*7 matrix, how to reshape it? like 5*13.
I find the Head
of the result is still PointLegend
.So Can't using List
method to reshape it.
However I found If changing LegendLayout
to LegendLayout -> "Automatic"
.
It seems it construct from the List
This question already has an answer here:
How to raise the LegendLayout “Row” size
2 answers
plotting legending visualization
plotting legending visualization
asked Jan 15 at 7:06
partidapartida
3,6691435
3,6691435
marked as duplicate by Lukas Lang, Community♦ Jan 15 at 8:59
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.
marked as duplicate by Lukas Lang, Community♦ Jan 15 at 8:59
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.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
PointLegend["Rainbow", a, LegendMarkerSize -> 15,
LegendLayout -> {"Row", 5}]
Alternatively,
PointLegend["Rainbow", a, LegendMarkerSize -> 15,
LegendLayout -> (Grid[Row /@ # & /@ Partition[#, 13, 13, 1, {}],
Alignment -> Left] &)]
$endgroup$
$begingroup$
Wow, It's a undocumented trick!Thanks!
$endgroup$
– partida
Jan 15 at 8:47
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
PointLegend["Rainbow", a, LegendMarkerSize -> 15,
LegendLayout -> {"Row", 5}]
Alternatively,
PointLegend["Rainbow", a, LegendMarkerSize -> 15,
LegendLayout -> (Grid[Row /@ # & /@ Partition[#, 13, 13, 1, {}],
Alignment -> Left] &)]
$endgroup$
$begingroup$
Wow, It's a undocumented trick!Thanks!
$endgroup$
– partida
Jan 15 at 8:47
add a comment |
$begingroup$
PointLegend["Rainbow", a, LegendMarkerSize -> 15,
LegendLayout -> {"Row", 5}]
Alternatively,
PointLegend["Rainbow", a, LegendMarkerSize -> 15,
LegendLayout -> (Grid[Row /@ # & /@ Partition[#, 13, 13, 1, {}],
Alignment -> Left] &)]
$endgroup$
$begingroup$
Wow, It's a undocumented trick!Thanks!
$endgroup$
– partida
Jan 15 at 8:47
add a comment |
$begingroup$
PointLegend["Rainbow", a, LegendMarkerSize -> 15,
LegendLayout -> {"Row", 5}]
Alternatively,
PointLegend["Rainbow", a, LegendMarkerSize -> 15,
LegendLayout -> (Grid[Row /@ # & /@ Partition[#, 13, 13, 1, {}],
Alignment -> Left] &)]
$endgroup$
PointLegend["Rainbow", a, LegendMarkerSize -> 15,
LegendLayout -> {"Row", 5}]
Alternatively,
PointLegend["Rainbow", a, LegendMarkerSize -> 15,
LegendLayout -> (Grid[Row /@ # & /@ Partition[#, 13, 13, 1, {}],
Alignment -> Left] &)]
edited Jan 15 at 7:34
answered Jan 15 at 7:28
kglrkglr
181k10200413
181k10200413
$begingroup$
Wow, It's a undocumented trick!Thanks!
$endgroup$
– partida
Jan 15 at 8:47
add a comment |
$begingroup$
Wow, It's a undocumented trick!Thanks!
$endgroup$
– partida
Jan 15 at 8:47
$begingroup$
Wow, It's a undocumented trick!Thanks!
$endgroup$
– partida
Jan 15 at 8:47
$begingroup$
Wow, It's a undocumented trick!Thanks!
$endgroup$
– partida
Jan 15 at 8:47
add a comment |