Questions about producing vertically and horizontally aligned output.

learn more… | top users | synonyms (1)

22
votes
2answers
1k views

Schedule programing problem with integer linear programming

I know how to model this question on paper, but I don't know how doing it in Mathematica. Imagine , there is a university student who want to choose courses for this semester and he got the ...
21
votes
2answers
1k views

Generating schedules/timetables in Mathematica

I've always used MS Excel to create my school schedules, and I've always been happy with the results. Is there a similar GUI way to generate schedules/timetables in Mathematica or a third-party ...
20
votes
2answers
1k views

How can I create an advanced grid interface?

Working on a CDF for report creation, I miss having a nice grid interface, where I would have basic operations like being able to sort a columns by clicking on the columns head (ascending and ...
20
votes
3answers
1k views

Build a refined grid based on intersecting line

I honestly have no idea where to begin with this problem. In summary, I have a 2D coarse grid with an intersecting line. For an easy example, let's assume it's a 4x4 grid. I wish to pass through ...
18
votes
2answers
3k views

Export to PDF - scaling grids of plots and text size

Sometimes I have occasion to make big grids of plots. As a toy example: ...
18
votes
2answers
465 views

How to add lines in TableForm

...
15
votes
4answers
4k views

What is the most elegant way to display multiple graphs with a common title?

I often seek to display two graphs, side by side, with a common label over them. There is no option for adding a label to GraphicsRow, which means, I think, that I ...
15
votes
4answers
561 views

Grid - Item - Alignment to decimal problem

Still present in version 10. I've run into a Grid layout problem for which I don't know a solution. I want to specify alignment to a specific character such as ...
14
votes
1answer
234 views

Grid cuts my images

Bug introduced in V9.0 or earlier and persisting through V10.4.0 pic2 = ImageResize[ ImageCrop@Rasterize@Graphics@Disk[], {Automatic, 40}] ...
13
votes
1answer
151 views

Possible to draw an Item in a Grid with only 3 sides of a Frame?

I'm trying to draw a Grid of characters where some of the characters have Frame lines on 3 sides. For example: ...
13
votes
1answer
401 views

Combining BarChart and Grid - IPCC style

I would like to combine a plot with a table. Something like this famous plot/table from IPCC: So after reading Combining graphics & lists / tables I tried an approach using ...
13
votes
1answer
570 views

Grid layout problems: different sizes when rendering on Mac and Windows

From the documentation for ItemSize: {w,h} make all items the specified width and height and In Grid, w is measured in ems, and h in line heights. This ...
12
votes
2answers
849 views

How to set row height in Grid?

I always thought that Grid (and the underlying GridBox) and the general handling of tabular objects is a bit weird in ...
11
votes
3answers
474 views

How to make Excel-like data bars?

I would like to make a grid where each cell background is partially filled according to the numerical value being represented (on a scale from 0 to 1). Similar functionality to the one requested in ...
11
votes
2answers
225 views

How to make a Slash header in Grid?

Here is an example, ...
11
votes
2answers
1k views

How do I display imported images at actual size?

I know that this is an extremely basic question, but I am having a lot of trouble finding the answer in the documentation. When I import an image (for example, ...
11
votes
2answers
1k views

Adding custom GridLines to the “automatic” ones

I need to add custom (vertical) grid lines to a plot (to a DateListPlot, to be precise). I know there is the option of ...
11
votes
4answers
1k views

Grid - sizing and spacing problems with spanning cells

I am trying to set up a Grid with cells that span two rows and are centered on those rows, but I am having troubles with the sizing and, therefore, spacing of the ...
11
votes
2answers
460 views

Grid - problem with ItemSize being ignored

Bug introduced in 7.0 or earlier and persisting through 10.0.2 or later I have run into another problem with Grid today. An explicitly specified ...
10
votes
5answers
908 views

The mysterious gap inside Grid

There's this gap inside Grid which I cannot seem to remove. Perhaps someone knows how. ...
9
votes
1answer
257 views

Arranging elements in a Grid by drag&drop

I have some elements in a Grid. I want to change their positions within that Grid. Can I swap their positions just by dragging ...
9
votes
3answers
101 views

Grid changes FrameTicksStyle font size

I have a contour plot that I'm trying to organize into a grid using Grid. But Grid changes the ...
9
votes
1answer
322 views

Group dataset on two keys (GroupBy)

I would like to group the elements of row c of the following dataset according to the values in the columns a and b. That is Go from here To here And then I would like to print this on a grid, ...
8
votes
3answers
377 views

Part of an Image cut/lost when exported to EPS file

When making .EPS image files for publication, I tried to assemble several Graphics by Grid. For example, suppose I have: ...
8
votes
3answers
329 views

Grid without lines, but with dots

I want to build a grid to look like the top-left table shown below, but without an outside frame. Here is what I've tried to do: ...
8
votes
3answers
295 views

How to add rows to a Grid in front end?

I created a grid g1 with Grid[] and then a separate grid g2. ...
8
votes
3answers
288 views

How to scale the size of Pane to make it fit a Grid element?

I am wanting to make a Pane scale to fit (if Spacings are zero) a Grid element. ...
8
votes
1answer
718 views

Control objects Sizing and placement in Graphicsgrid Vs Grid:

I have created a grid, and also made a list of control objects(e.g., input fields, buttons, etc.). Then, I lay the list in my grid. There is no problem. However, the final layout takes a lot of time. ...
7
votes
1answer
103 views

How to create dataset with ordered and hierarchically-grouped rows?

The (toy-example) dataset plots consists of 12 rows, the first two of which are shown below: I want to arrange the plots shown in the ...
7
votes
1answer
156 views

Problem with exporting nested Rows/Columns to HTML

I will show the problem on the following MWE: Export["test.html", Column[{ Row[{"test", "1"}] }], "HTML", "CSS" -> None] ...
6
votes
3answers
270 views

Inconsistent image sizing with Grid and Row?

Can anyone explain why Row and Grid don't size the image correctly and consistently to 300 ...
6
votes
3answers
434 views

How to count the integer grid numbers defined by inequalities?

I have the following code to show a red area defined by inequalities: ...
6
votes
3answers
434 views

Exporting a rasterized Row of Graphics

I'm running some code based on @R.M.'s answer to this question to create a couple plots side by side. I want to export the plots rasterized to a png. However, when I ...
6
votes
2answers
332 views

Add arrows over matrix

How can I plot this graph g1 = Table[x[i, j], {i, 5}, {j, 5}] // Grid; Rasterize@g1 I added these arrows by Ctrl+D's graphics tool. This way maybe hard ...
6
votes
2answers
126 views

Small World network on a square grid

My aim is to generate a 2D Small World network on a square grid. i.e. 20x20. With a probability of 5%, one node rewires from an adjacent node to a random node of the grid, allowing some long distance ...
6
votes
3answers
149 views

What function superseded SpaceForm?

In older versions of Mathematica you could use SpaceForm to leave a certain amount of spaces when writing to a file. For example, if we have the following data: <...
6
votes
1answer
1k views

Changing the background color of one element in a Grid

Consider the following code: Grid[Table[x, {4}, {7}], Background -> {4 -> LightRed}] This highlights column 4: ...
6
votes
2answers
158 views

Fractions formatting in Column / Grid

Fractions are squished in GridBox: ...
6
votes
1answer
46 views

Heading in Table Form Question

I have: modadd = Table[Mod[i + j, 3], {i, 0, 2}, {j, 0, 2}]; TableForm[modadd, TableHeadings -> {{0, 1, 2}, {0, 1, 2}}] Which produces: How can I put a ...
6
votes
2answers
609 views

Interactively select a row/column of a Grid

I need a simple way to display tabular data (preferably with Grid) and also be able to select a row or column of the table. I've tried different approaches, but I ...
6
votes
1answer
441 views

Using “Raw MathLink Connections” to create a “Kernel Object”

Mathematica 8.0.0: I am stuck trying to get a Mathematica Mathlink connection from my Windows computer working that should connects to Linux over network (or vice versa) and then launches a Kernel on ...
6
votes
2answers
720 views

Full width of graphics in GraphicsColumn

I have a list of graphics which are all the same width, and I would like to combine them into a single Graphics object that has them all stacked on top of each other, column-style, without changing ...
6
votes
0answers
141 views

GraphicsGrid Format Problem with SpanFromAbove

I believe this is a bug in GraphicsGrid. ...
5
votes
3answers
803 views

How to build this grid with less code?

I have the diagonal and both upper and lower triangulars of a grid. ...
5
votes
2answers
695 views

Labeling a grid

I have m = {{0, -1, -2, -3, -4}, {1, 0, -1, -2, -3}, {2, 1, 0, -1, -2}, {3, 2, 1, 0, -1}, {4, 3, 2, 1, 0}}; And a grid ...
5
votes
3answers
218 views
5
votes
3answers
262 views

preventing TraditionalForm from getting “squished”

TraditionalForm[] does a great job generally speaking, with complex equations like the following, ...
5
votes
1answer
86 views

Visualize Pascal's triangle with the product of the terms in the $n$th row

How to make the following graphics by using Mathematica? What I tried: I used J.M's answer for the Pascal triangle ...
5
votes
2answers
427 views

Grid ItemSize is smaller than expected

If I execute MatrixPlot@IdentityMatrix@100, the result is a good size. However, if I evaluate ...
5
votes
4answers
480 views

Row and Column Headings for a Grid

It would be useful for me if I could write: Grid[{{a, b}, {c, d}, {e, f}}, GridHeadings -> {{"r1", "r2", "r3"}, {"c1", "c2"}}] just like ...