The tag has no usage guidance.

learn more… | top users | synonyms

4
votes
1answer
84 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
63 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 ...
4
votes
1answer
100 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
80 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
101 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
62 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, ...
0
votes
0answers
12 views

How do i get the grid to start exactly in the upper left corner of the page? [duplicate]

I'm using page relative positioning in tikz to draw a grid to can verify that my elements are at the right places. However, the grid does not start in the corner, which is what i intended. What's ...
6
votes
1answer
165 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
3answers
197 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} ...
2
votes
1answer
177 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] ...
2
votes
1answer
270 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
298 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 ...
1
vote
3answers
319 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 ...
0
votes
1answer
91 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
75 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} ...
28
votes
8answers
2k 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
153 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
1k 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 ...
10
votes
3answers
317 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 ...
6
votes
0answers
60 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 ...
9
votes
2answers
9k 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 ...
2
votes
1answer
289 views

Grid of colorful boxes with shade

How can I reproduce this in Latex?
6
votes
1answer
226 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
2answers
117 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
466 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
136 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
437 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 ...
4
votes
1answer
1k 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 ...
4
votes
0answers
394 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 ...
9
votes
1answer
214 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
675 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 ...
5
votes
2answers
1k views

Tikz and pgf: Grid of Dots with Text and Circles

I wish to have a grid of points or dots along with the labels, and combine them into a single figure like the one below. I tried the closest graph I can for the first grid in the top left, and ...
15
votes
1answer
8k 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 ...
6
votes
2answers
1k views

Small grid with no labels

How do I remove all labeling from a small grid to be used for a math test? I have created the grid with \graphpaper but get coordinate labels that I don't want.
10
votes
1answer
937 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 ...
3
votes
1answer
793 views

How to only draw grid lines for ticks with labels in pgfplots?

I'm using the dynamic dict from mail-archive.com It generates automatically the data for the x axis. I want only every second (or every third, ...) tick and grid line. I've already managed to omit ...
5
votes
2answers
2k 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. ...
5
votes
1answer
1k 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 ...
6
votes
1answer
410 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- | ...
6
votes
1answer
683 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) ...
3
votes
1answer
533 views

Changing grid size in tikz-timing package

The grind in the figure contain a grid of 2x8 squeezers (2 rows and 8 columns) and I use 4 elements. How could I tell tikz-timing to use a grid of 1x4 squeezers? Below is an example of my code: ...
3
votes
1answer
310 views

Best way to create a photo directory?

I'm trying to use LaTeX to create a photo directory. On a given page, I want it to have a grid of photos (which are of varying aspect ratios) with the information for that person above/below the photo ...
3
votes
1answer
464 views

Grid customized

I would like to build a grid such as the figure shown below where each grid point is surrounded by some of the two curves that describe below. First curve: an outline around the point forming a ...
8
votes
1answer
728 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 ...
13
votes
2answers
950 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 ...
25
votes
3answers
8k 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} ...
16
votes
5answers
1k views

TikZ Grid Without Edges

I have a TikZ grid \draw[step=0.5cm,color=gray] (0,0) grid (3.5,3.5); But I'd like to draw the grid without edges, or with half of the edges cells missing, so that it appears to be a small section ...
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 ...
4
votes
3answers
3k 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.
3
votes
1answer
607 views

How can I create an angled grid in a 2D PGFPlots plot?

Is it possible to make PGFPlots display 45° height lines in an axis? Basically, what I am looking for is a grid defined by y=-x + k*1000, k being a natural number. My numbers are rather large, e.g. y ...