Questions tagged [grid-layouts]
Questions about producing vertically and horizontally aligned output.
354
questions
4
votes
2
answers
91
views
3
votes
0
answers
48
views
Mathematica failing to export consistent layout
Mathematica is a great tool but when it comes to layout generation is quite poorly intuitive: I would love that exporting to images and SVGs could be more friendly and compliant with graphic design ...
1
vote
2
answers
94
views
Display Binary Tree as Centred Array
I would like to display a binary tree using something analogous to TableForm. For example, a small such tree is given by this array (which except for the root still ...
3
votes
2
answers
174
views
Is there a function similar to Print which really respects tabs and newlines?
I am looking for something which acts like Print, preferably with the same syntax, which lets me arrange things in columns of proper width (i.e. if an item in a ...
2
votes
2
answers
36
views
Custom spacing for each cell in Grid
How to control the spacing of each cell in a grid?
In the example below, Title and Subtitle rows waste too much space above and below.
Also the rectangle in cell {4,1} is rather small, how to change ...
3
votes
1
answer
55
views
How to make plots on a Grid the same size?
I have the following Grid:
...
9
votes
3
answers
238
views
How can I add a vertical spacing in a `CheckboxBar`?
I have an example here from the solution of @krasten 7. In this I would like some vertical spacing between the checkboxes. Any ideas?
...
5
votes
0
answers
61
views
Bug? GraphicsGrid with Item Elements
Is there a bug in the GraphicsGrid routines such that it no longer handles Item elements? There are a couple examples in the GraphicsGrid documentation (under the FrameStyles section) that give ...
5
votes
1
answer
84
views
Plot3D: Inconsistent distance to PlotLabel when using Grid/Row
While trying to arrange a grid of 3d-plots using Plot3D and GraphicsGrid (or simply Grid) I ...
1
vote
1
answer
41
views
Buttons too small for content
When I try to display buttons with long content in a multicolumn the text sometimes gets cut off. Like this:
...
8
votes
2
answers
187
views
How to properly use FrameLabel with the new PlotLayout feature?
Behold! MMA 13 brought us closer to getting publication-ready plots. I wonder if we can solve this one once and for all with a nifty & modern wolfram syntax.
I'd like to have 4 plots with each y-...
1
vote
1
answer
80
views
Working around Error: Interpolation on unstructured grids using Sort for 4D data
I'm having trouble with interpolation and I think it may be due to how my data set is sorted.
I'm getting the error "Interpolation::udeg: Interpolation on unstructured grids is currently only ...
3
votes
0
answers
93
views
Creating a style that center aligns columns but tweeks terms that are negative
I have created the following style in a private stylesheet that applies to gridbox structures for matrices. So far I have
...
1
vote
2
answers
123
views
Drawing Axes on top of a Grid of plots
I have a grid of density plots, for example like this toy example
...
5
votes
3
answers
274
views
Make the elements in the grid appear one by one
I need to make an animation like this, start with a table at first, then each element filled from left to right, top to bottom, instead of dynamically generating grid, the current code can only ...
-1
votes
1
answer
91
views
how to plot multiple plots sharing a common X-axis and Y-axis
With the following Code, I generate various ListLinePlots but I like to create the example ...
2
votes
2
answers
115
views
How to split many controls in Manipulate into multiple columns (saw some potential bugs)
I need to use Manipulate[] with many controls, because I have around 40 parameters which I want to be able to alter. Since the number is too large, I want to split these controls into multiple columns,...
0
votes
1
answer
84
views
Putting data from several trials into a table [closed]
I need this data to go into a table nearly exactly in this format, but i need the left most column to say trial 1, trial 2, trial 3, trial 4, then the data to go horizontally across for each trial ...
2
votes
2
answers
110
views
Top-align row of Grid and Plot
How can the top of the Column on the right (built from a Grid) to be aligned with the top of the ...
3
votes
2
answers
175
views
Align 1st row of Grid different from the other rows
The grid formed below aligns its columns as I want on the decimal point:
...
4
votes
3
answers
229
views
Showing data in a grid
I tried this code for one variable and it works fine.
...
2
votes
1
answer
140
views
Export Grid object to pdf without border?
When I try to export a Grid object with a White background, I get a gray border around 3 of the 4 sides in the resulting pdf:
...
3
votes
1
answer
122
views
Asymmetric Grids
Consider the following Grid
...
3
votes
2
answers
130
views
Centering a weirdly shaped grid
Consider the following grid
...
5
votes
1
answer
488
views
What is "size"?
When talking about concepts like ItemSize, ImageSize, FontSize, row/column height within a ...
1
vote
0
answers
41
views
Grid's automatic resizing
Imagine I have a dynamic opener that changes the number of rows. For example,
...
9
votes
2
answers
543
views
An odd Grid style
Consider the following grid
n = 10;
Grid[{{"Matrix", SpanFromLeft},
RandomInteger[n, n], RandomInteger[n, n]},
Frame -> All, Alignment -> Center]
...
0
votes
1
answer
52
views
How to make first component of eigenvectors on grid real and normalize using Map and Normalize? [closed]
I am trying to use the following approach: How get eigenvectors without phase jump?
to apply the same conditions to an array of complex-valued Mathematica eigenvectors.
The matrix solved for is a <...
0
votes
1
answer
76
views
Grid alignment syntax
This is a simple question, but I just cannot understand the explanation given in the Grid documentation page for how to set different alignments for different parts of a grid. I have a grid with two ...
0
votes
0
answers
23
views
Be able to adjust the 'text' or contents of the grid
Ok....This is MMA 12.2 -- I've been on this for some days now. Not hardcore time spent, but I've put in quite a few hours and am making no progress now.
It's just a project for myself mostly, but I do ...
1
vote
2
answers
40
views
Replace points on a grid with numbers to maintain order
I am DMing a game of DnD and one of my players is really into fear effects, which is cool, but the effect of having monsters suffer from the "panicked" condition gets tedious to render via ...
3
votes
1
answer
138
views
Make a nice panel figure, with a 3D plot
There are some solutions on how to make nice panel figures, for example, or the SciDraw package. By nice, I mean reasonably presentable - without miles of space in between figures, and plots within ...
2
votes
1
answer
80
views
GraphicsRow with labeled plots resizes plots?
Here is a simple example:
a = Plot[x^2, {x, 0, 10}]
aa = Labeled[Plot[x^2, {x, 0, 10}], "a", Top]
GraphicsRow[{a, aa}]
Which gives the following image ...
0
votes
0
answers
67
views
Problem with Grid inside the GraphicsGrid
I am trying to put table in the form of Grid into GraphicsGrid. Here is my code:
...
2
votes
0
answers
48
views
Strange behavior when placing a Legend on a GraphicsRow, Column or Grid
Consider the following example:
...
5
votes
1
answer
58
views
Fixing histogram size behavior within grid of graphics
I'm trying to put the finishing touches on a grid of figures and could use some help. I'm trying to keep the figures as clean as possible, so I only want frame ticks and labels on the edge figures. ...
4
votes
2
answers
244
views
How to format a Grid command
Creating some extra notes for students in a trig class. A bare bones table can be created in Mathematica using the line below.
...
0
votes
2
answers
78
views
More Issues With Units
I have asked a couple questions here (and received terrific answers), and used that info.
I am trying to fulfill a request from a colleague that liked the results of Astronomy info I had done, but ...
5
votes
1
answer
114
views
Grid or TextGrid constant width cells
I am having problems with white spaces in lists displayed in Grid. The problem is that white spaces have less height and width compared to cells that contain text. I also tried none, None, None[], ...
3
votes
2
answers
55
views
How to increase font without affecting grid spacing?
Here's an example of the problem, say you have a Grid with particular spacings that looks like this:
...
1
vote
1
answer
109
views
prepend a column to grid
How would you prepend a column to a grid? I have seen Appending and Prepending columns to a dataset in 10.0.2.0
but that is applied to datasets and I want to retain things as a grid.
I need to prepend ...
2
votes
2
answers
78
views
Remove extra space from Grid
I am trying to make a figure with four plots using Grid[]. I added some padding to accommodate the FrameLabels but I would like to remove only the right padding and yet keep the four Plots with the ...
1
vote
1
answer
83
views
Custom layered graph layout
I'd like to write a program to draw a graph taking as an input the size of the layers and the edges of the graph. e.g. For edges={} and Layers={3,3,5,1} I'd expect something like this
I've used this ...
7
votes
1
answer
228
views
Export styled grid to latex
I'd like to write an ExportString-type function for converting Grid or TextGrid into Latex ...
3
votes
4
answers
332
views
Stacking multiple graphs together in separate plots
I have been working on a problem where I wanted to stack multiple graphs on top of each other in the following format
I tried to look for solutions to do the same but I could not. The closest I could ...
2
votes
2
answers
118
views
Why aren't my grid elements aligning correctly in a docked cells toolbar?
The following is just the initial start of my very first docked cells toolbar I am still working on. It can easily be loaded to view it live. Code is also provided to conveniently remove it afterwards....
1
vote
0
answers
157
views
Grid sizing problem
How is this possible that when I rasterize Grid with parameter ImageSize set to certain value that the grid changes its ...
15
votes
3
answers
603
views
Display hexagon grid to visualize Langton's ant
I am looking to recreate the following image from this reference as
using Mathematica's Polygon documentation under "Applications" as a starting point. I want to eventually use Mathematica ...
0
votes
1
answer
65
views
HowTo "correctly" avoid clipping in GraphicsRow[{Labeled[Graphics[]]}]? Both images and labels
Version:"12.0.0 for Microsoft Windows (64-bit) (April 6, 2019)"
This code
...
1
vote
0
answers
72
views
Problems with using Riffle, Grid and TableForm
I have the following Table:
...