Questions tagged [pattern]

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 [tikz-pgf] and [pstricks] - please also use the corresponding tag.

Filter by
Sorted by
Tagged with
1 vote
1 answer
77 views

Two-color fill pattern with continuous diagonal lines with TikZ

I'm trying to create (with overleaf) a two-color fill pattern with continuous diagonal lines. I have copied most of the code from here (many thanks to the stackexchange community). However, my result ...
user avatar
  • 13
5 votes
1 answer
162 views

writing in Meander / Greek Key pattern

a longtime listener, first time caller here. I am wanting to set some text into a Meander aka Greek Key (image below), i.e. so that instead of the usual horizontal lines of text, the text moves ...
user avatar
7 votes
1 answer
129 views

How to tile brick on the parabolic cylinder

I want to draw the brick kilns as below picture. Please help me tile brick on the parabola cyclider wall. Thank you in advance! MWE is \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{3d,...
user avatar
1 vote
1 answer
66 views

Gantt bars with multicolour diagonal stripes

I have used pgfgantt to produce a simple Gantt chart for the work packages of my project: \documentclass{article} \usepackage{pgfgantt} \begin{document} \begin{ganttchart}[expand chart=\textwidth]{1}...
user avatar
  • 2,892
9 votes
2 answers
202 views

TikZ - Line join and line cap in a pattern

is it possible to modify the line join and line cap when defining a pattern? I tried for example the commands \pgfsetroundjoin \pgfsetroundcap but it does not work. Here is what I get: \documentclass{...
user avatar
  • 387
1 vote
0 answers
53 views

Fill and pattern rectangle with TIkz [duplicate]

I am trying to fill and pattern my rectangles with either dots or dash line dense. But this code generates a rectangle with dash line whose space is somehow large. How can I fill them more dense via ...
user avatar
  • 11
1 vote
0 answers
19 views

Hyphenation pattern file format [duplicate]

If I open a pattern table, the first line looks like: 2 2 .aa6l .ab3a4s What does the numbers mean and the rest of the file?
user avatar
0 votes
1 answer
357 views

north east lines pattern on function using Tikz

Patterns works nice with plane line made with a simple \draw command, when the \draw is a plot function the pattern does not work as I espect This is my code \documentclass[border=1pt]{standalone} \...
user avatar
2 votes
1 answer
417 views

TikZ: set the line width of the pattern

Is there an easy way to control the line width (and inevitably the line distance) of a pattern decoration? I want a uniform line hatching, e.g. red / blue, with line width, say 3mm. BTW: I need this ...
user avatar
  • 6,323
4 votes
2 answers
326 views

Tikz : Customize dotted line on a portion of the segment

I am looking to change the pattern of a segment in the middle of it or after a predefined distance in cm or pt for example. I have tried to look at the draw pattern but without finding any good ...
user avatar
  • 65
0 votes
1 answer
85 views

Pgfplots/Tikz : How to reproduce the same graphic?

I am trying to reproduce the same graphic as below in Latex : For the moment the best result I got is the following: I cannot find a solution to put more space between the patterns lines and I have ...
user avatar
3 votes
2 answers
1k views

Background pattern for equations (to defeat PhotoMath)

I'm a math teacher and I'm dealing with the problem of doing math tests with my students at home. I recently found out that there are certain background patterns that can prevent apps like PhotoMath ...
user avatar
1 vote
1 answer
46 views

Check if macro argument is a tikz pattern

Is it possible to check if a given argument is a defined tikz pattern (using the pattern library)? I'd like to have a macro \IfPatternTF{#1}{executed if #1 is a pattern}{executed if #1 isn't a ...
user avatar
0 votes
0 answers
136 views

Guitar Strumming Pattern in Latex

I want to make a guitar song book with Latex and i would like to add some Strumming Patterns. Do anybody have a idea how to make Strumming Pattern with the Arrows up and down and the numbers under ...
user avatar
0 votes
2 answers
99 views

Creating a fill pattern for a parabolic plot

For the parabolic plot shown in the MWE below. I need to replace the fill pattern (represented by the blue lines) with arrows pointing downwards towards the black line. \documentclass{article} \...
user avatar
  • 733
-1 votes
1 answer
447 views

filling the area under a plotted function in tikz

For the shown MWE: I need to fill the area under the function plotted in tikz using the "Plot Command". However, using the "Fill" option in the "Draw command" does not ...
user avatar
  • 733
2 votes
1 answer
569 views

Diagonal Tikz patterns

Could somebody please help me? The north east and north west lines aren't working how I thought they would as it's just showing lots of little lines. I found this workaround which works perfectly. The ...
user avatar
0 votes
2 answers
140 views

How can I overlap patterns in a Venn diagram legend?

I've drawn a Venn diagram using tikzpicture, with different patterns filling the different circles. I've also used a matrix to draw the diagram's legend off to the side. It's easy enough to create ...
user avatar
1 vote
1 answer
193 views

Hatching Shear and moment diagrams using Stanli package in 2D and 3D

Regarding drawing internal force diagrams through the use of the Stanli package. The following parameters are required for 2D internal forces command: Start point End point Value at start point Value ...
user avatar
  • 733
1 vote
1 answer
464 views

How can I fill a tikzpicture "fill" with a pattern?

I'm using the following to generate a Venn diagram, per the example here: \documentclass{book} \usepackage{pgfplots,tikz} \usetikzlibrary{patterns} \begin{document} \begin{center} \begin{tikzpicture}...
user avatar
1 vote
1 answer
99 views

I would like to know how to use two variables in a foreach loop

In the picture LaTeX does what I want, but only for a little bit. I would like the arrows to go all the way to the middle of the circle but decreasing in length as they go down. Here is my code. I get ...
user avatar
3 votes
2 answers
247 views

TikZ: offsetting a fill pattern

TikZ provides fill patterns (section 15.5.1 in the docs). Instead of filling a path with a single solid color, it is also possible to fill it with a tiling pattern. Imagine a small tile that contains ...
user avatar
1 vote
0 answers
66 views

How can TikZ patterns be programmatically aligned for all shapes which use a pattern?

Very similar to Correcting TikZ pattern offsets but I couldn't figure out how to do this programmatically. Specifically, I have some nodes I'd like to use arbitrarily in text, formulae, figures, ...
user avatar
  • 21
3 votes
1 answer
220 views

Horizontal gap between side-by-side tcolorbox environments

I'm trying to create a modern layout for my CV using the tcolorbox package. Here's what I've accomplished so far: \documentclass{article} %%% \usepackage{geometry} \geometry{ paperheight=842pt, ...
user avatar
2 votes
1 answer
1k views

Tikz pattern fill

I am using tikz for the first time and I don't know how to make this image. I can make the outline but not the patterned fill for the partial rectangle. What I want is: What I can make is: Here is ...
user avatar
2 votes
1 answer
967 views

How to get a tikz-pattern transparent?

I would like to draw an orange box with green diagonal stripes in it, where the whole thing should be a bit transparent. I used this as a baseline for creating the pattern. Now, I'm wondering, why the ...
user avatar
15 votes
1 answer
2k views

Correcting TikZ pattern offsets

I have some automatic placed nodes which should be filled with a pattern. However, I noticed that the pattern offset depends on the node position, which makes the nodes looks different. Minimal ...
user avatar
0 votes
0 answers
31 views

Grid pattern parallel to borders [duplicate]

Attempting to reproduce this picture from an old book (sorry for the resolution) I used tikz's patterns library to generate the grid, which provides an honorable result. However, with the default ...
user avatar
  • 8,479
3 votes
2 answers
137 views

Path decoration disappears when adding a pattern

I would like to fill the area under a curve with a pattern. The curve has arrows as decoration. Filling the area with a color works fine. If I replace the fill with a pattern the arrow decorations ...
user avatar
  • 1,742
11 votes
3 answers
974 views

TikZ: How to draw a pattern at the border of a not closed tikz path

"Based on the solution provided at TikZ: How to draw a pattern at the border of a tikz path I was able to do all the graphics in my thesis, except for one shape. As you can see in the graphic" ( ;-) ...
user avatar
  • 1,971
1 vote
1 answer
64 views

Diamonds pattern between two functions

I would like to have a diamonds pattern (or another pattern between) the two red functions. Additionally, it would be great to have the dotted line style of $H_{S_2}(\beta)$ represented at the left of ...
user avatar
  • 521
6 votes
1 answer
575 views

Custom hatched pattern imitating hand drawing

Following this great question, I have been drawing a picture that simulates hand drawing. I want to fill some solids with a simple hatch pattern, however I don't know how to apply the path decorator ...
user avatar
  • 442
8 votes
1 answer
2k views

Tikz diagonal filling pattern

I would like diagonal line pattern and I also found it in the documentation, but something goes wrong: The two pattern should consist of solid lines in two directions. MEW: \documentclass{article} \...
user avatar
  • 1,285
0 votes
0 answers
150 views

Tikz How to set the default arrow color and size?

I can use \tikzset{every node/.style={red, draw=none}} to set defaults for nodes but how do I do it for arrows. I would like to be able to set defaults for thickness and color so I do not have ...
user avatar
3 votes
1 answer
307 views

Pattern cut out areas again with even odd rule

I have a litle trouble with the "even odd rule". I would like to draw the picture below which isn't the problem. The problem is, that i would need to have the little white spots, where the "hobby-line"...
user avatar
  • 105
1 vote
1 answer
335 views

Filling Text with Pattern

Text can be colored: \documentclass{standalone} \usepackage{xcolor} \begin{document} {\textcolor{green}{\Large I}} \end{document} Areas can be filled with patterns: \documentclass{standalone} \...
user avatar
3 votes
1 answer
111 views

Is it possible to pattern the outside of an open polygon?

I read this answer and learnt about the pattern command. My question is simply the following: given the scenario in the linked answer, is it possible to generate the same pattern on the other side of ...
user avatar
  • 831
2 votes
1 answer
119 views

Pattern syntax using luacode

How can I find characters that are not curly braces? If I use this pattern "[^}]" in string.gsub I get an error. EDIT: This is the part of the code that doesn't work: \usepackage{luacode} \begin{...
user avatar
14 votes
3 answers
1k views

Creating patterns

Using north east hatch from the answer to this question Filling rectangle in TikZ with more than one color I wanted to make a north west hatch. However, it has funny teeth I do not know how to get ...
user avatar
  • 5,473
2 votes
1 answer
230 views

Plot a graph above a curve with vertical lines as pattern

I want to plot the graph of a function (say a sine) on a curve, that is to say, plot the graph above a straight line then distort it into a given curve. Here's a minimal example : \documentclass[...
user avatar
  • 281
1 vote
1 answer
459 views

Grid in pattern in TikZ

Referring to the answer in How do I fill this area with inclined parallel lines , the pattern is generated with grid lines as well. I am not able to understand the behavior. \documentclass{article} \...
user avatar
  • 9,283
2 votes
1 answer
224 views

Hatch direction

I want to modify the hatch lines direction marked in red of the next diagram: It was obtained with the next code: \documentclass[letterpaper,11pt]{report} \usepackage[utf8]{inputenc} \usepackage{...
user avatar
  • 353
3 votes
1 answer
265 views

TikZ: How to clip out random coil fragments?

Based on this answer from marmot I am thinking about how to design a turbulent flow regime along a stream line within coarsed soil. Minimum Working Example (MWE): \documentclass[border=5mm]{...
user avatar
  • 3,458
1 vote
0 answers
67 views

TikZ: How to add fill in style of multiple arcs?

I want to visualize poured loose coarse soil. Minimum Working Example (MWE): \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0, 0) rectangle (4, 4); \...
user avatar
  • 3,458
8 votes
2 answers
914 views

TikZ: How to fill area with a special pattern?

I want to visualize a turbulent flow regime. Assumed we have a simple empty square that should be filled with a pattern. Minimum Working Example (MWE): \documentclass{standalone} \usepackage{tikz} \...
user avatar
  • 3,458
3 votes
1 answer
366 views

pattern=grid, how to simple increase grid steps

i have the following mwe: \documentclass[tikz, margin=3]{standalone} \usetikzlibrary{patterns} \begin{document} \begin{tikzpicture}[pattern color=gray!50] \node (s) [draw=gray!50, thick, ...
user avatar
  • 255k
0 votes
1 answer
2k views

Tikz custom dotted pattern

I have no idea for reducing distance of dots (lines) in tikz dotted (horizontal lines) pattern. I find some similar examples in this website (like this), but it was so complicated. Can someone give ...
user avatar
4 votes
2 answers
345 views

How to add patterns inside shapes bounded by curves?

It is easy to use patterns for nice shapes like rectangle. How to fill an area by patterns enclosed by some curves? For example I have trouble with adding pattern to the following between two arcs: \...
user avatar
2 votes
1 answer
96 views

A colored pattern but a little change to the random function in TikZ is required

Consider the following MWE: \documentclass[border=0pt,tikz]{standalone} \definecolor{elila}{RGB}{186,85,211} \definecolor{zlila}{RGB}{138,43,226} \definecolor{dblau}{RGB}{30,144,255} \definecolor{...
user avatar
  • 5,165
1 vote
2 answers
332 views

Color error by using tikz

My tags are follows: \documentclass{book} \usepackage{tikz,amsmath,caption,subcaption} \usetikzlibrary{arrows,patterns} %\usepackage{fullpage,varwidth} \tikzset{transform shape} \usetikzlibrary{...
user avatar
  • 11.2k