Change the dimension of the result of PointLegend? [duplicate]












2












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


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$



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.























    2












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


    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$



    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.





















      2












      2








      2





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


      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$





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


      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





      This question already has an answer here:




      • How to raise the LegendLayout “Row” size

        2 answers








      plotting legending visualization






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      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.
























          1 Answer
          1






          active

          oldest

          votes


















          5












          $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
            Jan 15 at 8:47


















          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          5












          $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
            Jan 15 at 8:47
















          5












          $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
            Jan 15 at 8:47














          5












          5








          5





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


















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



          Popular posts from this blog

          Mario Kart Wii

          What does “Dominus providebit” mean?

          Antonio Litta Visconti Arese