Questions tagged [tikz]

TikZ is a set of higher-level TeX macros for producing vector graphics that use PGF (Portable Graphics Format)

TikZ is a set of higher-level TeX macros for producing vector graphics that use PGF (Portable Graphics Format)

470 questions
6
votes
1 answer

Package vignette depends on tikz/pgf

My R package vignette uses tikz/pgf graphics. The R CMD check command throws an error message on operating systems where the LaTeX package tikz/pgf is not installed. On a vanilla Ubuntu system, for example, the Ubuntu package 'pgf' must be installed…
Philip Leifeld
  • 2,253
  • 15
  • 24
5
votes
1 answer

AttributeError occurs with tikzplotlib when legend is plotted

I am trying to save a figure using tikzplotlib. However, I am encountering an AttributeError: 'Legend' object has no attribute '_ncol'. I am currently using tikzplotlib version 0.10.1 and matplotlib version 3.7.0. Without using "plt.legend()"…
Kuba1623
  • 109
  • 6
5
votes
1 answer

circuitikz - move current labels closer to current arrow

how can I move the current label closer to the current arrow. I.e. I want to move the i_1 closer to the…
Steradiant
  • 233
  • 2
  • 13
5
votes
1 answer

Using tikz to draw graph with multiple edges between each other

I am trying to draw a (undirected) graph using the Tikz package, such that there exist multiple edges between some nodes in the graph. Is it possible to do such a thing? I tried the following code to try and get atleast two edges between the nodes,…
Qrious
  • 677
  • 2
  • 9
  • 15
5
votes
2 answers

TikZ - An arc with an arrow

I am learning Tikz and hope somebody can help me achieve the following i.e. I want to draw a directed arc between objects in an equation. Below is a picture of what I am trying to achieve. I have also attached the code I have used so…
Dan317
  • 561
  • 2
  • 6
  • 9
5
votes
1 answer

Matplotlib annotation arrow with TikZ style path decoration

I have recently switched from making illutrations with TeX (PGF/TikZ) to using Matplotlib for the same purpose. The main reason is that a lot of my scientific code is in python and some of the illustrations should directly use the output of python…
Wolpertinger
  • 1,169
  • 2
  • 13
  • 30
5
votes
1 answer

How to draw a weighted graph on latex?

I need to draw a weighted graph using LaTeX but I don't know how to put the numbers on the edges. The numbers are like the costs of each edge. The graph can be drawn by this: \begin{tikzpicture} \draw (1, 1) node[circle, black, draw](m){M} (1, 3)…
Diego
  • 155
  • 2
  • 4
  • 11
5
votes
0 answers

TikZ externalize MD5 sum error with XeLaTeX

I've got some trouble with XeLaTeX and TikZ-externalize. I use the following setup. \usetikzlibrary{external} …
roflmaostc
  • 121
  • 6
5
votes
1 answer

Automatically center label between Tikz nodes

I'm new on using the latex package Tikz, and I'm trying to write a Tableau. My problem is to create sufficient space between sibling so that I can put a label in the center. This is what I've done. I would like to avoid manual spacing as much as…
Discipulos
  • 423
  • 8
  • 23
5
votes
1 answer

Creating the EUR sign with pgf/tikz

I'm trying to reconstruct the euro sign in TikZ. My basic guide is http://upload.wikimedia.org/wikipedia/commons/5/57/Euro_Construction.svg The problem I've run into is that I can compute all the intersections so far, but I am unable to instruct…
angerman
  • 4,099
  • 5
  • 24
  • 25
5
votes
1 answer

pandoc skip latex environment

I'm writing mainly in LaTeX, but some co-authors prefer MS Word. To facilitate their work a bit, I would like to convert the .tex file (or the .pdf) to a .docx. The formatting does not need to be perfect, but all of the text, equations, figures etc…
Octaviour
  • 745
  • 6
  • 18
5
votes
1 answer

Using macros with tikzpictures?

I tried to compress a tikzpicture using the following newcommand: \newcommand{\tchild}[3]{ child { node{#2} #3 edge from parent node[above]{#1} } } %intended usage: \tchild{edge label}{vertex label}{child nodes} If I apply it to the following…
Helmut Grohne
  • 53
  • 1
  • 3
5
votes
1 answer

How to make the grayed-round box using tiks

This is a follow-up question asked here. I need to make a round-grayed box as is shown. Based on the answers, I tried something, but not so fruitful. So, another questions coming. I came up with the following command, but it doesn't work. The…
prosseek
  • 182,215
  • 215
  • 566
  • 871
5
votes
1 answer

Tikz: two edge path

Can I use \path to draw a line that goes through 2 edges. Consider: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \tikzstyle{status} = [rectangle, draw=black, text centered, anchor=north, text=black, minimum width=2em,…
Ricardo Magalhães Cruz
  • 3,504
  • 6
  • 33
  • 57
5
votes
1 answer

How can I include a .eps figure within a Tikz simple flow chart?

I would like to create a simple flow chart in latex with the TikZ package similar to the following example http://www.texample.net/tikz/examples/simple-flow-chart/ However I would like to include figures (a time series plot created in R, as eps or…
Janvb
  • 1,290
  • 2
  • 16
  • 17