The tag has no wiki summary.

learn more… | top users | synonyms

21
votes
3answers
6k views

How can I show coordinates by grid in TikZ automatically?

I have the following TikZ code which draws a grid and shows the coordinates. To display the coordinates I am using the loop foreach. \documentclass[12pt]{article} \usepackage{tikz} \begin{document} ...
21
votes
4answers
4k 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?
24
votes
4answers
3k views

How to draw triangular grid in TikZ?

Is there an easy way to draw a triangular grid in TikZ, like this?
12
votes
2answers
828 views

Background baseline grid with output routine

I am trying to get a baseline grid in the background of every page. I am using the plain format with XeTeX. This is what I have tried: \baselineskip=13pt \topskip=0pt \parskip=0pt \newbox\gridbox ...
5
votes
1answer
979 views

Is there any way to remove mesh lines completely in a pgfplots faceted 3d plot?

I can not seem to find the way to remove the lines in the surface mesh in a 3d faceted plot. I need a solution that does not use the "shader=interp" (i.e. gradient filling) so that the faces are ...
10
votes
3answers
1k views

Drawing a tree of grids

I need to draw a game tree that is similar to the image below. Is there any way to do this using the Tikz package so that the grids can simply be added as nodes?
6
votes
1answer
587 views

Grid missing horizontal lines

The following code: \begin{figure}[!t] \centering% \begin{tikzpicture}[xscale=1,yscale=1,auto, inner sep=0pt,remember picture] \node[anchor=north west,inner sep=0] (image) at (0,0) ...
24
votes
8answers
1k 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] ...
20
votes
2answers
2k views

Tikz Polar Grid

I'm working on a Smith Chart using TikZ. Currently I'm writing it with everything scaled to a unit circle (centered on 0,0 with a radius of 1) without units. Then scaling so it's a reasonably sized ...
12
votes
2answers
939 views

Missing TikZ grid borders

As in here, the code \draw[step=0.5cm,color=gray] (-1,-1) grid (1,1); gives me a nice finite 4x4 grid. But when I choose a different starting point, like \draw[step=0.5cm,color=gray] (2,2) grid ...
6
votes
1answer
348 views

Creating a grid which fills available text area on a page in ConTeXt?

I have some pages containing only a small paragraph at the top and a large empty area where readers can add notes or draw, e.g.: _______________ | | | This is some | | text in a pa- | ...
12
votes
1answer
5k views

Change the appearance of grids in pgfplots

I am asking if there is a command in the pgfplots package that changes the appearance of the grid in terms of kind of the lines. What I mean is how to change the kind of lines. I have read the ...
10
votes
3answers
234 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 ...
9
votes
3answers
417 views

uneven line spacing

This is something that is already annoying me for quite a while. (I use LuaLaTeX) The line spacing of the Arabic text is uneven (see pic and/or MWE below). In particular, I think, lines 2, 7, and 10. ...
5
votes
2answers
1k views

how to draw a hexagonal grid with numbers in the cells

The problem of drawing hexagonal grids has been discussed here: Drawing Hexagons I want the shape of the grid to be hexagonal and furthermore, I want to be able to add numbers in the hexagonal cells. ...
10
votes
1answer
776 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 ...
8
votes
1answer
658 views

Canvas transformation of grid to curvilinear grid

I would like to draw a curvilinear grid/mesh like this (sorry for freehand drawing) I thought the easiest (and most elegant) solution would be to apply a canvas transformation to a regular grid in ...
2
votes
1answer
74 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 ...