Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms (1)

0
votes
0answers
57 views

Expand An Image to Fill a Grid

How can I effectively expand an image to fill an entire cell area of a grid and no more? ...
3
votes
1answer
52 views

Why are the edge items in `Grid` truncated?

The first and last rows and columns of my Grids always seem to be smaller than all the other rows in my Grid, as of they had ...
2
votes
2answers
49 views

Can I use 'ItemStyle' in 'Grid' to specify the style of individual items? [closed]

I'm confused by the documentation for ItemStyle. I can't figure out how to specify styles for individual items in a Grid. ...
3
votes
1answer
64 views

Expand and collapse rows in a grid

Would someone have an idea on how to implement a table with rows that you can expand or collapse in a grid. An example could be found in a pivottable in Excel, for example here ...
2
votes
2answers
74 views

Spanning/centering elements with Grid/GraphicsGrid when there's a non-equal number of elem. in rows

I'm trying to align elements in Grid/GraphicsGrid: Grid[{{a,b,c},{d,e}}] This makes ...
3
votes
2answers
140 views

How to have shaded grid entries

Teaching a unit on log scales for a high school math class. I saw this table on the internet. I know how to colour individual grid entries, is there a nice way to incrementally colour them like ...
1
vote
0answers
49 views

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

I have a table that looks something like this ...
4
votes
2answers
116 views

Selecting y-values from xy coordinate grid

Suppose I have a table, u, which is created as follows: ...
2
votes
1answer
108 views

Package for nonlinear plot coordinates

Is there a package for plotting in nonlinear coordinates? I mean that I provide coordinate transformation functions {xi(x,y), eta(x,y)}, for example ...
1
vote
4answers
111 views

Repeating rows in a Grid [closed]

I am writing a function which would automatically add rows in a Grid[], repeating a function until a desired variable is reached. I'm unsure if another method can ...
3
votes
1answer
34 views

How to set the width of grid elements in pixels?

That is all: How can I set the width of columns in a Grid in terms of pixels instead of 'ems'? To be more precisely, I want to create a grid that is 330 pixels ...
7
votes
1answer
136 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, ...
5
votes
1answer
101 views

Grid rows height & SpanFromAbove issue

I would like to understand why the following code produces such a different result (Mathematica 9, Win7). Is this a bug? Is there a way to avoid this line height problem? ...
6
votes
3answers
276 views

How to count the integer grid numbers defined by inequalities?

I have the following code to show a red area defined by inequalities: ...
2
votes
1answer
81 views

Problem with grid alignment [duplicate]

This grid works: ...
1
vote
0answers
110 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 ...
6
votes
0answers
67 views

GraphicsGrid Format Problem with SpanFromAbove

I believe this is a bug in GraphicsGrid. ...
10
votes
5answers
813 views

The mysterious gap inside Grid

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

How to control frame thickness in Grid object exported to .pdf?

I would like to export a Grid object to a .pdf document (preferably as part of a notebook). Here's an example: ...
13
votes
1answer
290 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 ...
0
votes
1answer
37 views

How to remove styling from a formatted object? [closed]

I have an object of the form Style[Grid[...,...],...] What function do I need to apply to it to get the Grid[...,...] part ...
1
vote
3answers
126 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 ...
3
votes
2answers
140 views

Stretch Grid to fit width of containing object?

How can I stretch this Grid to the width of the encapsulating Panel (so that "right" floats on the right side? I want to achieve something along the lines of the menu at the top of the Documentation ...
5
votes
2answers
128 views

Fractions formatting in Column / Grid

Fractions are squished in GridBox: ...
1
vote
1answer
88 views

Extending a grid to avoid line breaks in text

I was wondering what the best way is to extend the cells in a GraphicsGrid so that my text fits without line breaks. My problem is illustrated by the graphic ...
5
votes
2answers
262 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 ...
0
votes
1answer
119 views

Rotating & Trimming grids

I want to draw a graphic $20\times20$ grid, rotate it by $\theta$ around $(0,0)$, and trim off the part on the right of the y-axis, so I came up with ...
2
votes
2answers
100 views

Automatically highlight certain cells

I am looking for a method to highlight certain cells in a table/Grid based on meeting some user defined conditions. As an example: ...
0
votes
0answers
39 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 ...
0
votes
1answer
122 views

Combine Plots into a single non-rasterized Graphic with no spacing [duplicate]

Suppose that I have two plots, pl1 and pl2: ...
3
votes
3answers
182 views

Generating a list of questions (simultaneous equations)

I am trying to create a list of simultaneous equations showing steps, where I only need to change a, b and the question number, and maybe a couple of minor things about q (where q is the factored ...
2
votes
2answers
196 views

Converting from TableForm to Grid

I wonder if there is an easy way to convert from TableForm to Grid. I have an existing data format that uses the Table function that I’d like to prettify…. Let’s setup a nested table as follows: ...
3
votes
1answer
192 views

Draw grid with points

How would I draw a grid with dots on specified intersections? The image below shows the basic idea: If I wanted to label the grid lines with index numbers or letters, how would I do that?
3
votes
1answer
52 views

Assign the Background rule in Grid (the positions can be described by a integer function)

For example, this code Grid[Transpose[Table[{n, n^2}, {n, 1, 10}]], Frame -> All, Background -> {{1 -> Red, 4 -> Red, 9 -> Red}}] produces , in ...
1
vote
1answer
88 views

How to align cells in a grid?

I would like to align the text in the gauge such as the label "AKs" is in the center of the gauge and the value (60) is in the upper right corner with a smaller font. How can I achieve this? I tried ...
2
votes
1answer
65 views
3
votes
1answer
162 views

Background in ItemStyle

I would expect the following to output the same grids ...
3
votes
3answers
395 views

Draw grid lines at multiples of k

Here is a beginner's question: when creating plots with mathematica, I want the grid lines to be at multiples of a constant value. E.g. in the following plot, the vertical grid lines are at multiple ...
4
votes
3answers
189 views

preventing TraditionalForm from getting “squished”

TraditionalForm[] does a great job generally speaking, with complex equations like the following, ...
16
votes
2answers
499 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 ...
4
votes
2answers
189 views

Prevent Grid from resizing images

Aligning my images in Grid causes one of them to become smaller, despite specifying each of their sizes with ImageSize: ...
4
votes
2answers
275 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 ...
0
votes
2answers
216 views

Using a table to format a grid

Ok, I can't wrap my head around this because I don't know Mathematica well enough yet, so I'm asking for help, at least a direction to explore in. I have a Grid: ...
7
votes
1answer
129 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] ...
2
votes
4answers
184 views

Padding and formatting within BaseForm

I find using BaseForm to be a little tricky. For example, if you use BaseForm and then do some additional operation all the numbers turn back into base 10, so you have do BaseForm as the "last step". ...
4
votes
2answers
191 views

Grid ItemSize is smaller than expected

If I execute MatrixPlot@IdentityMatrix@100, the result is a good size. However, if I evaluate ...
0
votes
2answers
124 views

Put results in multiple columns for comparison

One thing I would like to do in many instances is arrange input/output in columns for comparison. I expect that I need to use Grid to do this, but have not been ...
1
vote
2answers
159 views
13
votes
4answers
709 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 ...
2
votes
1answer
383 views

Grid Lines in ListPlot

Why is Mathematica plotting a horizontal line at $y=2$ in the following example: ListPlot[Table[i,{i,1,10}],Frame->True,GridLines->None] How to get rid ...