Questions tagged [pgflayers]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4 votes
1 answer
117 views

Bringing an image to the front

I am trying to recreate diagrams like the screenshot below. However, when I do it in tikz, it seems to place it in the background or somewhere behind the triangular lines. I've tried placing the code ...
user avatar
3 votes
2 answers
188 views

Projected square magnified image using tikz

Is there a way to achieve magnification like the one shown below using Spy library in TikZ? If so, how to achieve it? If not so, what better alternatives are there? The thick yellow outlines below are ...
user avatar
  • 1,177
1 vote
1 answer
45 views

Tikz: how to avoid conflicts with layers between library and user

In tikz a user would declare new layers using: \pgfdeclarelayer{foo} \pgfdeclarelayer{bar} \pgfsetlayers{foo,bar} My library needs to declare some layers (just 2 for now), but I'm afraid to have ...
user avatar
  • 5,093
2 votes
1 answer
179 views

Tikz Picture Behind Text on Page

I thought I'd seen an answer to this a while ago, but I can't find it now. I have a document with some variable text that I want to draw a TikZ picture behind based somewhat on a dimensions of the ...
user avatar
  • 48.9k
0 votes
1 answer
88 views

Tikz spy connection path double line pgf layer problem

I am using the spy library of the tikz package in order to magnify a part of an image. However, since my image is multicolored, I would like to use a double line to improve the contrast marking the ...
user avatar
  • 155
2 votes
1 answer
139 views

pgfplots: how to bring all node plot annotations to top in proper way?

I'm plotting many almost parallel lines (in the MWE I'm just plotting random stuff), where I am using the very convenient node[pos=0.x]{label} option to annotate my graph. The issue is, that multiple ...
user avatar
3 votes
1 answer
312 views

Tikz draw on layer stack from top to bottom (reversed order)

In Tikz, I would like to have a command \StartDrawOnBottomOfLayerStack to draw all following elements on bottom of the bottom layer of the picture. That means following nodes and paths appear behind ...
user avatar
  • 758
0 votes
1 answer
47 views

Curves extends beyond the axis limits when plotting on added layers

I have encountered some problem while I was trying to change curves displaying order and at the same time maintaining the legend entries order. The curves order was changed as expected, however, they ...
user avatar
  • 75
0 votes
1 answer
157 views

TikZ: Page with several grids

I want to create a worksheet like that on a DIN A4 paper (21cm x 29.7cm): The margins round about should be something like 15mm (plusminus); the main thing is that I get as many grid-boxes as ...
user avatar
  • 6,303
2 votes
3 answers
752 views

tikzpicture behind text

Is there a way to push a tikzpicture behind text? MWE: \documentclass{article} % -- packages \usepackage{tikz} \usepackage{pgf} \pgfdeclarelayer{background layer} \pgfdeclarelayer{foreground layer} ...
user avatar
  • 147
2 votes
2 answers
259 views

Rectangle over Tikzpicture with independent positioning

I think my problem is very simple, but yet I haven't found an apropriate solution. I want to have a tikzpicture which will on the next slide be overlayed by some other content tikz content. For ...
user avatar
  • 305
2 votes
1 answer
278 views

Use custom layers with fillbetween

I would like to have two layers behind the background layer: waybackgroundlayer and boundingboxlayer and also use the fillbetween. The MWE below uses \AxisEnvironmentFig to graph the curves. The * ...
user avatar
0 votes
1 answer
275 views

fill between and axis on top causes title to be behind grid lines

I want to color an area between two plots using the fillbetween library. Additionally, I want my grid lines on top of the plot (i.e. "axis on top", like in pgfplots' area style; I can't use area style ...
user avatar
0 votes
1 answer
181 views

Tikzpicture / PGF layers rendering in the margin

Alrightly folks, I have one that has stumped me thoroughly and hopefully one of you beautiful brilliant people can help me out. I am attempting to use tikz/pgf to enable me to use absolute ...
user avatar
3 votes
2 answers
984 views

How to generate a node that is always on top in TikZ?

I have the following code, but the node is always hidden by the vertical line. How can I solve this (world and first are hidden by the vertical line)? \documentclass[]{article} \usepackage{...
user avatar
  • 215
2 votes
1 answer
1k views

TIKZ Matrix nodes filled with colour afterwards and set to background

I have a (maybe easy) problem in formatting a matrix in tikz. In the first step I ordinary filled my matrix with nodes inside the matrix environment. After finishing my matrix I use the fit ...
user avatar
  • 1,213
0 votes
1 answer
108 views

boxed Flowcharts

i want to draw a tikzpicture like this: i tried using the following packages: layers, matrix, fit+background but i am pretty new to tikz and can't make it work the initial idea was to draw the boxes ...
user avatar
  • 1
1 vote
1 answer
524 views

Beamer overlay and Tikz onlayers issue

The angles should appear on the second slide, but they don't. \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{angles} \pgfdeclarelayer{background} \pgfdeclarelayer{foreground} \...
user avatar
  • 16.4k
1 vote
0 answers
192 views

pgfplots: Put xlabel on layer below axis line

Based on How do I make label (node) to appear in front of markers in pgfplots?, I would like to put the xlabel on a white background on a layer above axis grid and below axis lines. I guess this ...
user avatar
  • 1,567
15 votes
1 answer
6k views

PGFPlots: Understanding how to draw plots on different layers and arrange them

I have gone through previous questions [1,2,3], but I still couldn't figure out how to draw plots on different layers and change their order of drawing. For this MWE, I would be grateful if I could ...
user avatar
  • 8,779
2 votes
1 answer
233 views

Tikz-Uml hidden lines

I have problems with drawing an use-case diagram with tikz-uml. There is no problem if I only use tikz-uml, but if include the smartdiagram package too. I've had some errors telling me that the ...
user avatar
  • 135
6 votes
3 answers
938 views

TikZ: Place different elements of a same path on various layers

I have different elements (say, a node and a filled circle) defined using a single path: \path (0,0) node [blue] {some text} [fill, red] circle [radius = 1]; Issue: I would like to put one ...
user avatar
  • 10.9k
5 votes
1 answer
1k views

pgfplots layer issue

I'm trying to define my own layer set which enables plots above gridlines, but below the axis lines, ticks, etc. I've made the MWE based on chapter 4.27.2 of the pgfplots manual. However it's not ...
user avatar
  • 2,263
3 votes
2 answers
227 views

Putting node content over a node label

I use labels to place icons within my TikZ pictures: \begin{tikzpicture}[ switch/.style={label=center:{\includegraphics[width=1.5cm]{switch.png}}}, cloud/.style={label=center:{\includegraphics[...
user avatar
2 votes
1 answer
456 views

Ticks vanish in pgfplots if groupplot is combined with set layers and axis on top

I am trying to use set layers to get the grid behind the tick labels and axis on top=true to get the axis on top of the plot lines. If I use these settings in a groupplot neither the ticks nor their ...
user avatar
  • 848
3 votes
2 answers
958 views

How to have an invisible layer in tikz?

Back in the day (2014), I've had some code posted in Drawing a styled node invisibly (phantom / off-screen)?, which is reposted below. Then it apparently compiled; with my current texlive 2014 (...
user avatar
  • 16.4k
8 votes
1 answer
569 views

Problems combining clip, layer and pic when multiple instances are included in the same tikzpicture

I'm having trouble figuring out how I am supposed to combine (or if I am supposed not to combine) pics, clipping and layering when more than one instance of a pic is included in a single tikzpicture ...
user avatar
  • 183k
4 votes
1 answer
524 views

How to set node on line on a different layer than line?

Is it possible to declare, that node on lines are on the main layer regardless that lines are in background layer? For example: With the following MWE: \documentclass[12pt,tikz,border=3mm]{...
user avatar
  • 255k
3 votes
1 answer
130 views

Why the background of a pgf fitting node with minimum width equal to another (backgrounded) fitting node's width is shifted?

I have two pgf fitting nodes: one below the other, left aligned, with different (unpredictable) widths, and I'd like them be backgrounded, with backgrounds of the same width. For this, I got help ...
user avatar
3 votes
1 answer
3k 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 ...
user avatar
  • 17.9k