Questions tagged [pgflayers]
The pgflayers tag has no usage guidance.
36
questions
2
votes
2
answers
52
views
Draw edges in background of transparent nodes
This question is an extension of this one.
That question is about drawing a path in the background of nodes. There are three nodes equally separated on a line, and there is a straight line connecting ...
3
votes
1
answer
46
views
pgfplots: Problem with layers when plotting single point
I've encountered a problem in which plotting a single point does not respect user-defined layers. Take the following MWE:
\documentclass{standalone}
\usepackage{pgfplots}
\usepackage[active,tightpage]...
2
votes
0
answers
79
views
HPGL from LaTeX / TikZ
I want to generate HPGL code for my HP pen plotter from my TikZ figures. Has anyone ever done something similar?
My current approach is to import the pdf into Inkscape and let Inkscape generate the ...
1
vote
2
answers
99
views
how to center a a tikz over another tikz
I would like to center the pi symbol in the spiral of the digits of pi.
And would like to know if its possible to change the color of the digits under the pi symbol? as it stands I have the digits ...
3
votes
1
answer
99
views
How to put this object behind everything else?
Is it possible to put the rectangle with color gradient under everything else ?
\documentclass[11pt]{article}
\usepackage{pgfplots}
\usepgfplotslibrary{colormaps}
\pgfplotsset{compat=newest}
\begin{...
0
votes
2
answers
166
views
Change the background color of Tikz nodes?
I'm using the fit option to draw a rectangle that fits a few nodes
but when I add the fill option to change the color of this rectangle
the nodes inside disappear.
\documentclass[border=10pt]{...
4
votes
1
answer
385
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 ...
3
votes
2
answers
321
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 ...
1
vote
1
answer
89
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 ...
2
votes
1
answer
737
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 ...
0
votes
1
answer
143
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 ...
2
votes
1
answer
281
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 ...
3
votes
1
answer
690
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 ...
0
votes
1
answer
75
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 ...
0
votes
1
answer
230
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 ...
2
votes
3
answers
1k
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}
...
2
votes
2
answers
429
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 ...
3
votes
1
answer
498
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 * ...
0
votes
1
answer
402
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 ...
0
votes
1
answer
235
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 ...
3
votes
2
answers
1k
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{...
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 ...
0
votes
1
answer
115
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 ...
1
vote
1
answer
631
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}
\...
1
vote
0
answers
269
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 ...
17
votes
1
answer
8k
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 ...
2
votes
1
answer
256
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 ...
6
votes
3
answers
1k
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 ...
5
votes
1
answer
2k
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 ...
3
votes
2
answers
260
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[...
2
votes
1
answer
523
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 ...
3
votes
2
answers
1k
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 (...
8
votes
1
answer
623
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 ...
4
votes
2
answers
817
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]{...
3
votes
1
answer
132
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 ...
4
votes
1
answer
4k
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 ...