Stack Exchange Network

Stack Exchange network consists of 175 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.

0
votes
3answers
111 views

2d Grid with Tikz and Nodes

I'd like to create the following graph: But I can't figure it out. I'm pretty new to Tikz and nodes in general, so a simple solution is appreciated. Here is another grid but I can't figure out how ...
1
vote
0answers
16 views

Grid alignment of 4 images [duplicate]

I wanted to align the four images in a grid of 2x2, but the images are getting arranged vertically. I'm working on a template of IEEE format. This is the code that I'm working on: \begin{figure}[!tbp]...
5
votes
3answers
654 views

I drew a randomly colored grid of points with tikz, how do I force it to remember the first grid from then on?

I'm using beamer and I have a randomly colored grid (three colors, 4 x 19 grid) on the slides. Since I use the \pause command, it generates a new grid every time I click to the next point. How do I ...
1
vote
3answers
29 views

How to bring points in a tikz grid closer together/remove the space between points in grid in tikz?

So I have a grid of 4x19 points/small circles, which need to be individually colored later. It has to fit into a beamer presentation sheet, so the points have to be brought closer together. This is ...
2
votes
1answer
51 views

Tikz Mindmap, grids and 3D layers

I try to create a complex Mindmap to describe a course. However there are multiple levels of complexity i'd like to explain with multiple grids (one above/next to the other) as in Grids I tried to ...
1
vote
1answer
83 views

TikZ: Get values for predefined dash patterns for grid in the option help lines

I would like to see other similar or different ways of resizing the strokes when drawing a grid with the help lines option when a dashed pattern is used. Here's an example below. \documentclass{...
2
votes
3answers
60 views

Inset plot in pgfplots with zero opacity - mixed grids

I am trying to draw an inset within the region of a pgf plot by creating a second pair of axes, as can seen in the following code. \documentclass{standalone} \usepackage{tikz, pgfplots} \begin{...
1
vote
2answers
75 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
95 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
76 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
154 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 ...
6
votes
1answer
121 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
110 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
53 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
143 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
28 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
83 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
103 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
1k 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
53 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
35 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
91 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
90 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
299 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
200 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
241 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
93 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
312 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
139 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
126 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
127 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 ...
2
votes
1answer
114 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 ...
5
votes
3answers
309 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
286 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
1k 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
435 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
57 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
383 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 ...
11
votes
1answer
2k 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
116 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
400 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
348 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
112 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
103 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
416 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
635 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
83 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
1k 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
373 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} {({....