Questions tagged [grid-layouts]

Questions about producing vertically and horizontally aligned output.

Filter by
Sorted by
Tagged with
6 votes
4 answers
211 views

Display Table output as a grid of points

I want to create a Grid or Plot (or equivalent) from the following Table: ...
20 votes
4 answers
847 views

Grid - Item - Alignment to decimal problem

Bug introduced in 7.0 or earlier and fixed in 13.1 I've run into a Grid layout problem for which I don't know a solution. I want to specify alignment to a ...
4 votes
3 answers
704 views

How to draw a table with this style?

Table style as above. The leftmost column headings are k, n. The row data for n is from Range[1, 17], and the row data for k is from ...
5 votes
3 answers
211 views

How to highlight top N elements in each table column?

I have tables with column and row headings, similar to this one: table = {{"",0.1,0.01}, {{1,0},1,3}, {{1,1},2,4}} I want to highlight top N elements in ...
2 votes
1 answer
41 views

Fitting a label spanning the leftover space in a grid

I would like to fit a label for a grid of images in the remainder of the columns on the last row. A minimal example and an attempt follows where the letters represent images. ...
0 votes
1 answer
59 views

Colorized hexdump

I have this hexdump command that I am writing to display a nicely printed hexdump into a mathematic grid. I want to be able to specify regions that I can highlight, however I am stuck being only able ...
3 votes
1 answer
307 views

Combine two grids in Mathematica

I have the following data ...
0 votes
1 answer
76 views

Trouble colorizing a table using grid command

I am trying to colorize rows in a table defined with the Grid command using ItemStyle. I have simplified my problem down to the following. Table["Blue",2] evaluates as the list, {Blue,Blue}. ...
3 votes
1 answer
87 views

Print in TableForm

Hi I have this code which runs fine, however it does not print things at the end in nice TableForm. I want it to print things nicely in the form of a table with some headings. However if I use ...
1 vote
1 answer
322 views

Reducing the space between plots in GraphicsGrid?

I am using GraphicsGrid to produce the following figure: ...
1 vote
3 answers
219 views

Make uniform grid around a specific point

I have a point (0.128531, 0.0765588) on xy plane where the range of x is {-0.678525, 0.678525} and the range of y is {0, 0.678525}. I want to make a uniform grid including the point in its center (let’...
10 votes
2 answers
588 views

An odd Grid style

Consider the following grid n = 10; Grid[{{"Matrix", SpanFromLeft}, RandomInteger[n, n], RandomInteger[n, n]}, Frame -> All, Alignment -> Center] ...
4 votes
1 answer
155 views

Asymmetric Grids

Consider the following Grid ...
3 votes
0 answers
52 views

Grid Problem: Combining Item[] with SpanFromLeft/Above

I'm trying to lay-out a Grid with various entry-specific Frame settings. In my case, using ...
1 vote
1 answer
290 views

Exporting a Grid over multiple pages

I have a large output currently in grids which I need to export to .pdf, with the grid centered on the page, as well as break over multiple pages. Ideally I am ...
1 vote
1 answer
231 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 ...
3 votes
2 answers
139 views

Centering a weirdly shaped grid

Consider the following grid ...
6 votes
1 answer
540 views

Spanning horizontally and vertically in Grid

I'm trying to make a Grid that has one cell that spans horizontally and one that spans vertically, like so (generated manually with ...
6 votes
1 answer
193 views

Grid Centring around Divider

Consider the following Grid ...
13 votes
2 answers
483 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-...
3 votes
1 answer
132 views

Merge the first column of the table

I used the following code to create a table ...
1 vote
2 answers
115 views

How to set the width of grid elements in cm?

As a 'painter', I use photos. To get a good projection of a photo on the canvas I use a grid. I draw this grid both on the canvas and on the photo. It is an easy way to get the proportions right that ...
16 votes
1 answer
748 views

Grid layout problems: different sizes when rendering on Mac and Windows

From the documentation for ItemSize: {w,h} make all items the specified width and height and In Grid, w is measured in ems, and h in line heights. This ...
1 vote
1 answer
82 views

Representing 2D Plot and 3D Plot next to each other, sharing $z$-axis

I have the following code ...
0 votes
1 answer
75 views

Unwanted behavior with List Partition function in which it strips out Iconized elements of Rules [closed]

The goal is to output a Grid of sorted columns of Rule elements that are Iconize-d. The <...
6 votes
3 answers
322 views

How to Partition List into sublists so that it orders down columns when placed into a Grid instead of across rows

Partitioning a List into sub-lists and placing them directly into a Grid orders sub-lists across rows. Is there an idiot-proof built-in function or a simple ...
0 votes
0 answers
38 views

how to use DiscretePlot to graph multiple partial sum functions?

I am supposed to "Make a table that shows {k,s1[k],s2[k],s3[k],s4[k],s5[k]}, for k from 1 to 50, and display as a Grid." but I have literally no idea how to do this (I'm not good with ...
4 votes
1 answer
56 views

Styling of Grid so that each cell is a square

How to make each cell of Grid being a square? ...
6 votes
1 answer
177 views

Ticks showing only partially or not at all

I have the following code: ...
1 vote
1 answer
111 views

Why is Alignment not honored in the first two headline columns?

Consider this example: ...
4 votes
2 answers
116 views

Which Alignment-option prevails if they are given on levels of Grid, Framed and the like? [closed]

From ...
3 votes
0 answers
67 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 ...
2 votes
2 answers
69 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 ...
1 vote
2 answers
129 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
235 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 ...
14 votes
3 answers
654 views

Grid - problem with ItemSize being ignored

Bug introduced in 7.0 or earlier and persisting through 11.0 or later. Fixed in 13.0.0 or earlier I have run into another problem with Grid today. An explicitly ...
18 votes
4 answers
1k views

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?

Yes I know there is no built-in native function called SymbolQ (but JavaScript does). However, could one be simulated to work for most cases? I often rely on ...
3 votes
1 answer
273 views

How to make plots on a Grid the same size?

I have the following Grid: ...
9 votes
3 answers
294 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? ...
6 votes
0 answers
94 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
101 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 ...
0 votes
1 answer
92 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 ...
1 vote
1 answer
44 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: ...
1 vote
1 answer
138 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 ...
1 vote
2 answers
150 views

Drawing Axes on top of a Grid of plots

I have a grid of density plots, for example like this toy example ...
3 votes
0 answers
99 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 ...
5 votes
3 answers
298 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 ...
2 votes
2 answers
127 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 votes
1 answer
247 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
164 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,...

1
2 3 4 5
8