about defining or using graphical patterns, which can be used to fill a path. PDF and PostScript know tiling and shading patterns. Patterns are supported by [tag:tikz-pgf] and [tag:pstricks].

learn more… | top users | synonyms

5
votes
1answer
54 views

Hatching a rectangle with TikZ leaves margin

Hej everybody! :) I'm currently taking my first steps with TikZ, and when trying to plot some simple rectangle shapes I noticed a rather weird effect that occurs when I try to fill the rectangles ...
3
votes
3answers
69 views

Is there a way to condition output on a given date?

I'd like to be able to print text that varies depending on whether the date matches a given date string For example suppose there was a command \iftoday#1#2#3 which printed #2 if \today matched ...
6
votes
2answers
96 views

Change angle of decoration or pattern along a path independently

I want to give the impression of a wall, but the diagnals i drew cross each other. I just want them to follow around the corner like pictured on the left \begin{tikzpicture}[ ...
3
votes
0answers
72 views

Fill pattern for time series with bounds (tikz pgfplots) generates corrupt PDF

I have used the answer from another post, but the generated PDF seems to be corrupted using the suggested code. This post refers to question: Fill pattern for time series with bounds (tikz pgfplots) ...
6
votes
1answer
138 views

Tessellating pattern using Tikz

I would like to regenerate the same image in a tessellating pattern My base image is what I generated from my understanding of working in a tikz environment. It is a bit verbose ...
2
votes
1answer
76 views

add a pattern on the outside of a circle (spheric mirror)

I want to make some basic drawings of optics. I've consulted pst-optics, but this very nice package was to complicated for the drawings that I need. My question is: I want to add a pattern on the ...
0
votes
0answers
25 views

My pattern with frambox--how to?

Corresponding to my previous question, how to create a page like this?, I would like to ask some more questions here. Please refer to my pattern below; Gonzalo helped me to create a pattern like ...
6
votes
2answers
209 views

A line with an angle pattern in TikZ

Is there a way to define a 90-degrees-angle pattern for (straight) lines in TikZ? The pattern should follow the line direction.
2
votes
1answer
111 views

Custom TikZ pattern not fully showing

I have the following \documentclass{article} \usepackage{tikz,amsmath, amssymb,bm,color} \usepackage[margin=0cm,nohead]{geometry} \usepackage[active,tightpage]{preview} \usetikzlibrary{shapes,arrows} ...
0
votes
0answers
135 views

Customize PGF bar chart bars

Ideally, I'd like to write a macro which specifies how to draw the bar of a PGF bar chart, given its height, width, and location. This seems nearly equivalent to asking how to specify a non-repeating ...
0
votes
1answer
98 views

Tikzpicture also scaling “dashed”, “dotted”, etc., patterns [duplicate]

I was wondering why predefined patterns like dashed, dotted, thick, etc., do not scaled when scaling the complete tikzpicture environment. Minimal Example: \documentclass{beamer} ...
4
votes
2answers
211 views

Problems with pattern color

Why in the following MWE in all shapes the pattern color is as in the first one regardless that it is defined differently? %%%% pattern-color \documentclass[tikz,border=5mm]{standalone} ...
3
votes
1answer
280 views

Coloring vs. adding a hatched pattern for table cells

I'm trying to come up with a nicely formatted work plan as a table, but the coloring of individual cells messes completely the row coloring of the table as the following code shows: ...
5
votes
1answer
218 views

How to add arrows near the plot path and fill the area under this path?

I'd like to draw a closed plot path filled with pattern and surrounded by arrows: When I used @Jake's solution to add arrows (Decorate a path with little arrows parallel to it) then the pattern ...
2
votes
2answers
213 views

How to make a legend entry image consist of line, pattern and markers in pgfplots

I'm trying to make the legend entry image look like a chunk from the "whole" of the following plot (so it has a line, pattern lines and marker). Is it really possible? I'm after an unsuccessful ...
4
votes
1answer
115 views

Declaring patterns with variables in TikZ: understanding the effect of the variables

I'm trying to understand \pgfdeclarepatternformonly from page 1064 of the TikZ manual. I'm experimenting with the rings pattern given there as an example. If I compile the example as given, I get the ...
9
votes
4answers
981 views

Filling an area with a pattern between two curves (without an equation)

How could we add the cross-and-dash pattern as the following figure? Part of my code so far is: \documentclass[12pt,a4paper]{article} \usepackage[english,greek]{babel} \usepackage{ucs} ...
2
votes
1answer
120 views

Strange characters appearing with alpha and beta [closed]

I used a python regex file to edit a section of LaTex that contained alpha and beta. Here it is: Jacobi & $\JacobiP{\alpha}{\beta}{n}@{x}$ \MarkDefn[P z 3 - ...
1
vote
1answer
175 views

Tikz pattern areas become black when printing

I'm afraid this question has been asked before, but I couldn't find it. When I have an element in a tikzpicture environment that has a hatched filling, the filling becomes black when printing. ...
6
votes
1answer
288 views

TiKZ pattern on an angle?

I would like a result similar to that provided by pattern = sixpointed stars (or fivepointed; doesn't matter), but where the underlying grid is at an angle. I understand this can't be done with the ...
7
votes
1answer
503 views

custom hatching pattern : arbitrary direction of hatching

For a kind of mathematical illustration, consider the case where several distinguishable hatchings, all black and white, and precise direction has meaning, are required. I give a simple example of a ...
3
votes
0answers
203 views

How to scale hatch in tikz figure in LaTeX?

I have ellipses with hatch. I want to use lines or bricks hatch but more rare than default. I can change spread between lines in this way Custom and built in TikZ fill patterns. It worked, but it's ...
4
votes
1answer
378 views

pgflayer: background and foreground and tikz: pattern for water

I am attempting to draw a barrel floating in water. I am trying to use pgfonlayer so that when the water line intersects the barrel, the line will be removed. Also, I looked through small section in ...
5
votes
1answer
614 views

Tikz fill double line with pattern not with color

I'd like to fill the inner of a double line path with different patterns: hatch, random dots, Poisson discs, grid. Consider following hexagon, where I would like to fill the inner of the edges. ...
37
votes
1answer
1k views

Poisson disc sampling implemented in luatex

In this answer by @Jake to the question Filling specified area by random dots in TikZ I learned about the poisson disc sampling technique to generate nice looking random patterns. Jake's answer ...
12
votes
3answers
781 views

How to have a real random pattern?

How to have a new recalculated random pattern ? this one is the same translated everywhere. Edit I perfectly understand that the pattern is calculated once and drawn several times after. My ...
27
votes
2answers
20k views

Hatch a rectangle in TikZ

I know how to make a rectangle and fill it. But what shoud be done to hatch this rectangle with thin 45 degree inclined line with 2mm gap. \documentclass{article} \usepackage{tikz} ...