Drawing line in notebook with Mathematica commandOpening a notebook from command line in an existing front end instanceHow to run all command with same name into a notebookNotebookEvaluate with InsertResults -> True from the command lineRunning Mathematica Notebook files in command modeDo-Command around entire Notebook (by iterating it from another notebook?)Hide all code cells in notebook with Style: InputSharing kernel between interactive command line and notebook?Robust line numbers in Mathematica notebookExport in slave notebook

Is it right to extend flaps only in the white arc?

How do I deal with too many NPCs in my campaign?

Co-Supervisor comes to office to help her students which distracts me

How can this Stack Exchange site have an animated favicon?

When is it acceptable to write a bad letter of recommendation?

Functional analysis of the Pink Panther

How to deal with my team leader who keeps calling me about project updates even though I am on leave for personal reasons?

What is the meaning of "heutig" in this sentence?

Cut a cake into 3 equal portions with only a knife

What benefits does the Power Word Kill spell have?

Is it possible to encode a message in such a way that can only be read by someone or something capable of seeing into the very near future?

How can I repair this gas leak on my new range? Teflon tape isn't working

What is the size of a set of sets of the empty set , , ?

Hiking with a mule or two?

Why are there two fundamental laws of logic?

A high quality contribution but an annoying error is present in my published article

1, 2, 4, 8, 16, ... 33?

Would there theoretically be an accompanying effect to something moving beyond the speed of light?

What exactly did this mechanic sabotage on the American Airlines 737, and how dangerous was it?

Should the average user with no special access rights be worried about SMS-based 2FA being theoretically interceptable?

Why weren't the Death Star plans transmitted electronically?

Is this Portent-like spell balanced?

Which place in our solar system is the most fit for terraforming?

Does Sitecore have support for Sitecore products in containers?



Drawing line in notebook with Mathematica command


Opening a notebook from command line in an existing front end instanceHow to run all command with same name into a notebookNotebookEvaluate with InsertResults -> True from the command lineRunning Mathematica Notebook files in command modeDo-Command around entire Notebook (by iterating it from another notebook?)Hide all code cells in notebook with Style: InputSharing kernel between interactive command line and notebook?Robust line numbers in Mathematica notebookExport in slave notebook






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2












$begingroup$


I have a for loop that makes plots iteratively, in between the plots, I would like to draw a line in the notebook. Is there a command that is the equivalent of doing this:



https://reference.wolfram.com/language/workflow/InsertAHorizontalLineInANotebook.html










share|improve this question











$endgroup$













  • $begingroup$
    Any other method to divide my notebook up would be appreciated as well
    $endgroup$
    – Jin
    9 hours ago










  • $begingroup$
    Why not use GraphicsColumn and Table instead of For (and Print, I guess?)?
    $endgroup$
    – xzczd
    9 hours ago

















2












$begingroup$


I have a for loop that makes plots iteratively, in between the plots, I would like to draw a line in the notebook. Is there a command that is the equivalent of doing this:



https://reference.wolfram.com/language/workflow/InsertAHorizontalLineInANotebook.html










share|improve this question











$endgroup$













  • $begingroup$
    Any other method to divide my notebook up would be appreciated as well
    $endgroup$
    – Jin
    9 hours ago










  • $begingroup$
    Why not use GraphicsColumn and Table instead of For (and Print, I guess?)?
    $endgroup$
    – xzczd
    9 hours ago













2












2








2





$begingroup$


I have a for loop that makes plots iteratively, in between the plots, I would like to draw a line in the notebook. Is there a command that is the equivalent of doing this:



https://reference.wolfram.com/language/workflow/InsertAHorizontalLineInANotebook.html










share|improve this question











$endgroup$




I have a for loop that makes plots iteratively, in between the plots, I would like to draw a line in the notebook. Is there a command that is the equivalent of doing this:



https://reference.wolfram.com/language/workflow/InsertAHorizontalLineInANotebook.html







front-end notebooks






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 9 hours ago









xzczd

29.5k6 gold badges83 silver badges273 bronze badges




29.5k6 gold badges83 silver badges273 bronze badges










asked 9 hours ago









JinJin

896 bronze badges




896 bronze badges














  • $begingroup$
    Any other method to divide my notebook up would be appreciated as well
    $endgroup$
    – Jin
    9 hours ago










  • $begingroup$
    Why not use GraphicsColumn and Table instead of For (and Print, I guess?)?
    $endgroup$
    – xzczd
    9 hours ago
















  • $begingroup$
    Any other method to divide my notebook up would be appreciated as well
    $endgroup$
    – Jin
    9 hours ago










  • $begingroup$
    Why not use GraphicsColumn and Table instead of For (and Print, I guess?)?
    $endgroup$
    – xzczd
    9 hours ago















$begingroup$
Any other method to divide my notebook up would be appreciated as well
$endgroup$
– Jin
9 hours ago




$begingroup$
Any other method to divide my notebook up would be appreciated as well
$endgroup$
– Jin
9 hours ago












$begingroup$
Why not use GraphicsColumn and Table instead of For (and Print, I guess?)?
$endgroup$
– xzczd
9 hours ago




$begingroup$
Why not use GraphicsColumn and Table instead of For (and Print, I guess?)?
$endgroup$
– xzczd
9 hours ago










2 Answers
2






active

oldest

votes


















3














$begingroup$

There's many ways to achieve something like this, but a start for programmatically creating a line to go across your notebook would be something like this:



CellPrint[
Cell["", "Text", Editable -> False, Selectable -> False,
CellFrame -> 0, 0, 0, 0.5, ShowCellBracket -> False,
CellMargins -> 0, 0, 1, 1,
CellElementSpacings -> "CellMinHeight" -> 1,
CellFrameMargins -> 0, CellFrameColor -> RGBColor[0, 0, 1],
CellSize -> Inherited, 3]]


enter image description here



Of course the options can be edited, if you want it thicker, a different color, etc...



Hope this helps!






share|improve this answer











$endgroup$






















    4














    $begingroup$

    An alternative approach is to print the cells with graphics contents with a line at the bottom:



    ClearAll[thickLineBelow]
    thickLineBelow = CellPrint[ExpressionCell[#, "Output", CellFrame -> 0, 0, 3, 0,
    CellFrameColor -> RGBColor[0, 0, 1]]] &;


    You can wrap each graphics object you produce in the loop with thickLineBelow:



    thickLineBelow /@ Plot[Sin[x], x, 0, 2 Pi, AspectRatio -> 1/4], 
    Row[Framed /@ Graphics[Red, Disk[], ImageSize -> 100],
    Plot[x Sin[x], x, 0, 5 Pi, ImageSize -> 200], Spacer[10]],
    MatrixPlot[RandomReal[1, 5, 30], ImageSize -> 300];


    enter image description here






    share|improve this answer









    $endgroup$

















      Your Answer








      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/4.0/"u003ecc by-sa 4.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%2f206550%2fdrawing-line-in-notebook-with-mathematica-command%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      3














      $begingroup$

      There's many ways to achieve something like this, but a start for programmatically creating a line to go across your notebook would be something like this:



      CellPrint[
      Cell["", "Text", Editable -> False, Selectable -> False,
      CellFrame -> 0, 0, 0, 0.5, ShowCellBracket -> False,
      CellMargins -> 0, 0, 1, 1,
      CellElementSpacings -> "CellMinHeight" -> 1,
      CellFrameMargins -> 0, CellFrameColor -> RGBColor[0, 0, 1],
      CellSize -> Inherited, 3]]


      enter image description here



      Of course the options can be edited, if you want it thicker, a different color, etc...



      Hope this helps!






      share|improve this answer











      $endgroup$



















        3














        $begingroup$

        There's many ways to achieve something like this, but a start for programmatically creating a line to go across your notebook would be something like this:



        CellPrint[
        Cell["", "Text", Editable -> False, Selectable -> False,
        CellFrame -> 0, 0, 0, 0.5, ShowCellBracket -> False,
        CellMargins -> 0, 0, 1, 1,
        CellElementSpacings -> "CellMinHeight" -> 1,
        CellFrameMargins -> 0, CellFrameColor -> RGBColor[0, 0, 1],
        CellSize -> Inherited, 3]]


        enter image description here



        Of course the options can be edited, if you want it thicker, a different color, etc...



        Hope this helps!






        share|improve this answer











        $endgroup$

















          3














          3










          3







          $begingroup$

          There's many ways to achieve something like this, but a start for programmatically creating a line to go across your notebook would be something like this:



          CellPrint[
          Cell["", "Text", Editable -> False, Selectable -> False,
          CellFrame -> 0, 0, 0, 0.5, ShowCellBracket -> False,
          CellMargins -> 0, 0, 1, 1,
          CellElementSpacings -> "CellMinHeight" -> 1,
          CellFrameMargins -> 0, CellFrameColor -> RGBColor[0, 0, 1],
          CellSize -> Inherited, 3]]


          enter image description here



          Of course the options can be edited, if you want it thicker, a different color, etc...



          Hope this helps!






          share|improve this answer











          $endgroup$



          There's many ways to achieve something like this, but a start for programmatically creating a line to go across your notebook would be something like this:



          CellPrint[
          Cell["", "Text", Editable -> False, Selectable -> False,
          CellFrame -> 0, 0, 0, 0.5, ShowCellBracket -> False,
          CellMargins -> 0, 0, 1, 1,
          CellElementSpacings -> "CellMinHeight" -> 1,
          CellFrameMargins -> 0, CellFrameColor -> RGBColor[0, 0, 1],
          CellSize -> Inherited, 3]]


          enter image description here



          Of course the options can be edited, if you want it thicker, a different color, etc...



          Hope this helps!







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 9 hours ago

























          answered 9 hours ago









          user6014user6014

          3,63414 silver badges25 bronze badges




          3,63414 silver badges25 bronze badges


























              4














              $begingroup$

              An alternative approach is to print the cells with graphics contents with a line at the bottom:



              ClearAll[thickLineBelow]
              thickLineBelow = CellPrint[ExpressionCell[#, "Output", CellFrame -> 0, 0, 3, 0,
              CellFrameColor -> RGBColor[0, 0, 1]]] &;


              You can wrap each graphics object you produce in the loop with thickLineBelow:



              thickLineBelow /@ Plot[Sin[x], x, 0, 2 Pi, AspectRatio -> 1/4], 
              Row[Framed /@ Graphics[Red, Disk[], ImageSize -> 100],
              Plot[x Sin[x], x, 0, 5 Pi, ImageSize -> 200], Spacer[10]],
              MatrixPlot[RandomReal[1, 5, 30], ImageSize -> 300];


              enter image description here






              share|improve this answer









              $endgroup$



















                4














                $begingroup$

                An alternative approach is to print the cells with graphics contents with a line at the bottom:



                ClearAll[thickLineBelow]
                thickLineBelow = CellPrint[ExpressionCell[#, "Output", CellFrame -> 0, 0, 3, 0,
                CellFrameColor -> RGBColor[0, 0, 1]]] &;


                You can wrap each graphics object you produce in the loop with thickLineBelow:



                thickLineBelow /@ Plot[Sin[x], x, 0, 2 Pi, AspectRatio -> 1/4], 
                Row[Framed /@ Graphics[Red, Disk[], ImageSize -> 100],
                Plot[x Sin[x], x, 0, 5 Pi, ImageSize -> 200], Spacer[10]],
                MatrixPlot[RandomReal[1, 5, 30], ImageSize -> 300];


                enter image description here






                share|improve this answer









                $endgroup$

















                  4














                  4










                  4







                  $begingroup$

                  An alternative approach is to print the cells with graphics contents with a line at the bottom:



                  ClearAll[thickLineBelow]
                  thickLineBelow = CellPrint[ExpressionCell[#, "Output", CellFrame -> 0, 0, 3, 0,
                  CellFrameColor -> RGBColor[0, 0, 1]]] &;


                  You can wrap each graphics object you produce in the loop with thickLineBelow:



                  thickLineBelow /@ Plot[Sin[x], x, 0, 2 Pi, AspectRatio -> 1/4], 
                  Row[Framed /@ Graphics[Red, Disk[], ImageSize -> 100],
                  Plot[x Sin[x], x, 0, 5 Pi, ImageSize -> 200], Spacer[10]],
                  MatrixPlot[RandomReal[1, 5, 30], ImageSize -> 300];


                  enter image description here






                  share|improve this answer









                  $endgroup$



                  An alternative approach is to print the cells with graphics contents with a line at the bottom:



                  ClearAll[thickLineBelow]
                  thickLineBelow = CellPrint[ExpressionCell[#, "Output", CellFrame -> 0, 0, 3, 0,
                  CellFrameColor -> RGBColor[0, 0, 1]]] &;


                  You can wrap each graphics object you produce in the loop with thickLineBelow:



                  thickLineBelow /@ Plot[Sin[x], x, 0, 2 Pi, AspectRatio -> 1/4], 
                  Row[Framed /@ Graphics[Red, Disk[], ImageSize -> 100],
                  Plot[x Sin[x], x, 0, 5 Pi, ImageSize -> 200], Spacer[10]],
                  MatrixPlot[RandomReal[1, 5, 30], ImageSize -> 300];


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 7 hours ago









                  kglrkglr

                  218k10 gold badges248 silver badges499 bronze badges




                  218k10 gold badges248 silver badges499 bronze badges































                      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%2f206550%2fdrawing-line-in-notebook-with-mathematica-command%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

                      Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

                      Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

                      François Viète Contents Biography Work and thought Bibliography See also Notes Further reading External links Navigation menup. 21Google Bookspp. 75–77Google BooksDe thou (from University of Saint Andrews)ArchivedGoogle BooksGoogle BooksGoogle BooksGoogle booksGoogle Bookscc-parthenay.frL'histoire universelle (fr)Universal History (en)ArchivedAdsabs.harvard.eduPagesperso-orange.frArchive.orgChikara Sasaki. Descartes' mathematical thought p.259Google BooksGoogle BooksGoogle Bookspp. 152 and onwardGoogle BooksGoogle BooksScribd.comGoogle Books1257-7979Google BooksGoogle BooksGoogle BooksGoogle BooksGoogle BooksGoogle BooksGallica.bnf.frGoogle BooksGoogle Books"François Viète"Francois Viète: Father of Modern Algebraic NotationThe Lawyer and the GamblerAbout TarporleySite de Jean-Paul GuichardL'algèbre nouvelle"About the Harmonicon"cb120511976(data)1188044800000 0001 0913 5903n82164680ola2013766880073431702w6vt1sb70287374827140948071409480