Change the dimension of the result of PointLegend?












2












$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"]


enter image description here



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



enter image description here










share|improve this question









$endgroup$












  • $begingroup$
    Possible duplicate of How to raise the LegendLayout "Row" size
    $endgroup$
    – Lukas Lang
    7 mins ago
















2












$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"]


enter image description here



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



enter image description here










share|improve this question









$endgroup$












  • $begingroup$
    Possible duplicate of How to raise the LegendLayout "Row" size
    $endgroup$
    – Lukas Lang
    7 mins ago














2












2








2





$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"]


enter image description here



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



enter image description here










share|improve this question









$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"]


enter image description here



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



enter image description here







plotting legending visualization






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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


















  • $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










1 Answer
1






active

oldest

votes


















3












$begingroup$

PointLegend["Rainbow", a, LegendMarkerSize -> 15, 
LegendLayout -> {"Row", 5}]


enter image description here



Alternatively,



PointLegend["Rainbow", a, LegendMarkerSize -> 15, 
LegendLayout -> (Grid[Row /@ # & /@ Partition[#, 13, 13, 1, {}],
Alignment -> Left] &)]


enter image description here






share|improve this answer











$endgroup$













  • $begingroup$
    Wow, It's a undocumented trick!Thanks!
    $endgroup$
    – partida
    10 mins ago











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
});


}
});














draft saved

draft discarded


















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









3












$begingroup$

PointLegend["Rainbow", a, LegendMarkerSize -> 15, 
LegendLayout -> {"Row", 5}]


enter image description here



Alternatively,



PointLegend["Rainbow", a, LegendMarkerSize -> 15, 
LegendLayout -> (Grid[Row /@ # & /@ Partition[#, 13, 13, 1, {}],
Alignment -> Left] &)]


enter image description here






share|improve this answer











$endgroup$













  • $begingroup$
    Wow, It's a undocumented trick!Thanks!
    $endgroup$
    – partida
    10 mins ago
















3












$begingroup$

PointLegend["Rainbow", a, LegendMarkerSize -> 15, 
LegendLayout -> {"Row", 5}]


enter image description here



Alternatively,



PointLegend["Rainbow", a, LegendMarkerSize -> 15, 
LegendLayout -> (Grid[Row /@ # & /@ Partition[#, 13, 13, 1, {}],
Alignment -> Left] &)]


enter image description here






share|improve this answer











$endgroup$













  • $begingroup$
    Wow, It's a undocumented trick!Thanks!
    $endgroup$
    – partida
    10 mins ago














3












3








3





$begingroup$

PointLegend["Rainbow", a, LegendMarkerSize -> 15, 
LegendLayout -> {"Row", 5}]


enter image description here



Alternatively,



PointLegend["Rainbow", a, LegendMarkerSize -> 15, 
LegendLayout -> (Grid[Row /@ # & /@ Partition[#, 13, 13, 1, {}],
Alignment -> Left] &)]


enter image description here






share|improve this answer











$endgroup$



PointLegend["Rainbow", a, LegendMarkerSize -> 15, 
LegendLayout -> {"Row", 5}]


enter image description here



Alternatively,



PointLegend["Rainbow", a, LegendMarkerSize -> 15, 
LegendLayout -> (Grid[Row /@ # & /@ Partition[#, 13, 13, 1, {}],
Alignment -> Left] &)]


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited 1 hour ago

























answered 1 hour ago









kglrkglr

179k9198409




179k9198409












  • $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




$begingroup$
Wow, It's a undocumented trick!Thanks!
$endgroup$
– partida
10 mins ago


















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Alcázar de San Juan

Griza ansero

Heinkel He 51