All Questions
Tagged with grid or grid-layouts
387 questions
10
votes
3
answers
305
views
How to create a diagonal line within a grid cell?
I'm tring to create a table with a diagonal divider in the first cell, as shown in the following figure.
I tried using a Graphics in the first cell.
...
2
votes
1
answer
62
views
Problem with Wolfram Engine Grid[] spacing for multiple plots
This is my first post here, so please comment if I need to edit my question with more details.
I am trying to create a grid of multiple plots, and am facing a problem with the spacing.
This works fine:...
5
votes
5
answers
832
views
Draw number spirals
I like to draw a spiral of numbers in a grid format (clockwise) of size $n^2$.
So when I pass in $n=2$, it will generate a grid of size $n^2=2^2=4$.
When $n=3$, it will draw a spiral up to 9:
When $...
5
votes
2
answers
739
views
A grid of Primes
I have a 3x3 grid for which I want to populate with DISTINCT primes (smaller primes the better). For which the SUM of each row, each column, the 2-diagonals (largest ones), and lastly the entire 9 ...
3
votes
3
answers
235
views
How to convert a database to an alternative format
This code:
...
6
votes
3
answers
195
views
Generate a table of elements whose number is equal to prime numbers
I have a list of words (strings) same as
...
-2
votes
4
answers
136
views
How to find four numbers from the table that meet the requirements and find the four numbers with the largest sum?
In a 4x4 grid, it is required that each row and each column contains exactly one selected square. Enumerate all the four squares that are selected. And identify the selection that, among those that ...
3
votes
1
answer
69
views
When I arrange two 3d-plots using Grid, position of axes-y changes
I want to arrange two 3d-plots, for example
Plot3D[{x^2 + y^2, -x^2 - y^2}, {x, -2, 2}, {y, -2, 2},
ColorFunction -> "RustTones"]
which gives
where ...
2
votes
1
answer
92
views
Help with Grid formatting
After completing my PhD, I am curiously looking at the stock market from outside for now. I have some plots created to look at the market. For simplicity, let's say
...
1
vote
0
answers
31
views
Changing mouse over grid behavior
How to achieve that mouse over Grid is always an arrow like we see on first image (when mouse is over an item of the grid) and never the the shape we see in the ...
2
votes
1
answer
110
views
Make Framed expressions fill Grid cells
Given the following example, how can I make each Framed object to fill its Grid cell both vertically and horizontally?
Obviously,...
1
vote
1
answer
126
views
4
votes
2
answers
103
views
Plotting different plot in a single grid frame without combining them
We can show the plot together, but how do we show different plots in the same grid frame without combining them? I have tried the GraphicsColumn and it shows the ...
4
votes
3
answers
729
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
230
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
43
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
65
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 ...
0
votes
1
answer
83
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
120
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 ...
3
votes
1
answer
151
views
Merge the first column of the table
I used the following code to create a table
...
1
vote
2
answers
142
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 ...
3
votes
0
answers
54
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
94
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
329
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
41
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
80
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
225
views
Ticks showing only partially or not at all
I have the following code:
...
1
vote
1
answer
120
views
Why is Alignment not honored in the first two headline columns?
Consider this example:
...
4
votes
2
answers
119
views
3
votes
0
answers
73
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 ...
1
vote
2
answers
154
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
245
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 ...
2
votes
2
answers
80
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 ...
3
votes
1
answer
385
views
How to make plots on a Grid the same size?
I have the following Grid:
...
2
votes
2
answers
510
views
Reducing the space between plots in GraphicsGrid?
I am using GraphicsGrid to produce the following figure:
...
6
votes
1
answer
376
views
Combine two grids in Mathematica
I have the following data
...
9
votes
3
answers
306
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?
...
7
votes
0
answers
102
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
106
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 ...
1
vote
1
answer
47
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:
...
13
votes
2
answers
556
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-...
1
vote
1
answer
161
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 ...
3
votes
0
answers
104
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
...
1
vote
2
answers
158
views
Drawing Axes on top of a Grid of plots
I have a grid of density plots, for example like this toy example
...
5
votes
3
answers
304
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 ...
-1
votes
1
answer
327
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
184
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,...
0
votes
1
answer
96
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 ...
2
votes
2
answers
144
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 ...