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

6
votes
2answers
181 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
89 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
104 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
57 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
134 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
140 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
142 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
121 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
89 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
807 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
83 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
139 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. ...
5
votes
1answer
191 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 ...
6
votes
1answer
374 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 ...
2
votes
0answers
136 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
252 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
447 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. ...
35
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
635 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 ...
24
votes
2answers
16k 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} ...