Questions tagged [grid-layouts]

Questions about producing vertically and horizontally aligned output.

Filter by
Sorted by
Tagged with
0 votes
1 answer
55 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 ...
skyfire's user avatar
  • 477
0 votes
1 answer
70 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}. ...
matrixbud's user avatar
  • 425
3 votes
1 answer
75 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 ...
Learner's user avatar
  • 219
3 votes
1 answer
121 views

Merge the first column of the table

I used the following code to create a table ...
我心永恒's user avatar
  • 1,402
1 vote
2 answers
105 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 ...
Michiel van Mens's user avatar
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 ...
Sean's user avatar
  • 615
1 vote
1 answer
82 views

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

I have the following code ...
jabru's user avatar
  • 205
0 votes
1 answer
72 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 <...
Jules Manson's user avatar
  • 2,397
6 votes
3 answers
320 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 ...
Jules Manson's user avatar
  • 2,397
0 votes
0 answers
37 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 ...
Aster Antimony's user avatar
4 votes
1 answer
50 views

Styling of Grid so that each cell is a square

How to make each cell of Grid being a square? ...
azerbajdzan's user avatar
  • 9,578
6 votes
1 answer
166 views

Ticks showing only partially or not at all

I have the following code: ...
Iosif Pinelis's user avatar
1 vote
1 answer
111 views

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

Consider this example: ...
Adalbert Hanßen's user avatar
4 votes
2 answers
114 views

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

From ...
Adalbert Hanßen's user avatar
3 votes
0 answers
66 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 ...
user305883's user avatar
1 vote
2 answers
123 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 ...
pdini's user avatar
  • 475
3 votes
2 answers
232 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 ...
Adalbert Hanßen's user avatar
2 votes
2 answers
66 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 ...
Maubro's user avatar
  • 41
3 votes
1 answer
246 views

How to make plots on a Grid the same size?

I have the following Grid: ...
MathIsHard's user avatar
1 vote
1 answer
274 views

Reducing the space between plots in GraphicsGrid?

I am using GraphicsGrid to produce the following figure: ...
MathIsHard's user avatar
3 votes
1 answer
294 views

Combine two grids in Mathematica

I have the following data ...
VDF's user avatar
  • 403
9 votes
3 answers
283 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? ...
Rupesh's user avatar
  • 877
6 votes
0 answers
93 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 ...
EricMock's user avatar
  • 291
5 votes
1 answer
98 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 ...
And R's user avatar
  • 450
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: ...
AccidentalTaylorExpansion's user avatar
13 votes
2 answers
442 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-...
Ranza's user avatar
  • 1,205
1 vote
1 answer
130 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 ...
mathemagician617's user avatar
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 ...
B flat's user avatar
  • 5,409
1 vote
2 answers
148 views

Drawing Axes on top of a Grid of plots

I have a grid of density plots, for example like this toy example ...
Kai's user avatar
  • 2,079
5 votes
3 answers
294 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 ...
matrix42's user avatar
  • 6,744
-1 votes
1 answer
226 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 ...
Tugrul Temel's user avatar
  • 5,470
2 votes
2 answers
153 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,...
larry's user avatar
  • 695
0 votes
1 answer
91 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 ...
user82053's user avatar
2 votes
2 answers
137 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 ...
murray's user avatar
  • 11.8k
3 votes
2 answers
327 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: ...
murray's user avatar
  • 11.8k
4 votes
3 answers
235 views

Showing data in a grid

I tried this code for one variable and it works fine. ...
Mahmoud Hassan's user avatar
2 votes
1 answer
201 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: ...
Jaffe42's user avatar
  • 185
4 votes
1 answer
154 views

Asymmetric Grids

Consider the following Grid ...
sam wolfe's user avatar
  • 4,157
3 votes
2 answers
138 views

Centering a weirdly shaped grid

Consider the following grid ...
sam wolfe's user avatar
  • 4,157
7 votes
1 answer
548 views

What is "size"?

When talking about concepts like ItemSize, ImageSize, FontSize, row/column height within a ...
sam wolfe's user avatar
  • 4,157
1 vote
0 answers
57 views

Grid's automatic resizing

Imagine I have a dynamic opener that changes the number of rows. For example, ...
sam wolfe's user avatar
  • 4,157
10 votes
2 answers
585 views

An odd Grid style

Consider the following grid n = 10; Grid[{{"Matrix", SpanFromLeft}, RandomInteger[n, n], RandomInteger[n, n]}, Frame -> All, Alignment -> Center] ...
sam wolfe's user avatar
  • 4,157
0 votes
1 answer
106 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 <...
TribalChief's user avatar
1 vote
1 answer
253 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 ...
Javier's user avatar
  • 285
0 votes
0 answers
52 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 ...
fiz's user avatar
  • 676
1 vote
2 answers
46 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 ...
Wombles's user avatar
  • 792
3 votes
1 answer
440 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 ...
Tomi's user avatar
  • 4,262
2 votes
1 answer
135 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 ...
user106860's user avatar
0 votes
0 answers
117 views

Problem with Grid inside the GraphicsGrid

I am trying to put table in the form of Grid into GraphicsGrid. Here is my code: ...
Moonwalk's user avatar
  • 631
2 votes
0 answers
67 views

Strange behavior when placing a Legend on a GraphicsRow, Column or Grid

Consider the following example: ...
Javier's user avatar
  • 285

1
2 3 4 5
8