tikz pgf - Different backgrounds for title and "normal" frames in beamer - TeX

I want to draw different backgrounds for the title frame and normal frames in beamer, using tikz. Doing this for the normal frames was straight forward, but that background now also shows up on the title frame (shifted to the bottom), which is not desired:\documentclass{beamer} \useoutertheme[subsection=true]{miniframes}%{miniframes}\defbeamertemplate*{background}{miniframes theme}{% \begin{beamercolorbox}{background} \begin{tikzpicture} \fill[red] (current page.north west) rectangle ++(0.5cm,-0.5cm); \end{tikzpicture} \end{beamercolorbo...Read more

packages - Error inserting image for layer in tikz-network (manual example) - TeX

Following the third example on page 35 of https://github.com/hackl/tikz-network/blob/master/manual.pdf I have been getting the following error below. Did I write something wrong in the code or omit something?Error:! Package calc Error: `c' invalid at this point.See the calc package documentation for explanation.Type H <return> for immediate help. ... l.6 \Plane[x=-.5,y=-.5,width=3,image=data/plane.png]?My MWE (72.tex):\documentclass{article}\usepackage{tikz-network}\thispagestyle{empty}\begin...Read more

Argument Spacing When Using lw Option for causes Compile Error with Tikz-Network Package - TeX

Writing the code with no spaces between the arguments of "\Edge[h local options i](Vertex i)(Vertex j)" normally handles processing: \documentclass{article}\usepackage{tikz-network}\thispagestyle{empty}\begin{document}\begin{tikzpicture}\Vertex {A} \Vertex [x = 2] {B} \Vertex [x = 2, y = -1] {C}\Edge[lw = 3pt](A)(B)\Edge[lw = 5pt](A)(C)\end {tikzpicture}\end {document}But if there is spacing (whatever that is) between the arguments of "\Edge[h local options i](Vertex i)" as shown below:\documentclass {article}\usepackage {tikz-network}\thispage...Read more

tikz pgf - Witharrows or other package to connect equations on different places - TeX

This MWE,\documentclass[a4paper,12pt]{article}\usepackage{newtxtext,newtxmath,amssymb}\usepackage{mathrsfs}\usepackage{xcolor}\usepackage[most]{tcolorbox}\newtcolorbox{mybox}[1]{% colback=teal!10, coltitle=black, colframe=teal!30, fonttitle=\bfseries, title=#1, sharp corners, boxrule=0pt, enhanced}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc} \usepackage{lipsum}\begin{document}\[\mathscr{L}(\Psi(\bar{r},t))=\iiiint_{\mathbb{R}^{4}}\mathscr{L}\left(G(\bar{r},\bar{r}',t,t') f(\bar{r}',t')\right) dx'dy'dz'dt'=(\st...Read more

tikz pgf - How to properly arrange group plot for bar chart using pgfplot? - TeX

I'm using pgfplot for plotting in Latex. I want to achieve this kind of graphAnd this is the best I can do so far [Update #4], Here's my latex code [Updated #4] :\begin{tikzpicture}\begin{groupplot}[ group name=plot, group size=2 by 1, xlabels at=edge bottom, ylabels at=edge left, horizontal sep=-10pt, vertical sep=0pt, /pgf/bar width=12pt},legend columns=-1,legend style={at={(6.5 ,3.6)}},legend entries={{\color{black}{\footnotesize Win}},{\color{black}{\footnotesize Lose}}},legend to name=CombinedLege...Read more

tikz pgf - Aligning group plot titles horizontally - TeX

I'm trying to figure out why my plot titles are not horizontally aligned. I tried several sources but could not find an option to control title alignment. Below image is what I get. As you can see Kingsbury and Northcote are not on the same level.This is my latex code\documentclass[preview]{standalone}\usepackage{filecontents}\usepackage{pgfplots}\usepackage{tikz}\usepgfplotslibrary{groupplots}\pgfplotsset{compat=newest}\usepackage{caption,subcaption}\begin{filecontents*}{cossim.csv}SAE,Kingsbury large,Kingsbury very small,Northcote large,North...Read more

tikz pgf - 4 tikzpictures in a 2x2 layout - TeX

\documentclass{article} \usepackage{pgfplots} \usetikzlibrary{fit,shapes,positioning} \begin{document} \begin{tikzpicture}[ mydot/.style={ circle, fill, inner sep=2pt }, >=latex, shorten >= 3pt, shorten <= 3pt, every fit/.style={ellipse,draw,inner sep=0pt} ] \node[mydot,label={left:1}] (a1) {}; \node[mydot,below=of a1,label={left:2}] (a2) {}; \node[mydot,below=of a2,label={left:3}] (a3) {}; \node[mydot,below=of a3,label={left:4}] (a4) {}; \node[mydot,right=4cm of a1,label={right:1}] (b1) {}; \node[mydot,...Read more

tikz pgf - Error with label in a groupplot - TeX

I'm trying to convert a subplot from python. I'm using matplotlib2tikz but there's an error I don't understand. The labels overlap the graphs.How can I solve this?This is the code:\documentclass[12pt, openany]{report}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\usepackage[french]{babel}\usepackage{pgfplots}\usepackage{amsmath}\usepackage{graphicx} %inclusion de figures\usepackage{pgf,tikz}\usetikzlibrary{babel}\usetikzlibrary{calc}\usepgfplotslibrary{groupplots}\pgfplotsset{ tick label style = {font = {\fontsize{6 pt}{12 pt}\selectfon...Read more

tikz pgf - pgfplots: trim axis breaks legend positioning - TeX

I have a figure that should be centered and contain three plots.One at the top, one at the bottom-left and one at the bottom-right.I used one tikzpicture with a regular begin{axis} for the top plot and a begin{groupplot} for the bottom plots. The legend for the bottom plots should be centered above the two bottom plots / below the upper plot.\documentclass{article}\usepackage{pgfplots}\usepgfplotslibrary{groupplots}\pgfplotsset{compat=1.16}\begin{document}\begin{figure*}[ht!] \centering \begin{tikzpicture}%[trim axis left, trim axis right...Read more

tikz pgf - How to generate a xy diagram with multiple grouped data sets? - TeX

Based on the answer of Stefan Pinnow in 'How to group several charts into one chart?', I tried to generate a diagram with multiple grouped data. Therefore, I modified the diagram but I have some problems. The resulting diagram now looks:And here is my MWE (I hope it is as minimal as possible MWE):% restructured data file:% - 'n' values are sorted ascending% - added column 'z' to know which data belong to which measurement% - added a dummy line at the end of each data set to produce an empty entry% for the separation of the blocks% - put all d...Read more

tikz pgf - Typesetting mind map table of contents spanning over two pages, displayed on both even and odd page - TeX

in my book project, I was inspired by fantastic table of contents display as a mindmap, posted as answer in this question:Visual table of contents using tikz mindmap or similarbut in my case, the mind map is pretty big and I would like, at least try to, make it span over two A4 pages. For that, I happen to find solution of Mr. Scharrer in answer to this question:How to include a picture over two pages, left part on left side, right on right (for books)?However, simple applying mind map code into the command for two page picture led to non-coher...Read more

Beamer + TikZ-foreach: Every step a new frame on handout - TeX

I'm preparing a presentation with Beamer and TikZ to explain Dijkstra.The following graph is explored step by step and for each step there's a new frame.\tikzstyle{vertex}=[circle,fill=black!25,minimum size=20pt,inner sep=0pt]\tikzstyle{selected vertex} = [vertex, fill=red!24]\tikzstyle{edge} = [draw,thick,-]\tikzstyle{weight} = [font=\small]\tikzstyle{selected edge} = [draw,line width=5pt,-,red!50]\tikzstyle{ignored edge} = [draw,line width=5pt,-,black!20] \begin{figure}\begin{tikzpicture}[scale=1.8, auto,swap] \foreach \pos/\name in {{(0,2...Read more

tikz pgf - How to shade area from one point to other for hobby curves? - TeX

I am trying to construct a image similar to a book. I am almost done except a last thing. What I want isand what I have isAll I need now is to shade the area from $a$ to $b$. I tried soft clip from pgf manual but it gives me an error. Any help is appreciated. Thanks in advance. \documentclass{article}\usepackage{pgf,tikz}\usetikzlibrary{arrows}\usetikzlibrary{hobby}\begin{document}\begin{tikzpicture}[use Hobby shortcut, line width =.5mm]\coordinate (a) at (1.5,0);\coordinate (b) at (1.5,2.8);\coordinate (c) at (6.5,0);\coordinate (d) at (6.5,2....Read more

graphics - TikZ External Creating Border Around Image - TeX

I am using TikZ with the external package to export a drawing as a pdf, and include in another LaTeX document. Here is the code that creates the image:% test_figure.tex% exports a pdf named test_figure-figure0.pdf\documentclass{article}\usepackage[usenames,dvipsnames]{xcolor}\usepackage{tikz}\usetikzlibrary{external}\tikzexternalize\begin{document}\tikzset{external/force remake}\begin{tikzpicture}[node distance = 1cm, every node/.style={node distance=2cm},% Some style settingsgroup/.style={rectangle, draw, fill=black!10, inner sep=5pt, text wid...Read more

tikz pgf - Colorbar as included png instead of standard pgfplots output to avoid pdf viewer problems - TeX

pgfplots offers really nice surface plots as vector graphics, but file size can easily blow up. it is probably quite common (at least for me) to include a bitmap, which was obtained beforehand by converting a pgfplots-pdf with convert (or sometimes preferably with pdftoppm, see comparison at the bottom of this post) to a png bitmap file.The MWE code then looks like this, just a plot with an included example image and a colorbar:\documentclass{standalone}\usepackage{graphics,pgfplots}\pgfplotsset{compat=newest}\begin{document}\begin{tikzpicture}...Read more