Questions tagged [pgflayers]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
And R's user avatar
  • 156
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]...
user1362373's user avatar
  • 2,805
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 ...
John_HP7550A's user avatar
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 ...
Paul A's user avatar
  • 711
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{...
Physor's user avatar
  • 431
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]{...
user avatar
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 ...
chemistree1's user avatar
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 ...
SolidMark's user avatar
  • 1,429
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 ...
tobiasBora's user avatar
  • 7,803
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 ...
A.Ellett's user avatar
  • 50.2k
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 ...
jopeto's user avatar
  • 165
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 ...
Matthias Arras's user avatar
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 ...
Tobias's user avatar
  • 898
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 ...
Ido H.'s user avatar
  • 75
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 ...
cis's user avatar
  • 7,529
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} ...
pelegs's user avatar
  • 267
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 ...
kilsen's user avatar
  • 347
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 * ...
Peter Grill's user avatar
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 ...
user3284229's user avatar
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 ...
James Dunlap's user avatar
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{...
sunxd's 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 ...
SRel's user avatar
  • 1,273
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 ...
63rrit's user avatar
  • 1
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} \...
Tarass's user avatar
  • 16.9k
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 ...
FlorianL's user avatar
  • 1,629
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 ...
Diaa's user avatar
  • 9,447
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 ...
AF_cpp's user avatar
  • 145
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 ...
ebosi's user avatar
  • 11.5k
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 ...
user2653422's user avatar
  • 2,323
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[...
Manuel Faux's user avatar
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 ...
NOhs's user avatar
  • 858
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 (...
sdaau's user avatar
  • 17k
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 ...
cfr's user avatar
  • 194k
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]{...
Zarko's user avatar
  • 293k
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 ...
Denis Bitouzé's user avatar
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 ...
dustin's user avatar
  • 18.5k