The tag has no usage guidance.

learn more… | top users | synonyms

2
votes
0answers
39 views

Move grid lines to background in tikz

I'm using matlab2tikz for exporting Matlab plots to tikz which works very well. I have now made a plot with grid lines, unfortunately the grid lines are in the foreground, i.e. in front of my plot. ...
2
votes
1answer
60 views

Grid for logic grid puzzles

I'm looking for a way to draw the grid for a "logic grid puzzle". There is a package called "logic puzzle" but that doesn't seem to include this type of logic puzzle. Any idea(s)?
6
votes
1answer
58 views

Shading grid which is fully inside slips

I have an ellipse drawn over a grid of small square, I need to shade those square in which are fully inside the ellipse, is there is way to do it without trying to shade one by one for each square? ...
7
votes
2answers
203 views

Drawing an animated distorted grid

I would like to draw some kind of wraped grid with a possible animation. I split my problem into two questions, the first one being more important than the second one. For the few mathematical formula ...
6
votes
2answers
180 views

Drawing percolation configuration with TikZ

I am trying to draw a site/bond percolation configuration. For the site percolation, which seem the easier one to draw, I was trying this probably too naive code: \documentclass{standalone} \...
1
vote
1answer
60 views

How to draw (major) grid lines only at specified positions?

How to draw (major) grid lines only at specified positions, such as x=0, x=2 in the following MWE@ShareLaTeX (readonly now)? \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{width=7cm,...
2
votes
3answers
309 views

Plotted line in tikz stops in middle of grid

The plotted line stops and doesn't go on till the border of the grid: This is my code: \documentclass{article} \usepackage{tikz} \usepackage{amsmath} \begin{document} \begin{tikzpicture}[...
7
votes
1answer
197 views

Generating grid in a box

I'm using the following preamble \documentclass[10pt]{article} \usepackage{graphicx} \usepackage{colortbl} \usepackage[table]{xcolor} \usepackage[many]{tcolorbox} \usepackage{XCharter} \usepackage[...
2
votes
1answer
80 views

Grid a single page

Based on this, I'd like to grid a single page using the grid style provided in the link. (Note that I don't want to grid the whole pages, just the one I want to.)
0
votes
1answer
60 views

grid of anchors within a hexagon

So I have a base shape I am beginning to work with, which is just a regular polygon shape from shapes.geometric. How do I create a grid of anchors within this shape? I know that it is just math + pgf ...
0
votes
0answers
99 views

3D spherical grid in tikz

I am trying to draw a 3D sphere with TikZ by modifying the "seismic" example from here: http://www.texample.net/tikz/examples/seismic-focal-mechanism-in-3d-view/ This is what I have now: https://www....
1
vote
1answer
47 views

Variant irregular size grid layout

I am currently preparing for an exam to which we are allowed to bring 1 sheet of paper. Naturally, I want to fit as much information as possible on it. The information that I need are a bunch of (...
3
votes
3answers
75 views

How to conditionally color nodes in a grid with a style

I have 3 styles called S1, S2 and S3. I want to conditionally color the nodes. I tried the \ifnum with no luck. You can see the single line of code that has been commented out. That is what I ...
3
votes
1answer
72 views

How to draw a grid with center label and north east label

I would like to implement this picture. The label in the center is arbitrary, but the label in the northeast corner is an ascending integer. My MWE was the best I could do. Here is my MWE. \...
1
vote
2answers
175 views

Mcq Answer Grid

I'm trying to create beautiful Mcq (Multiple Choice Question) Answer Grid so could someone help me please to improve it with the following needs: Add Arguments to get automatic row-column numbers in ...
1
vote
2answers
84 views

How to create a grid with a single letter in each cell and numbers on top to correspond to position?

0 1 2 3 R R R R *¯¯¯*¯¯¯*¯¯¯* * a | b | c | *___*___*___* L L L L I would like to create a grid similar to the one above, it would be a grid with a single letter per cell and at ...
2
votes
2answers
817 views

How can I fill the grid cell with color in this grid?

I have got a grid which looks like this \tdplotsetmaincoords{60}{125} \begin{tikzpicture} [tdplot_main_coords, grid/.style={very thin,gray}] \foreach \x in {-2.5,-2.25,...,2.5} \...
30
votes
8answers
4k views

How to draw triangular grid in TikZ?

Is there an easy way to draw a triangular grid in TikZ, like this?
5
votes
1answer
638 views

Minor grid in pgfplot not showing when specifying ticks manualy

Firstly I would like a minor tick between every major tick in my pgfplots graph (and minor grids). I wrote minor tick num=1 but it doesn't work. I am not using a logarithmic axis so it is unrelated to ...
3
votes
2answers
165 views

Displaced lines in grid with tikzpicture

I am having troble making a grid with tikzpicture. The vertical and horizontal lines are somewhat displaced. This is similar to TikZ not drawing some lines in grid. I have been fiddling with adding ...
5
votes
1answer
171 views

Pgfplots grid lines to terminate at integer boundaries

Is there a pgfplots styling that I can use to get the grid lines to stop at integer boundaries and not extend from xmin ... xmax (and ymin ... ymax)? The desired output is shown on the right, which ...
2
votes
1answer
116 views

Tikz, can I have multigrids inside a table or matrix?

I'm in charge of a mini-shop in my dorm, we need some accounting system. People pay with credits. Usually it is done in paper, people take a beer and draw a line out from their name-row and the beer ...
0
votes
1answer
409 views

Horizontal grid lines

I have a problem with horizontal grid lines in a graph (I am trying to overlay a 1cm x 1cm grid to my pages, and stumbled upon this in the process): \documentclass{standalone} \usepackage{tikz} \...
3
votes
1answer
140 views

pgfplots: select number of divisions

I'm not stuck to using pgfplots to produce this, so feel free to offer suggestions. For my exam papers, I want to provide the students with blank semi-log grids to do hand plots. (To be specific, ...
10
votes
2answers
17k views

Arranging multiple plots in a grid inside a figure/subfloat

I have a grid of pie charts which go into subfloats. The number is odd, and I would like to have them on a 3x2 grid, where the cell in the bottom left is empty. I have simulated this by putting an ...
6
votes
1answer
231 views

How to fit characters (numbers) into a graph paper?

I want to print some calculations into a graph paper (just some easy calculations like adding some numbers...). An (ugly) example with a tabular: \begin{tabular}{|*{10}{r|}}\hline & & &...
2
votes
1answer
272 views

Trimming TikZ grid

I have the following picture: obtained from: \begin{tikzpicture} \draw (0,0) grid (4,4); \draw[invmidarrow=0.5] (0,0) to[out=110,in=250] (0,2) (0,2) to[out=70,in=190] (1,4) (1,4) to[out=10,in=170] ...
3
votes
1answer
667 views

Drawing grids filled with random selected colors and connecting them

What I'm trying to do is to draw to 4 x 4 grids side-by-side to represent the concept of bootstrap, from statistics. So, what I would like to do is to draw them and fill each cell of each grid with a ...
1
vote
1answer
445 views

Mapped grid color for pgfplots colorbar

I am trying to use a variation of the mapped color for a prepared contour plot. The line color is correctly adjusted using draw color=mapped color!50!black, but I am unable to use the mapped color ...
12
votes
3answers
387 views

Drawing a background grid based on \linespread value

I’m trying to help a friend set an Arabic book in LaTeX and I’m facing this very same uneven line spacing issue (except that the book is completely in Arabic). Now I’m trying to find the \linespread ...
1
vote
3answers
366 views

How to create a 32 by 32 grid?

I want to create a 32 by 32 grid as shown below. And I also want to add two labeling in x and y directions. 1) 0 - 31 (grid number) 2) 0- 1 (box unit) I a next slide I have to draw a new box ...
23
votes
4answers
6k views

Drawing hexagons

I have a case where I need to draw a hexagonal grid in LaTeX. I am considering just reading the grid from an eps file. Is there an alternative way to do it completely within LaTeX?
0
votes
1answer
154 views

Tables grid lines are not equal with columncolor

I am trying to color the background headline of my tables. I am using columncolor, which works very well, but sadly, the grid lines does not look correct. Without columncolor the grid line looks fine. ...
3
votes
1answer
100 views

Axes in the foreground with PSTricks

With the code shown below, the grid is on the foreground (one can see red lines on the labels...): \documentclass[11pt]{article} \usepackage[letterpaper, textwidth=7in, textheight=9.5in]{geometry} ...
29
votes
8answers
3k views

Creating a Polar Grid with Tikz

I am trying to recreate the following image using tikz: So far, this is my code \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[>=latex] \fill[fill=lightgray] ...
2
votes
1answer
214 views

show baseline in two columns

This is a follow-up to Drawing a background grid based on linespread value. In a two-column document, the background lines are drawn in the first column only. Is there a way to show them in both ...
6
votes
1answer
261 views

MetaPost: Non-uniform periodic tessellations

Overview Looking to create backgrounds that have regular polygons aligned to a grid. Problem The space between the polygons varies, even though the radius for the polygons has been calculated in ...
8
votes
1answer
2k views

Does pgfplots ignore the minor grid?

I'm trying to plot an easy function and I would like to enable the minor grid. But it seems that this instruction is ignored. I used the grid=both option but it has no effect. The only grid I can see ...
2
votes
1answer
359 views

Grid of colorful boxes with shade

How can I reproduce this in Latex?
6
votes
0answers
61 views

Simple way to draw Hadamard matrices (black/white grids) from external input [duplicate]

I want to draw Hadamard matrices of different sizes. This are matrices which have entries +1 and -1 (plus some other properties). Hadamard matrices are often pictured as black/white grids like I'm ...
8
votes
2answers
124 views

Use labels from file in Tikz

I want to compare data from two files in a 4 by 4 grid. The data files are like this: data1.dat: A B C D ..... data2.dat: 1 2 3 4 ......... I am able to set up the grid with the ...
2
votes
1answer
821 views

Grid and tick marks in the same PSTricks picture

Consider the following example: \documentclass{article} \usepackage{pst-plot} \begin{document} \psset{ xunit=0.05, yunit=0.003, algebraic } \begin{pspicture}(-17,-140)(213,2540) % Axes \...
2
votes
1answer
183 views

Vertical grid lines not showing when using `xticksize`

Consider the following example: \documentclass{article} \usepackage{pst-coil,pst-plot} \begin{document} \begin{figure} \centering \psset{unit=0.6} \begin{pspicture}(-2.0,-0.7)(18.2,11.2) % ...
13
votes
1answer
520 views

How does one construct an abstract (n × n) empty grid of squares?

I would like to just create a grid like this, but without numbers or color, but I'd like to represent an n × n grid abstractly with ellipses like this: Also, I need just a simple—singular—grid ...
10
votes
1answer
1k views

Missing horizontal or vertical lines when drawing backwards TikZ grids

Look at next code, when I want to draw a grid from right to left or top to bottom, vertical or horizontal lines are not drawn, even with xstep=-1 or ystep=-1 (as it's suggested in Jake's answer in ...
4
votes
0answers
472 views

Is fine-grained grid control possible? [closed]

I want to make a variety of checklists which are essentially based on a grid layout. I care about having fine-grained control over the exact placement of labels and boxes. I do not care about ...
4
votes
1answer
2k views

Different xstep and ystep in TikZ with to[path] (precisely to[grid with coordinates])

As it's my first question, I want to say hello first! I am using [grid with coordinates] code from Andrew Stacey answer (link) for How can I show coordinates by grid in TikZ automatically?. I ...
6
votes
3answers
4k views

Fill a grid with TikZ

How do I fill a grid in TikZ? I want to do something like: \draw[draw,fill=red!20] (0,0) grid (2,2); instead of manually drawing 4 rectangles.
9
votes
1answer
264 views

Loop Over Grid File

I have a grid file with data such as: 5 4 0 0 0 0 0 0 1 1 2 0 0 2 2 1 0 3 0 0 3 1 where 5 is the width of the grid, 4 is the height, and each number in the grid corresponds to an elevation. I can ...
2
votes
0answers
857 views

Off Grid Circuitikz Symbols [closed]

Shouldn't circuits line up on the grids? Otherwise, drawing code get messy -- really quick. I have found pins-to-grid alignment to be common practice in most the Schematic/Diagram programs I have used,...