Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [grids]

The tag has no usage guidance.

1
vote
2answers
47 views

Grid width not textwidth when using fillwithgrid (exam package)

When inserting space for answers by \fillwithdottedlines the resulting lines have the same width as textwidth. When using \fillwithgrid the resulting grid is smaller on both sides: \documentclass[...
1
vote
1answer
21 views

Removing vertical grid lines from graph

I am trying to remove the highlighted vertical grid lines from my graph. How would I achieve this? The following is the code I have written: \documentclass[]{article} \usepackage[margin=0.5in]{...
4
votes
1answer
50 views

Improve perspective visualization in 3d plot

I'm trying to vizualize the computation of Euclidean distance in 3d using pgfplots. This is my current attempt: \documentclass{article} \usepackage{pgfplots} \begin{document} $\mathrm{dist}(p,q) = \...
2
votes
2answers
77 views

Grid with coordinates on all sides?

This is a request for an enhancement to this fairly amazing answer by Loop Space: How can I show coordinates by grid in TikZ automatically?. This answer gives a recipe for placing a grid on a page ...
5
votes
1answer
101 views

Context: \defineparagraphs aligned to grid?

I am a beginner in ConTeXt, and I don't understand why \defineparagraphs turns off grid alignment here: \showgrid \setuplayout [grid=yes] \defineparagraphs[AntiphonNo][n=2] \setupparagraphs[...
3
votes
1answer
79 views

TikZ: help coordinate grid lines [duplicate]

When creating tikz pictures I quite often think that it would be quite useful to display a coordinate grid like this in the background of my picture in order to align certain points, lines, etc. I ...
4
votes
1answer
36 views

Drawing a sub cubic grid inside a cubic grid (with different gray scales)

This is a related but very simple follow-up to a previous question, inspired by the comment of @marmot "Or do you want to use different grays for different planes?" Here is what I have This is a 8 x ...
3
votes
3answers
98 views

How to draw a much more dense grid or lattice?

My inquiries: 1) How to draw a much more dense grid in 2-dim? 2) How to draw a much more dense grid in 3-dim? Let us say it is still 4 x 4 in 2d or 4 x 4 x 4 in 3D in size, but I want to have ...
2
votes
1answer
24 views

How can I get the captions and images aligned?

I have this code \begin{figure} \begin{tabular}{cc} \subfloat[$T_s$ = 119 Position with sine]{\includegraphics[width = 2in]{T119PosiSin.eps}} & \subfloat[$T_s$ = 118 Position with sine]{\...
1
vote
1answer
63 views

Add a grid on figures for trimming purpose (by redefining \includegraphics)

I need to (temporarly) redefine \includegraphics command for trimming purposes. This is my MWE: \documentclass[11pt]{article} \usepackage{graphicx} \usepackage[abs]{overpic} \pagestyle{empty} \begin{...
1
vote
2answers
70 views

How do I label the axis of a sinus using pi? [duplicate]

I am plotting a sinus function using a pgfplot and would like that the tick of the x axis was labeled using multiplers of pi (pi/4, pi/2, 2*pi...), for they are the "important" x values to visualize ...
15
votes
2answers
860 views

Dot grid with increasing dot size

A friend of mine asked me if it would be possible to create a dot grid with increasing dot sizes as shown in the picture (without the icons): I'm aware that there are tons of tikz-dotgrids to find on ...
1
vote
0answers
41 views

Grids in tikz taking into account page breaks

The following code creates a numbered grid with Tikz. I would like to adapt the << quadrill >> environments to the page breaks. Actually a grid can not be split in two parts between two pages. ...
1
vote
0answers
31 views

Plotting a Grid (with Graphics + Text) in TeX?

Question: Using resources from the TeX universe, what is the best way to create a graph similar to the one below (i.e., a 2x2 matrix with different images at different coordinate locations, with text ...
1
vote
1answer
71 views

Numbering in 2 Dimensional grid using beamer and dividing the slide into two halves as shown in figure

Hello, I'm trying to number the elements in the grid as follows. I'm wondering if I can get some help. Thank you. I'm confused to write the logic. \documentclass{beamer} \usepackage[english]{babel} \...
3
votes
0answers
75 views

Dot grid in latex as background [closed]

I'm trying to make a printable daily planner using Tex. This would be my first project. What I want to achieve is for all the pages to have a dot grid background with the standard 0.5 cm space between ...
2
votes
1answer
193 views

Small scale grid using Tikz

I am trying to create a grid that only has a domain between -0.8 and 0 and a range between -0.8, 0,8, with the grid not showing any positive X values. Thus far I have this: But when I try to shrink ...
2
votes
3answers
151 views

Insert grid on tikz picture with standalone

I'd like to insert a grid to fill the whole picture. I'm trying to mimic a blueprint paper. So, I have two questions: Why the use of colored rectangle change the border around picture? Why the grid ...
2
votes
1answer
130 views

grid lines - how to contain within the first quadrant

As you can see from the screenshot of the output, the grid lines extend through the tick labels. How would you keep the grey grid lines within the first quadrant? Many thanks \documentclass[]{...
3
votes
1answer
86 views

making a cartoon plot of some grids using tikz

I want to use latex to generate similar figure as following plot using tikzpicture. For instance using the example given here \documentclass{article} \usepackage{tikz} \begin{document} \begin{...
8
votes
2answers
232 views

Graph of a matrix for a 2D grid using certain discretization scheme

I have a 2D grid which will result in a sparse matrix when discretized with 2nd order central difference scheme using finite difference method (5 point stencil). Is there a way to generate a matrix ...
0
votes
0answers
42 views

Tikz grid in an environment [duplicate]

I would like to create an environment having the following role: create an exercise (called "exo" in the sequel) and a grid with a prescribed number of lines. My environment exo works fine, but not ...
0
votes
1answer
113 views

Creating a complex notation table

I'm very new to latex and trying to recreate this table from word into latex but I have no idea where to even begin. Any help would be greatly appreciated
0
votes
1answer
87 views

Grid with a number

I know how to create a grid by using TikZ and the following: \documentclass[a4paper,10pt,table]{book} \usepackage{tikz} \usetikzlibrary{arrows,plotmarks} \def\quadrill#1{\smallbreak\textcolor{gray} ...
2
votes
1answer
79 views

exam.cls package change grid color

I'd like to change the grid color in the exam.cls package. By default, it seems to be black (although in the documentation it says the default color is gray). Anyway, I would like to have a very light ...
0
votes
0answers
122 views

How do I create a “Grid layout” for my document?

Dear nerds (no offence), I am writing a laboration tutorial, and I decided to write it with a different layout than I'm used to. However, I'm having problem finding the right settings to change the ...
2
votes
1answer
81 views

PSTricks \psaxes— aligning minor horizontal grid lines

In the MWE below (a coordinate system having its first axis logarithmized), major and minor ticks misalign. I have tried to figure out which logic for I should apply for the yticksize=0 8 option, but ...
4
votes
3answers
286 views

Triangular numbers (again) in TikZ

I am trying to recreate the following diagram for triangular numbers (smaller triangles within one larger triangle) using TikZ. The colour is not important but white and grey is probably preferred. ...
3
votes
1answer
258 views

Grid typesetting

Question Is there any way to manage that text stays on the grid given by a tikzpicture? Screenshot MWE \documentclass{article} \usepackage{tikz} \usepackage{eso-pic} \AddToShipoutPicture{% \...
11
votes
2answers
896 views

TikZ grid inside a circle

any idea how I could draw an even grid inside a circle in TikZ? I could manually add invisible nodes on the circumferences and connect these with lines but there is probably a more sophisticated way ...
1
vote
2answers
395 views

Beamer presentation without stretching of vertical spaces

Currently I am updating and extending my beamer themes. Thereby I also want to solve a spacing problem, which is sometimes quite annoying. Think of the following example: \documentclass[t]{beamer} % ...
1
vote
1answer
47 views

How to make single-spaced quotation in double-spaced document using grid package

I am new user and learning. I am interested in grid layout using grid.sty and trying to get a simple two column, double-spaced document with single-spaced quotation. I did baseline fontsize=12pt and ...
5
votes
1answer
285 views

Coloring of grids in tikz

Each block in each grid need to have a tone color from the (white - black) color scheme. Hence, there will be 25 different tones of gray in each grid. The grid below the arrows will be an exact copy ...
10
votes
1answer
1k views

Drawing manifolds in tikz

I know that there are other posts here addressing this issue, but none of them really made me able to draw the picture i have added below. I'm quite new to TikZ, so I would love to get some help with ...
2
votes
1answer
106 views

I'm trying to create a pathway grid that has holes using Pascal's triangle in latex. Also the compass

The picture below gives the idea of what I'm trying to do. Also I'm not sure which tag to use for this specific question. The code I am using: \documentclass[28pt]{article} \usepackage{...
2
votes
2answers
383 views

How to draw grid by given four points in Tikz?

It is easy to draw a grid on a square if the square is not rotated. But for rotated squares it is difficult for me to grid it. I want to grid a square by given four points. for example the following ...
1
vote
1answer
296 views

Tikz create perspective grid

i was wondering how i could create a perspective 2D grid like this blue one on the left: https://tinytutorials.wordpress.com/2011/02/15/illustrator-cs5-perspective-grid-manipulating-the-perspective-...
2
votes
0answers
91 views

Representing Conway's Game of Life [duplicate]

I'm writing an article about Conway's Game of Life, and I'm using the Springer LNCS template. In my article, I must sometimes show some game of life patterns, for example the following: To generate ...
3
votes
1answer
91 views

Setting minor ticks while keeping no border

I want a grid that has no gridlines on the edges, hence I set the following code to have domains and ranges to be odd numbers. However, setting minor tick, you can see in the picture that the minor ...
1
vote
1answer
336 views

Draw a set of circles on a grid (2d plane)

I'm trying to draw a set of 64 disks on a grid 8x8. Like this figure: I have so far: I want to automate this task with a for loop for example, I dont know. See my code, this is brutal force code, ...
2
votes
0answers
544 views

How to draw a triangular mesh (unstructured grid) of an arbitrary shape using Tikz?

I would like to draw a figure that looks like this one using Tikz: This one is adapted from a book and serve here as an example. It does not have to be with the exact same boundary curves because I ...
2
votes
0answers
78 views

tcolorbox: Round height up to the next multiple of a given dimension

I have started to use the very powerful package tcolorbox. One thing I would like to achieve is producing a grid for school exercise sheets. I think am almost there. But it would be nice to create a ...
4
votes
3answers
932 views

Using Condition (If/Else) Inside Loop (For) In Tikz

In my previous post, I have asked how to use two loops to construct a grid with values inside it. A wonderful answer was given by Andrew Swann . \documentclass{article} \usepackage{tikz} \begin{...
2
votes
3answers
304 views

Printing inside Grid using Two Loops

I am trying to rearrange the value inside grid. For example, the below code \documentclass[tikz,border=7mm]{standalone} \begin{document} \tikz\draw grid(4,4)foreach[count=~]\l in{1,...,16} {({....
2
votes
1answer
301 views

Set grid width when using fillwithgrid (exam package)

How can I set the width of the grid that is displayed with the command \fillwithgrid{50mm}? I am using questions with parts. The grid always gets the current text width, so assuming I have question 1 ...
3
votes
1answer
191 views

tizk well formed grid on a page

How to draw a well formed grid absolutely positioned on a page with tikz? Each of the following pages has some problem. Is there a rounding error somewhere? \documentclass[a4paper]{article} \...
3
votes
4answers
700 views

Drawing a Ferrers diagram

Probably as easy question, I know. But how do I draw something like this: I know how to draw a 5x5 grid, but I'm not sure how to remove squares from it. Thanks!
1
vote
1answer
133 views

draw a Grid line on each and every baseline and every page (throughout the file)

How to get the Grid lines on the every baseline and every page, like the below image, is any packages are available to get the desired output? also suggest How to typeset the text on the grid lines (...
4
votes
0answers
527 views

Replicating engineering computation pad

Motivation: I am starting some engineering courses, and we are required to work out our problems on engineering computation pads. I find that a majority of the time I spend on my homework problems is ...
2
votes
2answers
179 views

How to show headers on a grid made with TikZ?

I am trying to create a Markov Map, as described by Dias & Vermunt 2007 in Fig. 2. http://members.home.nl/jeroenvermunt/dias2006c.pdf Here is the figure: So far I have tried using grids for TikZ,...