GraphicsGrid with a Label for each Column and RowPutting a vertical line in each Histogram using...

Does "Dominei" mean something?

Books on the History of math research at European universities

Golf game boilerplate

Stereotypical names

What will be the benefits of Brexit?

Organic chemistry Iodoform Reaction

Simple image editor tool to draw a simple box/rectangle in an existing image

Is exact Kanji stroke length important?

Java - What do constructor type arguments mean when placed *before* the type?

Identify a stage play about a VR experience in which participants are encouraged to simulate performing horrific activities

Are Warlocks Arcane or Divine?

What (else) happened July 1st 1858 in London?

What to do when my ideas aren't chosen, when I strongly disagree with the chosen solution?

Can the electrostatic force be infinite in magnitude?

Hostile work environment after whistle-blowing on coworker and our boss. What do I do?

Visiting the UK as unmarried couple

Can somebody explain Brexit in a few child-proof sentences?

Why does this part of the Space Shuttle launch pad seem to be floating in air?

How can a jailer prevent the Forge Cleric's Artisan's Blessing from being used?

The most efficient algorithm to find all possible integer pairs which sum to a given integer

I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?

Who must act to prevent Brexit on March 29th?

The One-Electron Universe postulate is true - what simple change can I make to change the whole universe?

Reply ‘no position’ while the job posting is still there (‘HiWi’ position in Germany)



GraphicsGrid with a Label for each Column and Row


Putting a vertical line in each Histogram using GraphicsGridComposite graphics with Row, Column, data aggregation and layout controlControl objects Sizing and placement in Graphicsgrid Vs Grid:Label each panel of GridCombining ArrayPlot and PlotGraphicsGrid Format Problem with SpanFromAboveConstructing a grid from a matrixHow to solve for the intersection points of two ellipses?How to use GraphicsGrid with ListPlots that have a PlotLegend?Rotated Row and Normal Column Headings for a GridPutting a vertical line in each Histogram using GraphicsGrid













5












$begingroup$


Is it possible to use GraphicsGrid and do something like this?



$begin{array}{cccc}
text{X} & Label1 & Label2& Label3\
Label4 & Plot1 & Plot2&Plot3\
Label5 & Plot4 & Plot5&Plot6\
Label6 & Plot7 & Plot8&Plot9\
end{array} $










share|improve this question









$endgroup$

















    5












    $begingroup$


    Is it possible to use GraphicsGrid and do something like this?



    $begin{array}{cccc}
    text{X} & Label1 & Label2& Label3\
    Label4 & Plot1 & Plot2&Plot3\
    Label5 & Plot4 & Plot5&Plot6\
    Label6 & Plot7 & Plot8&Plot9\
    end{array} $










    share|improve this question









    $endgroup$















      5












      5








      5





      $begingroup$


      Is it possible to use GraphicsGrid and do something like this?



      $begin{array}{cccc}
      text{X} & Label1 & Label2& Label3\
      Label4 & Plot1 & Plot2&Plot3\
      Label5 & Plot4 & Plot5&Plot6\
      Label6 & Plot7 & Plot8&Plot9\
      end{array} $










      share|improve this question









      $endgroup$




      Is it possible to use GraphicsGrid and do something like this?



      $begin{array}{cccc}
      text{X} & Label1 & Label2& Label3\
      Label4 & Plot1 & Plot2&Plot3\
      Label5 & Plot4 & Plot5&Plot6\
      Label6 & Plot7 & Plot8&Plot9\
      end{array} $







      graphics visualization






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 2 days ago









      An old man in the sea.An old man in the sea.

      1,094919




      1,094919






















          3 Answers
          3






          active

          oldest

          votes


















          5












          $begingroup$

          If you are willing to forego GraphicsGrid and give up some control over the placement of the decorations, it can be as simple as this:



          Make a 3 x 3 array of graphics (this is adopted from a previous answer}



          circles[n_] :=
          Module[{r, cntr},
          r := RandomReal[.25];
          cntr := RandomReal[1, {2}];
          Graphics[Table[{EdgeForm[Black], Hue[RandomReal[]], Disk[cntr, r]}, n],
          PlotRange -> {{0, 1}, {0, 1}}, PlotRangeClipping -> True, Frame -> True]

          lines[] :=
          Module[{lf, rt},
          lf := With[{x = RandomReal[.48]}, {Red, Line[{{x, 0}, {x, 1}}]}];
          rt := With[{x = RandomReal[{.52, 1}]}, {Blue, Line[{{x, 0}, {x, 1}}]}];
          Graphics[{lf, rt},
          PlotRange -> {{0, 1}, {0, 1}}, PlotRangeClipping -> True, Frame -> True]]

          SeedRandom[4];
          graphics =
          Apply[
          Show,
          Partition[Transpose[{Table[circles[8], 9], Table[lines[], 9]}], 3],
          {2}];


          Make the headers:



          {colHeaders, rowHeaders} = Partition[Table[Style[Row[{"Label", i}], "TBI"], {i, 6}], 3];


          Make the grid with TableForm:



          TableForm[graphics, TableHeadings -> {rowHeaders, colHeaders}]


          grid






          share|improve this answer











          $endgroup$





















            5












            $begingroup$

            Here is an option:



            plots = Table[Table[Plot[Sin[i x + j], {x, 1, 10}], {i, 3}], {j, 3}];
            xlabels = {"", "Label 1", "Label 2", "Label 3"};
            ylabels = {"Label 4", "Label 5", "Label 6"};
            GraphicsGrid[Join[{xlabels}, Transpose[Join[{ylabels}, Transpose[plots]]]]]


            enter image description here



            Updated with a slightly prettier option:



            xlabels = Text[Style[#, Large]] & /@ {"", "Label 1", "Label 2", "Label 3"};
            ylabels = Text[Style[#, Large]] & /@ {"Label 4", "Label 5", "Label 6"};
            Grid[Join[{xlabels}, Transpose[Join[{ylabels}, Transpose[plots]]]], Spacings -> {2, 1}]


            enter image description here






            share|improve this answer











            $endgroup$





















              3












              $begingroup$

              You could construct Graphics for the row and column headings. Something like this. Would have to adjust the vertical / horizontal placement of the label text.



              plotGrid = Table[Plot[Sin[x], {x, 0, 2 Pi}], 2, 2];

              plotRowHeader =
              Table[Graphics[Style[Text["Label " <> ToString[i]], 12]], {i, 2}];

              plotColumnHeader =
              Table[Graphics[Style[Text["Label " <> ToString[i]], 12]], {i, 3,
              4}] // Prepend[Graphics[Style[Text["X"], 12]]];

              graphicsGrid =
              plotGrid // Prepend[plotRowHeader] // Transpose //
              Prepend[plotColumnHeader];

              GraphicsGrid[graphicsGrid]


              enter image description here






              share|improve this answer









              $endgroup$













                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%2f193846%2fgraphicsgrid-with-a-label-for-each-column-and-row%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                3 Answers
                3






                active

                oldest

                votes








                3 Answers
                3






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                5












                $begingroup$

                If you are willing to forego GraphicsGrid and give up some control over the placement of the decorations, it can be as simple as this:



                Make a 3 x 3 array of graphics (this is adopted from a previous answer}



                circles[n_] :=
                Module[{r, cntr},
                r := RandomReal[.25];
                cntr := RandomReal[1, {2}];
                Graphics[Table[{EdgeForm[Black], Hue[RandomReal[]], Disk[cntr, r]}, n],
                PlotRange -> {{0, 1}, {0, 1}}, PlotRangeClipping -> True, Frame -> True]

                lines[] :=
                Module[{lf, rt},
                lf := With[{x = RandomReal[.48]}, {Red, Line[{{x, 0}, {x, 1}}]}];
                rt := With[{x = RandomReal[{.52, 1}]}, {Blue, Line[{{x, 0}, {x, 1}}]}];
                Graphics[{lf, rt},
                PlotRange -> {{0, 1}, {0, 1}}, PlotRangeClipping -> True, Frame -> True]]

                SeedRandom[4];
                graphics =
                Apply[
                Show,
                Partition[Transpose[{Table[circles[8], 9], Table[lines[], 9]}], 3],
                {2}];


                Make the headers:



                {colHeaders, rowHeaders} = Partition[Table[Style[Row[{"Label", i}], "TBI"], {i, 6}], 3];


                Make the grid with TableForm:



                TableForm[graphics, TableHeadings -> {rowHeaders, colHeaders}]


                grid






                share|improve this answer











                $endgroup$


















                  5












                  $begingroup$

                  If you are willing to forego GraphicsGrid and give up some control over the placement of the decorations, it can be as simple as this:



                  Make a 3 x 3 array of graphics (this is adopted from a previous answer}



                  circles[n_] :=
                  Module[{r, cntr},
                  r := RandomReal[.25];
                  cntr := RandomReal[1, {2}];
                  Graphics[Table[{EdgeForm[Black], Hue[RandomReal[]], Disk[cntr, r]}, n],
                  PlotRange -> {{0, 1}, {0, 1}}, PlotRangeClipping -> True, Frame -> True]

                  lines[] :=
                  Module[{lf, rt},
                  lf := With[{x = RandomReal[.48]}, {Red, Line[{{x, 0}, {x, 1}}]}];
                  rt := With[{x = RandomReal[{.52, 1}]}, {Blue, Line[{{x, 0}, {x, 1}}]}];
                  Graphics[{lf, rt},
                  PlotRange -> {{0, 1}, {0, 1}}, PlotRangeClipping -> True, Frame -> True]]

                  SeedRandom[4];
                  graphics =
                  Apply[
                  Show,
                  Partition[Transpose[{Table[circles[8], 9], Table[lines[], 9]}], 3],
                  {2}];


                  Make the headers:



                  {colHeaders, rowHeaders} = Partition[Table[Style[Row[{"Label", i}], "TBI"], {i, 6}], 3];


                  Make the grid with TableForm:



                  TableForm[graphics, TableHeadings -> {rowHeaders, colHeaders}]


                  grid






                  share|improve this answer











                  $endgroup$
















                    5












                    5








                    5





                    $begingroup$

                    If you are willing to forego GraphicsGrid and give up some control over the placement of the decorations, it can be as simple as this:



                    Make a 3 x 3 array of graphics (this is adopted from a previous answer}



                    circles[n_] :=
                    Module[{r, cntr},
                    r := RandomReal[.25];
                    cntr := RandomReal[1, {2}];
                    Graphics[Table[{EdgeForm[Black], Hue[RandomReal[]], Disk[cntr, r]}, n],
                    PlotRange -> {{0, 1}, {0, 1}}, PlotRangeClipping -> True, Frame -> True]

                    lines[] :=
                    Module[{lf, rt},
                    lf := With[{x = RandomReal[.48]}, {Red, Line[{{x, 0}, {x, 1}}]}];
                    rt := With[{x = RandomReal[{.52, 1}]}, {Blue, Line[{{x, 0}, {x, 1}}]}];
                    Graphics[{lf, rt},
                    PlotRange -> {{0, 1}, {0, 1}}, PlotRangeClipping -> True, Frame -> True]]

                    SeedRandom[4];
                    graphics =
                    Apply[
                    Show,
                    Partition[Transpose[{Table[circles[8], 9], Table[lines[], 9]}], 3],
                    {2}];


                    Make the headers:



                    {colHeaders, rowHeaders} = Partition[Table[Style[Row[{"Label", i}], "TBI"], {i, 6}], 3];


                    Make the grid with TableForm:



                    TableForm[graphics, TableHeadings -> {rowHeaders, colHeaders}]


                    grid






                    share|improve this answer











                    $endgroup$



                    If you are willing to forego GraphicsGrid and give up some control over the placement of the decorations, it can be as simple as this:



                    Make a 3 x 3 array of graphics (this is adopted from a previous answer}



                    circles[n_] :=
                    Module[{r, cntr},
                    r := RandomReal[.25];
                    cntr := RandomReal[1, {2}];
                    Graphics[Table[{EdgeForm[Black], Hue[RandomReal[]], Disk[cntr, r]}, n],
                    PlotRange -> {{0, 1}, {0, 1}}, PlotRangeClipping -> True, Frame -> True]

                    lines[] :=
                    Module[{lf, rt},
                    lf := With[{x = RandomReal[.48]}, {Red, Line[{{x, 0}, {x, 1}}]}];
                    rt := With[{x = RandomReal[{.52, 1}]}, {Blue, Line[{{x, 0}, {x, 1}}]}];
                    Graphics[{lf, rt},
                    PlotRange -> {{0, 1}, {0, 1}}, PlotRangeClipping -> True, Frame -> True]]

                    SeedRandom[4];
                    graphics =
                    Apply[
                    Show,
                    Partition[Transpose[{Table[circles[8], 9], Table[lines[], 9]}], 3],
                    {2}];


                    Make the headers:



                    {colHeaders, rowHeaders} = Partition[Table[Style[Row[{"Label", i}], "TBI"], {i, 6}], 3];


                    Make the grid with TableForm:



                    TableForm[graphics, TableHeadings -> {rowHeaders, colHeaders}]


                    grid







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited 2 days ago

























                    answered 2 days ago









                    m_goldbergm_goldberg

                    87.8k872198




                    87.8k872198























                        5












                        $begingroup$

                        Here is an option:



                        plots = Table[Table[Plot[Sin[i x + j], {x, 1, 10}], {i, 3}], {j, 3}];
                        xlabels = {"", "Label 1", "Label 2", "Label 3"};
                        ylabels = {"Label 4", "Label 5", "Label 6"};
                        GraphicsGrid[Join[{xlabels}, Transpose[Join[{ylabels}, Transpose[plots]]]]]


                        enter image description here



                        Updated with a slightly prettier option:



                        xlabels = Text[Style[#, Large]] & /@ {"", "Label 1", "Label 2", "Label 3"};
                        ylabels = Text[Style[#, Large]] & /@ {"Label 4", "Label 5", "Label 6"};
                        Grid[Join[{xlabels}, Transpose[Join[{ylabels}, Transpose[plots]]]], Spacings -> {2, 1}]


                        enter image description here






                        share|improve this answer











                        $endgroup$


















                          5












                          $begingroup$

                          Here is an option:



                          plots = Table[Table[Plot[Sin[i x + j], {x, 1, 10}], {i, 3}], {j, 3}];
                          xlabels = {"", "Label 1", "Label 2", "Label 3"};
                          ylabels = {"Label 4", "Label 5", "Label 6"};
                          GraphicsGrid[Join[{xlabels}, Transpose[Join[{ylabels}, Transpose[plots]]]]]


                          enter image description here



                          Updated with a slightly prettier option:



                          xlabels = Text[Style[#, Large]] & /@ {"", "Label 1", "Label 2", "Label 3"};
                          ylabels = Text[Style[#, Large]] & /@ {"Label 4", "Label 5", "Label 6"};
                          Grid[Join[{xlabels}, Transpose[Join[{ylabels}, Transpose[plots]]]], Spacings -> {2, 1}]


                          enter image description here






                          share|improve this answer











                          $endgroup$
















                            5












                            5








                            5





                            $begingroup$

                            Here is an option:



                            plots = Table[Table[Plot[Sin[i x + j], {x, 1, 10}], {i, 3}], {j, 3}];
                            xlabels = {"", "Label 1", "Label 2", "Label 3"};
                            ylabels = {"Label 4", "Label 5", "Label 6"};
                            GraphicsGrid[Join[{xlabels}, Transpose[Join[{ylabels}, Transpose[plots]]]]]


                            enter image description here



                            Updated with a slightly prettier option:



                            xlabels = Text[Style[#, Large]] & /@ {"", "Label 1", "Label 2", "Label 3"};
                            ylabels = Text[Style[#, Large]] & /@ {"Label 4", "Label 5", "Label 6"};
                            Grid[Join[{xlabels}, Transpose[Join[{ylabels}, Transpose[plots]]]], Spacings -> {2, 1}]


                            enter image description here






                            share|improve this answer











                            $endgroup$



                            Here is an option:



                            plots = Table[Table[Plot[Sin[i x + j], {x, 1, 10}], {i, 3}], {j, 3}];
                            xlabels = {"", "Label 1", "Label 2", "Label 3"};
                            ylabels = {"Label 4", "Label 5", "Label 6"};
                            GraphicsGrid[Join[{xlabels}, Transpose[Join[{ylabels}, Transpose[plots]]]]]


                            enter image description here



                            Updated with a slightly prettier option:



                            xlabels = Text[Style[#, Large]] & /@ {"", "Label 1", "Label 2", "Label 3"};
                            ylabels = Text[Style[#, Large]] & /@ {"Label 4", "Label 5", "Label 6"};
                            Grid[Join[{xlabels}, Transpose[Join[{ylabels}, Transpose[plots]]]], Spacings -> {2, 1}]


                            enter image description here







                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited 2 days ago

























                            answered 2 days ago









                            MelaGoMelaGo

                            5264




                            5264























                                3












                                $begingroup$

                                You could construct Graphics for the row and column headings. Something like this. Would have to adjust the vertical / horizontal placement of the label text.



                                plotGrid = Table[Plot[Sin[x], {x, 0, 2 Pi}], 2, 2];

                                plotRowHeader =
                                Table[Graphics[Style[Text["Label " <> ToString[i]], 12]], {i, 2}];

                                plotColumnHeader =
                                Table[Graphics[Style[Text["Label " <> ToString[i]], 12]], {i, 3,
                                4}] // Prepend[Graphics[Style[Text["X"], 12]]];

                                graphicsGrid =
                                plotGrid // Prepend[plotRowHeader] // Transpose //
                                Prepend[plotColumnHeader];

                                GraphicsGrid[graphicsGrid]


                                enter image description here






                                share|improve this answer









                                $endgroup$


















                                  3












                                  $begingroup$

                                  You could construct Graphics for the row and column headings. Something like this. Would have to adjust the vertical / horizontal placement of the label text.



                                  plotGrid = Table[Plot[Sin[x], {x, 0, 2 Pi}], 2, 2];

                                  plotRowHeader =
                                  Table[Graphics[Style[Text["Label " <> ToString[i]], 12]], {i, 2}];

                                  plotColumnHeader =
                                  Table[Graphics[Style[Text["Label " <> ToString[i]], 12]], {i, 3,
                                  4}] // Prepend[Graphics[Style[Text["X"], 12]]];

                                  graphicsGrid =
                                  plotGrid // Prepend[plotRowHeader] // Transpose //
                                  Prepend[plotColumnHeader];

                                  GraphicsGrid[graphicsGrid]


                                  enter image description here






                                  share|improve this answer









                                  $endgroup$
















                                    3












                                    3








                                    3





                                    $begingroup$

                                    You could construct Graphics for the row and column headings. Something like this. Would have to adjust the vertical / horizontal placement of the label text.



                                    plotGrid = Table[Plot[Sin[x], {x, 0, 2 Pi}], 2, 2];

                                    plotRowHeader =
                                    Table[Graphics[Style[Text["Label " <> ToString[i]], 12]], {i, 2}];

                                    plotColumnHeader =
                                    Table[Graphics[Style[Text["Label " <> ToString[i]], 12]], {i, 3,
                                    4}] // Prepend[Graphics[Style[Text["X"], 12]]];

                                    graphicsGrid =
                                    plotGrid // Prepend[plotRowHeader] // Transpose //
                                    Prepend[plotColumnHeader];

                                    GraphicsGrid[graphicsGrid]


                                    enter image description here






                                    share|improve this answer









                                    $endgroup$



                                    You could construct Graphics for the row and column headings. Something like this. Would have to adjust the vertical / horizontal placement of the label text.



                                    plotGrid = Table[Plot[Sin[x], {x, 0, 2 Pi}], 2, 2];

                                    plotRowHeader =
                                    Table[Graphics[Style[Text["Label " <> ToString[i]], 12]], {i, 2}];

                                    plotColumnHeader =
                                    Table[Graphics[Style[Text["Label " <> ToString[i]], 12]], {i, 3,
                                    4}] // Prepend[Graphics[Style[Text["X"], 12]]];

                                    graphicsGrid =
                                    plotGrid // Prepend[plotRowHeader] // Transpose //
                                    Prepend[plotColumnHeader];

                                    GraphicsGrid[graphicsGrid]


                                    enter image description here







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered 2 days ago









                                    Rohit NamjoshiRohit Namjoshi

                                    1,5061213




                                    1,5061213






























                                        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%2f193846%2fgraphicsgrid-with-a-label-for-each-column-and-row%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

                                        is 'sed' thread safeWhat should someone know about using Python scripts in the shell?Nexenta bash script uses...

                                        How do i solve the “ No module named 'mlxtend' ” issue on Jupyter?

                                        Pilgersdorf Inhaltsverzeichnis Geografie | Geschichte | Bevölkerungsentwicklung | Politik | Kultur...