Questions tagged [grid-layouts]

Questions about producing vertically and horizontally aligned output.

38 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8 votes
0 answers
333 views

GraphicsGrid Format Problem with SpanFromAbove

Bug introduced in 8.0.4 or earlier and persisting through 11.0.1 or later I believe this is a bug in GraphicsGrid. ...
Murta's user avatar
  • 26.1k
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
6 votes
0 answers
496 views

HEALPix grid on a sphere

Are there any Mathematica tools for using the HEALPix ( Hierarchical Equal Area isoLatitude Pixelation) grid on a sphere? It is commonly used in astronomy, but I have not found any Mathematica ...
Bruce Bills's user avatar
5 votes
0 answers
103 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 ...
Ihor's user avatar
  • 368
5 votes
0 answers
47 views

How to get consistent/predictable results from `Alignment` specs within a `Grid` environment?

IME, the results of Alignment specifications within a Grid environment are completely unpredictable. I give several examples ...
kjo's user avatar
  • 11.7k
4 votes
0 answers
188 views

Page breaks and headings in long table or grid

I have a need for long tables in a document I am producing but I am having difficulty. The printed document ends up with page breaks midway through the table which cuts rows part way through. I'd also ...
CrustyNoodle's user avatar
4 votes
0 answers
147 views

Collapse / expand a balance sheet using an OpenerView

I am a relatively inexperienced Mathematica user, so I apologise if there is a simple answer to this question. I would like to create a balance sheet that can be collapsed/expanded as necessary. I ...
Andrew's user avatar
  • 41
4 votes
0 answers
319 views

Accessing MathematicaScript over ssh/network

Here is the conundrum I am faced with. I have two computer. One with Mathematica (and hence MathematicaScript) but generally poor resources. The other without ...
dearN's user avatar
  • 5,321
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
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
3 votes
1 answer
297 views

Combine two grids in Mathematica

I have the following data ...
VDF's user avatar
  • 403
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,493
3 votes
0 answers
80 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 ...
user13892's user avatar
  • 9,113
3 votes
0 answers
219 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, ...
Stanley Rabinowitz's user avatar
3 votes
0 answers
99 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: ...
Aster's user avatar
  • 3,816
3 votes
0 answers
397 views

Plots in a Grid: negative spacing and transparency

I am trying to produce a grid of color plots, where only the outer frame borders have labels, labeled ticks, and color bars. So the outer dimensions of all plots in the grid are different, because ...
Felix's user avatar
  • 3,861
3 votes
0 answers
159 views

Grid column width too large when alignment rules are used

I would like to use Grid to display the results of a series of calculations and an information graphic on many items. The grid has a name and a category column with ...
Edmund's user avatar
  • 41.7k
2 votes
0 answers
68 views

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

Consider the following example: ...
Javier's user avatar
  • 285
2 votes
0 answers
47 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 <...
Jules Manson's user avatar
  • 2,397
2 votes
0 answers
87 views

Displaying, exporting, and saving Grid with square cells

I am trying to save (export) to PDF. ...
Chen Stats Yu's user avatar
2 votes
0 answers
707 views

How could I make an Excel-like table?

I am looking to build a simple Excel type of a table with four columns. I have spent some time researching Mathematica documentation, but haven't come across a way to implement that. Here is a picture ...
Mike2006's user avatar
2 votes
0 answers
78 views

Panel size undesired behaviour

This is next question from the series: better avoid Panel if you care about details. previous about FrameMargins In the ...
Kuba's user avatar
  • 136k
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,179
1 vote
0 answers
186 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 ...
azerbajdzan's user avatar
  • 9,868
1 vote
0 answers
76 views

Problems with using Riffle, Grid and TableForm

I have the following Table: ...
Richard Burke-Ward's user avatar
1 vote
0 answers
110 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 ...
Karl A's user avatar
  • 67
1 vote
0 answers
256 views

Remove grid background in figures saved as PDF

Whenever I save a figure as a PDF I seem to get a grid that's visible in the background. This doesn't show up when I view the figure in mathematica. How do I get rid of the grid? Here's how the PDF ...
Brian Axelrod's user avatar
1 vote
0 answers
205 views

Fill grid with list data

I have the following list: list = {{114}, {59, 55}, {31, 28, 27}, {17, 14, 14, 13}} The list data should be placed into a ...
lio's user avatar
  • 2,356
1 vote
0 answers
75 views

How to put images on a map so that they disapear when another image passes over them

We are working to create a pacman type of game and we cannot figure out for to get colored dots on the maze to represent the food the pacman eats. Here is our code so far: ...
Savannah S's user avatar
1 vote
0 answers
161 views

Decimal alignment in a grid

I tried to find an answer and found quite a few posts on similar topics, but none of them really helped me. Here is a typical example: ...
Pirx's user avatar
  • 4,129
1 vote
0 answers
153 views

How to get grid items with a gradient background to behave well?

I have a table that looks something like this ...
Gerli's user avatar
  • 1,051
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
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
0 votes
0 answers
118 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
0 votes
0 answers
37 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 ...
Jules Manson's user avatar
  • 2,397
0 votes
0 answers
511 views

How can one plot a grid within a for loop?

I'm implementing a Kohonen self-organising map, which consists of a $3 \times 3$ grid with a $4$-neighbour topology. I've created a for loop that sets the values of the learning coefficients (which ...
Caleb Owusu-Yianoma's user avatar
0 votes
0 answers
121 views

How to Grid two or more figures in Mathematica?

I am trying to combine the following two plots using Grid option. The problem in that in the combined figure, the Legends appear larger and spoil the look of the entire figure. ...
Jee's user avatar
  • 275
0 votes
0 answers
80 views

An array of function values over the region $\{(x,y): -1\le x,y\le 1\}$

I had one of my colleague instructors ask me how to evaluate the function $f(x,y)=x^2+2y^2-x$ over a few points in the region $\{(x,y): -1\le x,y\le 1\}$ and display them in table form with headings ...
David's user avatar
  • 14.8k