Questions tagged [grid-layouts]

Questions about producing vertically and horizontally aligned output.

Filter by
Sorted by
Tagged with
0
votes
2answers
70 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 ...
4
votes
1answer
73 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
2answers
43 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
1answer
50 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
2answers
59 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
1answer
62 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
1answer
146 views

Export styled grid to latex

I'd like to write an ExportString-type function for converting Grid or TextGrid into Latex ...
2
votes
4answers
118 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 ...
0
votes
1answer
54 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
0answers
117 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 ...
13
votes
3answers
418 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
1answer
31 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
0answers
66 views

Problems with using Riffle, Grid and TableForm

I have the following Table: ...
5
votes
3answers
253 views

Create a list of plots of sin(xt), where x goes from 0 to 10 and t goes from 1 to 6

I would like to create a table like the one shown below in mathematica: Here is the code i wrote: I was wondering if there is more efficient way to writing the code where i don't have to type out ...
14
votes
4answers
773 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 ...
0
votes
0answers
26 views

Vertical text in a nested grid not aligning correctly along the horizontal (center desired)

I reconstructed the results of several functions that generate rows and nested grids so as to do away with the minutia. I am having difficulty getting the vertical text to ...
3
votes
2answers
89 views

How can I use ImageCrop on a results from Grid?

I have this figure produced using Plot and Grid ...
1
vote
1answer
26 views

Grid questions: text-wrapping / copying and pasting expressions

I want to make a list of functions like this: ...
4
votes
3answers
95 views

Display Table output as a grid of points

I want to create a Grid or Plot (or equivalent) from the following Table: ...
0
votes
2answers
139 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
57 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
34 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 ...
1
vote
1answer
55 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
48 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
32 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
60 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 ...
3
votes
1answer
115 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
41 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
106 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
60 views
3
votes
1answer
129 views

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

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
52 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
64 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
136 views

Get row in Grid to evenly divide?

I'm having an issue making the second row in this grid space out evenly: ...
20
votes
3answers
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
138 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
137 views

Grid Centring around Divider

Consider the following Grid ...
3
votes
1answer
46 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
43 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
2answers
70 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
180 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
79 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
90 views

Plot label doesn't show up in GraphicsGrid

...
4
votes
3answers
212 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
58 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
79 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
57 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
45 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 ...

1
2 3 4 5
7