Change the dimension of the result of PointLegend?
$begingroup$
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$
add a comment |
$begingroup$
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$
$begingroup$
Possible duplicate of How to raise the LegendLayout "Row" size
$endgroup$
– Lukas Lang
7 mins ago
add a comment |
$begingroup$
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$
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
plotting legending visualization
asked 1 hour ago
partidapartida
3,6441435
3,6441435
$begingroup$
Possible duplicate of How to raise the LegendLayout "Row" size
$endgroup$
– Lukas Lang
7 mins ago
add a comment |
$begingroup$
Possible duplicate of How to raise the LegendLayout "Row" size
$endgroup$
– Lukas Lang
7 mins ago
$begingroup$
Possible duplicate of How to raise the LegendLayout "Row" size
$endgroup$
– Lukas Lang
7 mins ago
$begingroup$
Possible duplicate of How to raise the LegendLayout "Row" size
$endgroup$
– Lukas Lang
7 mins ago
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
10 mins ago
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "387"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f189512%2fchange-the-dimension-of-the-result-of-pointlegend%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
10 mins ago
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
10 mins ago
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 1 hour ago
answered 1 hour ago
kglrkglr
179k9198409
179k9198409
$begingroup$
Wow, It's a undocumented trick!Thanks!
$endgroup$
– partida
10 mins ago
add a comment |
$begingroup$
Wow, It's a undocumented trick!Thanks!
$endgroup$
– partida
10 mins ago
$begingroup$
Wow, It's a undocumented trick!Thanks!
$endgroup$
– partida
10 mins ago
$begingroup$
Wow, It's a undocumented trick!Thanks!
$endgroup$
– partida
10 mins ago
add a comment |
Thanks for contributing an answer to Mathematica Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f189512%2fchange-the-dimension-of-the-result-of-pointlegend%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
$begingroup$
Possible duplicate of How to raise the LegendLayout "Row" size
$endgroup$
– Lukas Lang
7 mins ago