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

0
votes
1answer
100 views

Tikz - Draw rectangle with dashed one side and hatching on the others

I need to a scheme like this one: The problem is, I have no idea how to do the dashed line on top of rectangle and the hatching in the left side and in the bottom. Is it possible with Tikz?
4
votes
1answer
82 views

Patterns in SVG

I am trying to fill an irregular 2D shape with the hatch pattern in Asymptote and output it as svg. The result is a low resolution pixelated raster image. Is there a way to produce a vector pattern ...
2
votes
1answer
48 views

pattern for pgfgantt ganttchartelements

I like to add a shading pattern for black and white printing to the foobar elements of this example code from the pgfgantt manual. \documentclass[a2paper, 10pt, parskip=full, listof=toc, ...
4
votes
1answer
128 views

Customizing Venn Diagram

For my work, I need a Venn diagram with three circles and the intersecting split into two by a line. I used an answer from Tex.SE, but I do not know how to use it to draw the intervening line, and ...
6
votes
5answers
317 views

Overwriting fill patterns in TikZ

A circle lies within a square. The square has a fill pattern, say , A, and the circle has fill pattern, say, B. I wish the two patterns not to overlap. In case this is unclear, here is an MWE: ...
5
votes
1answer
98 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
85 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
128 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
84 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
157 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
89 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
29 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
232 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
120 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
163 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
131 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
292 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
371 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
256 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
279 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
142 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
1k 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
158 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 - ...
2
votes
1answer
212 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
352 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
625 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
271 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
505 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
691 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. ...
38
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 ...
15
votes
3answers
943 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 question ...
31
votes
2answers
23k 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} ...