Questions tagged [grid-layouts]

Questions about producing vertically and horizontally aligned output.

Filter by
Sorted by
Tagged with
0
votes
2answers
91 views

Easiest way to display two plots side by side [duplicate]

Sometimes I like to display two plots right next to each other, so I can see all the important information at once. For example, I have a plot with 5 lines, and I want to have a plot of only 2 of ...
1
vote
1answer
42 views

Merging (Joining) Formatted Row Labels to an Existing Styled and Formatted Grid

From a previous question and with the help of kglr a grid containing a data matrix with column labels was properly formatted and created Controlling label alignment/spacing in large grids Having this ...
1
vote
1answer
25 views

Make one column of a grid to fill available formatting width

Is it possible to make one ("Comment" in the example below) column to dynamically resize to fill available formatting width e.g. window? I can't figure if it's possible with ...
0
votes
1answer
40 views

Controlling label alignment/spacing in large grids

I have a matrix, here called result that I want to place in a grid. The first rows of the matrix newcolumnlabels contains the column labels each of which is a string containing the column label ...
4
votes
1answer
46 views

How to Display Corners of Big Matrices with Fancy Ellipsis Characters

Say I have a big matrix testMat = Partition[Range[16*2048], 2048]; and I want to display a block in the upper left corner, say defaulting to a 4-by-4 block, plus ...
2
votes
0answers
28 views

Text in Grid cells not aligning correctly and how to style them all with single rule

This is the entire module that contains all code to output with a Print[Grid[data, rules]] statement. I have all cells arranged in stacked rows in a convenient <...
1
vote
1answer
30 views

Using Wolfram to Compare “env” (shell command) Outputs

Suppose on SystemOne the env shell command produces a string output like VAR1=value1 VAR3=value3 while on SystemTwo the the <...
4
votes
1answer
55 views

Change number of columns in grid

I'm looking to make a grid where the number of columns change, but the grid spacings remain roughly the same. Essentially, something like SpanFromLeft, but applied to an entire row rather than a ...
0
votes
1answer
49 views

Grid for NDSolve

i want to get the output of NDsolve in the form of a tbale/grid that can be exported to .xls/.csv. NDSolve[x'[t]==Exp[t], y'[t]==cos[t], x[0]=0, y[0]=1,{x[t],y[t]},{t,0,10}] I am expecting an output ...
3
votes
1answer
61 views

How can I fix the alignment of complex combinations of GraphicsGrid / GraphicsRow plots?

I am having problems joining multiple plots using GraphicsRow and GraphicsGrid. The issue is that Mathematica (v12.1) rescales arbitrarily my plots when I try to combine them. The issue arises when I ...
2
votes
1answer
36 views

How can I format these data sets nicely in a table?

I have three data sets, each generated by Table in the following manner: ...
6
votes
2answers
68 views

Alternate Background color by row in a Grid in the presence of SpanFromAbove

I have some rows I want to put into a Grid: ...
4
votes
2answers
57 views
3
votes
1answer
75 views

Discretizing a (kinked) line and showing how the points were determined

Suppose I have a (kinked) line, for example 2-x==y && x< 1 3-2x == y && 1.5>=x>= 1 I want to take this kinked line and represent ...
1
vote
0answers
40 views

Conditional Formatting of Labels of Functions in a Grid of Plots

I have a panel of graphs where each graph shows the same functions but at different values. I want to label them with Labeled, however, as the label is quite ...
1
vote
1answer
54 views

Vertically resize grid item to fill row height

I am trying to find a way to have an item in a grid cell that always fill the available vertical space enforced by the remaining items (without enforcing any row height itself). One of my (many) ...
5
votes
2answers
98 views

Get row in Grid to evenly divide?

I'm having an issue making the second row in this grid space out evenly: ...
18
votes
2answers
1k views

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

Most modern GUI building libraries (e.g. cocoa) support this basic operation in tables or lists: reordering items with a mouse. For example, the drag-and-drop of items in a MacOS finder or app window: ...
4
votes
2answers
100 views

Using Padding and Margins with Graphics object

I have relatively simple question. I need to control size and background color of the following two zones separately (indicated by blue and magenta arrows on the figure). Using ...
6
votes
1answer
129 views

Grid Centring around Divider

Consider the following Grid ...
3
votes
1answer
42 views

Creating a grid of plots in the shown arrangement [closed]

How can I use Grid to create the shown arrangement of plots:
2
votes
1answer
32 views

Grid with data vertically aligned on the decimal point are not properly displayed in the Wolfram Cloud Notebook?

I can't align colum data on the decimal point: ...
1
vote
1answer
51 views

Spacing of rotated elements (labels) in grid

How can I change the size of a specific subset of cells in a Grid? I'm using the ItemSize parameter for the ones I want to ...
4
votes
1answer
70 views

Avoiding jiggle in palettes

I have a palette containing a Grid with dynamics. As it runs it jiggles horizontally. Here's a minimal example: ...
3
votes
2answers
160 views

Represent list of lists as formatted grid

I have tried to figure out how to make these changes, but it mostly just ends up with me making it ten times worse. ...
3
votes
2answers
77 views

Correcting visualization of other functions inside the grid function

I wish the DateObject[{2019, 8, 27}] function and TimeObject[{2, 35}] function could be visible on my grid. ...
1
vote
1answer
66 views

Plot label doesn't show up in GraphicsGrid

...
4
votes
3answers
158 views

Grid: different background color (of row) based on values

I want to use Grid to tabulate the following list and have the same background color for rows of the same value on column 4. ...
1
vote
1answer
48 views

Why does it fail to assign values to variable in Grid? [closed]

I have a grid such as the following, and want to assign the values in the second row to the variable in the first row, but it always fail, can you provide a solution? Thank you! ...
1
vote
1answer
75 views

ElementMeshInterpolation and C1 splines

I am trying to use NDSolve`FEM`ElementMeshInterpolation on a triangular structured grid constructed from a Delaunay triangulation with zero area triangles dropped. ...
0
votes
1answer
56 views

Changing the layout of an array in output

I'm curious about the following: if I want to make a table described by the following code, ...
1
vote
1answer
34 views

Making a table using the grid function with some modifications

I am trying to make a table out of some formulas which I listed in the code section, however, I am having several issues: *Alignment of rows (I think it has something to do with scientific notation ...
2
votes
1answer
50 views

Problem with multi-columns using Grid

I am working on a data table, ...
3
votes
1answer
88 views

Connect grid with dataset to change grid background

...
1
vote
3answers
234 views

How to substitute curly brackets with round brackets in a grid of list

I want to produce a table (or a grid) from my list of data, as follows: ...
4
votes
0answers
67 views

Grid: Alignment by position doesn't work

Let's consider a simple example Grid[{ConstantArray[0, 5]}, Frame -> All, ItemSize -> {3, 3}, Alignment -> {0.5, 0.5}] According to the documentation ...
5
votes
2answers
77 views

SelectionMove within a GridBox?

I want to interactively manipulate the contents of a GridBox using keyboard commands. To approach this I need to control selection with something like ...
3
votes
0answers
66 views

Is there an easy way to slant / angled dividers in TextGrid or Grid?

Is there an easy way to add angled dividers in TextGrid or Grid. Consider the following: One fake way would be to use the ...
1
vote
2answers
71 views

Aligning legend constructs using Row

Im trying to make a legend with data labelled in groups. I'm doing this by combining SwatchLegends using Row, ...
1
vote
0answers
97 views

How can I vary the height of items in a GraphicsColumn?

I would like to create graphics that look like this: g = Grid[{{"Circle"}, {Graphics[Circle[]]}, {x^2 + y^2 == r^2}}, Frame -> All] But when I use this code, ...
1
vote
1answer
43 views

Two png images aligned in one column with vertical spacing zero and left aligned

I have the following two png images which I want to left-align in one column with zero vertical spacing, retaining their original size (which is for both the same, ...
1
vote
2answers
70 views

Colored grid congruences

How can I construct a colored grid in Mathematica representing the remainder of $x^{y}$ modulo a given prime $p$?(with coordinates) As such:
3
votes
2answers
201 views

Pie chart grid with a common legend

I want to construct a grid of pie charts but I want the legend (which is common to all charts) to appear at the bottom of the grid.I include the code and a picture of the output. Code updated with ...
3
votes
0answers
88 views

How to draw such boxes in Netron?

How to draw a box like this: This was drawn by https://github.com/lutzroeder/netron My attempt: ...
3
votes
1answer
58 views

Need Help for Layout

I am preparing pdf's with an image, a description and a QR code linking to that image hosted on the web. However for now the QR code is always positioned just bellow the description. I would like to ...
2
votes
1answer
383 views

Adjust font size in `Grid` [closed]

I have a simple table given by ...
4
votes
1answer
66 views

Problem with Alignment in Grid

Further to the problem noted in Grid - Item - Alignment to decimal problem I feel that the Alignment below should be decimal for the lower right and centre for the left and top headings. You will note ...
3
votes
1answer
100 views

Diagonal formatting of grid / table

I have a table given by (a simple example for clarity) ...
1
vote
3answers
113 views

Dynamically selecting Rows from a Grid

This question is related to the following Interactively select a row/column of a Grid I’d like to present information in a grid where in the user can choose from the entries in the table. As shown ...
1
vote
0answers
160 views

Plotting a “Competitive Landscape” Business Grid in Mathematica? [closed]

Question: Is there a way to create a graph similar to the one below? Some ideas: Each business is a point on the plane $[0,1] \times [0,1]$. Each point on the plane can be represented as an ...

1
2 3 4 5 6