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.

1
vote
1answer
49 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
52 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
65 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
48 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
63 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
113 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
112 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
93 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
48 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
119 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
26 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
68 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
88 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
938 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
47 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
34 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
80 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
84 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
268 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
179 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
171 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
88 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
275 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
126 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
99 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
106 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
140 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
97 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
298 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
273 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
981 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
417 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
51 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
315 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
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
107 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
390 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
323 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
104 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
93 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
388 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
584 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
80 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
337 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
349 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
199 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
771 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
142 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 (...