21 votes
Accepted

How to write a drag-n-drop reorderable gui?

Here is a very crude first implementation (code at the bottom): (note that the updated version is called as `dragDropList[Dynamic@l) Some notes: The black box serves both as insertion marker and as ...
user avatar
  • 23.9k
20 votes
Accepted

Column makes fonts smaller

There is an option for Column or Grid to avoid this: AllowScriptLevelChange ...
user avatar
  • 1,241
17 votes
Accepted

How to make a Slash header in Grid?

You might want to try something like this: ...
user avatar
  • 1,130
17 votes

How to write a drag-n-drop reorderable gui?

I once approached this. I never finished it so let me know if you face any issues: ResourceFunction["GitHubInstall"]["kubapod", "mgui"] << MGUI` And here ...
user avatar
  • 133k
16 votes
Accepted

How to create dataset with ordered and hierarchically-grouped rows?

Update - Version 11 In version 11, The Dataset visualizer handles triply-nested associations quite nicely: ...
user avatar
  • 67k
15 votes

How to create a multi-graphics plot (i.e. the decomposition of phase plane portrait) with well-organized structure?

...
user avatar
  • 55.1k
14 votes
Accepted

How to merge two lists with different dimensions

You can use Transpose + PadRight: Transpose @ PadRight[{a,b}, Automatic, Null] {{a1, b1}...
user avatar
  • 124k
14 votes
Accepted

When is a symbol a Symbol? Is there an easy Mathematica way to test if an object is a symbol sort of like a SymbolQ?

I'd probably use x_Symbol in a function argument to control evaluation. Otherwise, one might do the following (thanks to @Leonid for pointing out an oversight). If ...
user avatar
  • 217k
13 votes

The mysterious gap inside Grid

I can reproduce the problem described by OP in Mathematica 9.0.1 on Windows 8.1. By using FrontEnd`UndocumentedBoxInformationPacket to check the displayed Boxes' ...
user avatar
  • 26k
13 votes
Accepted

How to add lines in TableForm

Using Graphics: As suggested by Mr.Wizard in comments Graphics, inconvenient as it is, is way to get the desired output: ...
user avatar
  • 350k
12 votes

TableSpacing oddity

I see the same with versions 8.0.4, 10.4.1 and 11.1.0 on Windows 7 x64. Only with version 5.2 the outputs are formatted identically. Let us look at the underlying box expression printed in the ...
user avatar
12 votes
Accepted

Exporting an image so that the PlotRange has a fixed size in the output

I don't know if the following addresses all of your issues, but there are 2 things I would try: ImageSize -> Automatic -> size This option sets the plot ...
user avatar
  • 124k
12 votes

Display hexagon grid to visualize Langton's ant

Oh, what a fun topic to play with. Thank you for showing it to me. If you are interested, here is a simple implementation of the colored Langton Ant that does not generate a grid in the beginning but ...
user avatar
11 votes

What is the most elegant way to display multiple graphs with a common title?

Few additional methods: p1 = Plot[Sin[x], {x, 0, 2 Pi}, ImageSize -> 200]; p2 = Plot[Cos[x], {x, 0, 2 Pi}, ImageSize -> 200]; Labeled ...
user avatar
  • 350k
11 votes

Inconsistent image sizing with Grid and Row?

My standard(1) work-around for this problem is to add Pane: ...
user avatar
  • 264k
11 votes

How to make a Slash header in Grid?

There's Backslash: ...
user avatar
  • 217k
11 votes

Grid cuts my images

With Frame -> All, the automatic Spacings are weird. The automatic BaselinePosition is ...
user avatar
  • 19.4k
11 votes
Accepted

How to create a multi-graphics plot (i.e. the decomposition of phase plane portrait) with well-organized structure?

Using same PlotRange would be a good start. For example ...
user avatar
  • 15.5k
11 votes

Column makes fonts smaller

Another approach is to set AllowScriptLevelChange -> False via GridBoxOptions: ...
user avatar
11 votes

Display hexagon grid to visualize Langton's ant

Here's a quick way to create a hex grid by exploiting ResourceFunction["HextileBins"] so you don't need to think too hard about placement: ...
user avatar
  • 20.4k
11 votes
Accepted

An odd Grid style

ItemSize >> Properties and Relations: "Controls and graphics will by default expand to fit the available area." So we can use a graphics object as ...
user avatar
  • 350k
11 votes
Accepted

How can I add a vertical spacing in a `CheckboxBar`?

You can wrap CheckboxBar with Style using the option DefaultOptions to modify the ...
user avatar
  • 350k
10 votes

How can I create an advanced grid interface?

Please note: these functions have been updated with some more functionality, here: See my answer here Very old thread but, since the question is formulated in a general way, I thought it could be ...
user avatar
  • 450
10 votes
Accepted

Spanning/centering elements with Grid/GraphicsGrid when there's a non-equal number of elem. in rows

Maybe Column[Row[#, Spacer[5]] & /@ {{a, b, c}, {d, e}}, Alignment -> Center] ...
user avatar
  • 350k
10 votes
Accepted

Grid Centring around Divider

Update 2: A function that takes a list of cell indices and a Grid object to interactively adjust the alignments and paste the input form of the selected ...
user avatar
  • 350k
10 votes

When is a symbol a Symbol? Is there an easy Mathematica way to test if an object is a symbol sort of like a SymbolQ?

How about: SymbolQ[_Symbol] = True SymbolQ[_] = False ?
user avatar
  • 13.5k
10 votes
Accepted

What is "size"?

There is no universal unit in Mathematica. You will need to check the documentation for each size setting. Commonly used units include: "Points" usually correspond to pixels on the screen (...
user avatar
  • 225k
10 votes
Accepted

How to properly use FrameLabel with the new PlotLayout feature?

You can use yet-to-be-documented options "ColumnLabels" and "RowLabels" as ...
user avatar
  • 350k
9 votes
Accepted

How to count the integer grid numbers defined by inequalities?

You can do : ...
user avatar
9 votes
Accepted

How to set the width of grid elements in pixels?

Well, it was very easy. I found it by myself, and also @Kuba posted it as a comment (I think it has been deleted, though). I can get what I want by using Scaled. ...
user avatar
  • 1,069

Only top scored, non community-wiki answers of a minimum length are eligible