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 ...
20
votes
Accepted
Column makes fonts smaller
There is an option for Column or Grid to avoid this: AllowScriptLevelChange
...
17
votes
Accepted
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 ...

Kuba♦
- 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:
...
15
votes
14
votes
Accepted
How to merge two lists with different dimensions
You can use Transpose + PadRight:
Transpose @ PadRight[{a,b}, Automatic, Null]
{{a1, b1}...
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 ...
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' ...
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:
...
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 ...
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 ...
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 ...
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
...
11
votes
Inconsistent image sizing with Grid and Row?
My standard(1) work-around for this problem is to add Pane:
...
11
votes
11
votes
Grid cuts my images
With Frame -> All, the automatic Spacings are weird. The automatic BaselinePosition is ...
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
...
11
votes
Column makes fonts smaller
Another approach is to set AllowScriptLevelChange -> False via GridBoxOptions:
...
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:
...
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 ...
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 ...
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 ...
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]
...
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 ...
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
?
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 (...
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 ...
9
votes
Accepted
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. ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
grid-layouts × 355plotting × 57
graphics × 56
output-formatting × 54
alignment × 31
table × 26
export × 21
formatting × 21
list-manipulation × 17
bugs × 16
style × 14
front-end × 13
gui-construction × 12
labeling × 11
manipulate × 9
dynamic × 9
pdf-format × 9
image × 8
display × 8
size × 8
column × 8
legending × 7
options × 7
spacing × 7
functions × 5