Questions tagged [tikz-pgf]

TikZ is a higher-level drawing language built on top of the PGF graphics framework. For questions specifically about the PGF layer use {pgf-core} instead. Both tags are possible on the same question. The tag {diagrams} is also compatible with this tag.

1,816 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
16 votes
0 answers
1k views

Transform paper folding diagram to 3D object or vice versa

I made this commands to make paper models, and I ask if it is possible to have a 3D view of them converting in tikz-3D, or backward. But it's easier to draw the flat model and generate the volume ...
Tarass's user avatar
  • 16.9k
13 votes
0 answers
184 views

tikz 3d gets "too many vectors" at commercial printer - detection? fix?

The 3d marmot included in samcarter's upcoming tugboat article on tikzlings (thanks sc!), which reduces to, \documentclass{article} \usepackage{tikzlings} \begin{document} \tikz{\marmot[3D]} \end{...
Karl Berry's user avatar
  • 2,072
10 votes
1 answer
6k views

How to incorporate and scale matplotlib plots in latex using the PGF backend?

I am using the pgf backend of matplotlib to generate pgf files which I want to put into my latex document using tikzscale to be able to resize them easily. Example python code: #!/usr/bin/env python # ...
Nils_M's user avatar
  • 201
9 votes
0 answers
11k views

TeX capacity exceeded, sorry [main memory size=5000000] with matlab2tikz and reduce_plot

Yet another Tex Capacity exceeded error. I am generating a matlab scatter plot which without modification resulted in a 64.5 MB printed eps file. Using that plot directly in matlab2tikz resulted in a ...
MaxBaeten's user avatar
  • 103
8 votes
0 answers
941 views

Highlighting pseudocode in algorithm

Edit: I "solved" my main issues now. It's a bit ugly/hacky, but at least the result looks ok. With this edit I'm replacing the now obsolete old code with what I have now. But suggestions for ...
Hansli's user avatar
  • 81
8 votes
1 answer
536 views

One tcolorbox with alternative color in different lines

This is what I want to get This is what I already have \documentclass{article} \usepackage{geometry} \geometry{left=2.5cm,right=2cm,top=2.5cm,bottom=2.5cm} \usepackage{fontawesome} \usepackage{...
user9047095's user avatar
8 votes
0 answers
3k views

\includegraphics not working with xelatex for PDFs with images in them

I switched to using xelatex so I could use a specific font, but now some images don't render. Here's a simplified example that illustrates the failure: % The next lines tell TeXShop to typeset with ...
Ultrasaurus's user avatar
7 votes
0 answers
666 views

Beamer, overlay and standalone

Short version Is it possible to use standalone to produce externally my figures with overlays and include them directly in my main document ? More details Using the answers of the question Beamer ...
Pierre Marchand's user avatar
6 votes
0 answers
124 views

Animated Brownian motion with fading

I try to reproduce this interesting visual on brownian motion and to make an animation out of it. \documentclass[10pt]{standalone} \usepackage{tikz} \usetikzlibrary{fadings} \begin{document} \begin{...
JeT's user avatar
  • 2,688
6 votes
0 answers
415 views

zoombox array with adjustable width ratio

I've become an avid user of the zoomboxarray library created by Jake. Soon, one becomes aware that a fixed ratio (1:1) between the width of the subcaptionboxes containing the full image and the \...
Alessandro Cuttin's user avatar
6 votes
0 answers
742 views

`imshow` like diplay of image with colormap

I would like to show an originally gray scale image with a specific colormap like matlabs/matplotlibs imshow. Original: % python import matplotlib.pyplot as plt import matplotlib.image as mpimg ...
Manuel Schmidt's user avatar
6 votes
0 answers
131 views

How can I get correct spacing when reusing Forest trees and when calign is center (default), last etc.?

Forest allows me to reuse (part of) a tree in another tree. However, when calign has certain values, including the default center, this does strange things to the spacing of some nodes. How can this ...
cfr's user avatar
  • 193k
5 votes
1 answer
72 views

Disappearing arrow head in tikz graphs

I am drawing directed acyclic graphs in tikz. They look great, but when i try to specify arrow input coordinates sometimes the arrow head disappears, and I would like to understand why. my preamble is:...
Tim Feeney's user avatar
5 votes
0 answers
989 views

Svg to Tikz doesn't work

I'm using inkscape to draw a simple picture and i saved with svg extension I want to convert this svg file to Tikz code for latex I download the extensions from github https://github.com/paaguti/...
Mohamed Hasnaoui's user avatar
5 votes
0 answers
295 views

Common library of generic distributions in probabilities?

I have not found a library for pgfplots with "proper" (=normalized, standardized) definitions of distributions so that we don't reinvent the wheel each time we need to call these functions the ...
JeT's user avatar
  • 2,688
5 votes
0 answers
224 views

Tikz externalize resulting in legends with wrong style

I have an issue that has already been discussed in some form for example here and here but I have not been able to resolve it with the hints/solutions given there. Please consider the following ...
bonanza's user avatar
  • 2,131
5 votes
0 answers
775 views

Rotate tikz "Layered Layout"

I know many of the layouts in Tikz can be rotated, but I fail to do it with the Layered Layout. I have a very large chart that takes a lot of space horisontally, and i believe it would look better ...
Nichlas H.'s user avatar
5 votes
0 answers
1k views

Tikz automated layout of nodes and routing of edges for complicated flow diagram

I have a master, "all-encompassing" (but non-standard) flow-diagram on the whiteboard to explain a methodology to readers of a journal article that I am writing. The problem is that I am unsure of ...
Dr Krishnakumar Gopalakrishnan's user avatar
5 votes
0 answers
1k views

How to draw a triangular mesh (unstructured grid) of an arbitrary shape using Tikz?

I would like to draw a figure that looks like this one using Tikz: This one is adapted from a book and serve here as an example. It does not have to be with the exact same boundary curves because I ...
iago.oliveira's user avatar
5 votes
0 answers
709 views

PGFPlots fillbetween layer issue with main layer

I am using fill between to create some diagrams where I need semi-transparent fillings above ploted lines. As normally fillings are put into a separate layer pre main below plot lines, I tried to move ...
bz-mof's user avatar
  • 53
5 votes
0 answers
1k views

Any way to integrate WaveDrom with LaTeX?

I know about the TikZ package for drawing timing diagrams, but WaveDrom is just so much simpler to use for me. Is there any way to integrate the WaveJSON into my LaTeX document, and make pdflatex ...
ScumCoder's user avatar
  • 1,619
5 votes
0 answers
464 views

Webpages that show off beauty of LaTeX output relative to `competitors?'

There is a question (Showcase of beautiful typography done in TeX & friends) with many great answers showing off the great things one can accomplish with LaTeX. There are books (like Tufte's) ...
JPi's user avatar
  • 13.5k
5 votes
0 answers
1k views

How to select a range of data within a .csv file in latex using pgfplots?

I am generating a plot of data using pgfplots in latex. I am using data from several excel files as .csv. Here is the MWE: \documentclass[border=5mm,convert]{standalone} \usepackage{pgfplots} \...
Tim's user avatar
  • 61
5 votes
0 answers
555 views

How to layout large edge labels in dot2texi?

I never got to layout (arbitrary) large edge labels in a dot2tex section. The problem is that the size of the layout has no effect of the layout and the rendering is only based on the default edge ...
Kalle Richter's user avatar
5 votes
0 answers
2k views

How to fit dot graph with dot2tex(i)

Currently I used the dot -Tpng to include graphs in my LaTeX document. However it produced sometimes suboptimal graphics I wanted to look into dot2tex(i). The problem I encountered is that previously ...
Maciej Piechotka's user avatar
4 votes
0 answers
62 views

Why doesn't --cycle work here?

I am trying to draw a triangle with vertices placed at the trisection points of a circle. Strangely, when I use \draw[thick] (u) -- (v) -- (w) --cycle, it misses one edge uw. Why is that? \draw[thick] ...
licheng's user avatar
  • 699
4 votes
0 answers
133 views

Using TikZ to celebrate Valentine's Day

While this is not a specific inquiry, I would like to witness the creativity of the members on this forum. As it is the 14th of February, I had hoped to commemorate the occasion by creating an ...
euler_med's user avatar
  • 468
4 votes
0 answers
164 views

Creating a cone in TikZ

If I compile this file: \documentclass[12pt]{article} \usepackage[math]{kurier} \usepackage{pgfplots} \pgfplotsset{width=15cm,compat=1.18} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \...
José Carlos Santos's user avatar
4 votes
0 answers
328 views

Timeplanner template that looks like Google Calendar?

\documentclass[a4paper,10pt]{report} % Definitions \usepackage{lscape} \usepackage[height=25cm]{geometry} \usepackage{timetable} \begin{document} \thispagestyle{empty} \begin{landscape} %\...
Fukai Mizumi's user avatar
4 votes
0 answers
116 views

RubikCube Package - trouble with showing rotation

I am trying to use the rubikcube package to get some illustrations but I can't find the error in my code: \documentclass{article} \usepackage{tikz,rubikcube,rubikrotation,rubikpatterns} \begin{...
RedLantern's user avatar
4 votes
0 answers
77 views

Positioning & scaling images to account for bleed

Against my better judgement, I've spent far more time than I have available to accommodate printing guidelines for a self-published booklet. The booklet is a half-letter size page. In some cases, an ...
Abbas Jaffary's user avatar
4 votes
0 answers
63 views

How can I avoid that PGF writes a RGB reference into my PDF?

I am still in the process of preparing a print ready PDF. For this I am trying to convert everything in my file to CMYK and hence I am searching the PDF output for any reference to RGB. One thing ...
TobiBS's user avatar
  • 5,170
4 votes
0 answers
438 views

Why does `\usepackage{cleveref}` fix the conflict between (new) hyperref, amsthm, and lastpage when using tikz externalize?

This is not a duplicate of this question. Why does adding \usepackage{cleveref} solve the conflict between lastpage, hyperref, and amsthm during externalization? The known answer proposes \...
hefe's user avatar
  • 78
4 votes
0 answers
273 views

Dual commutative diagrams

I use tikz-cd to draw my commutative diagrams, like the following: \documentclass{scrartcl} \usepackage{tikz-cd} \begin{document} \begin{equation} \begin{tikzcd}[row sep=scriptsize] ...
Bubaya's user avatar
  • 2,227
4 votes
0 answers
146 views

How to plot measured signals? i.e. large number of points

So far I used TikZ/PFGplots to plot small potions of (simulated) signals, drawing schemes, etc. but when it comes to actually measured signals (e.g. at 10 kHz), you easily end up with millions of ...
max's user avatar
  • 171
4 votes
0 answers
90 views

Why does over-sampling mess up arrows?

I have two images below. One is with a sampling of 200 and another without any As you can see, the first image has a beautiful arrow whereas in the second image, the line has gone beyond the actual ...
Trogdor's user avatar
  • 717
4 votes
2 answers
349 views

counters, newcount and pgfcalendar, macros

I am trying to use the pdfcalendar library, but I think I'm confused by the definitions. My Question: What kind of LaTeX counter/macro/variable can I use with pgfcalendar functions? Do I have to ...
Tim's user avatar
  • 1,539
4 votes
0 answers
940 views

Labels next to dots in tikz

I often draw a tikz diagram where I specify the nodes and the label separately: \tikzset{% dot/.style={circle, draw, fill=black, inner sep=0pt, minimum width=4pt}, top/.style={anchor=south, inner ...
Kaj's user avatar
  • 185
4 votes
0 answers
206 views

Boundary of a path as a new path?

Is it possible to use the boundary of a shape defined as some path as a new path? In the following example \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=3] \...
Przemysław Scherwentke's user avatar
4 votes
0 answers
192 views

Opacity of plane has no influence on points behind it

I created the following figure of my data points and a regression plane: I would like the data points above the plane to remain black but the data points below the plane to be blue. I thought this ...
Zdenko Heyvaert's user avatar
4 votes
0 answers
68 views

No decoration is dropped when the total length of the decoration list exceeds the length of the input path (a possible bug)

Just want to run this by the good people of tex.stackexchange before I submit this as a bug. Consider the following LaTeX manuscript featuring a pgf picture of a 2cm long horizontal line that is ...
Evan Aad's user avatar
  • 10.9k
4 votes
0 answers
2k views

How to install pdftops?

I use MikTeX + TeXstudio and use to TikzEdt to draw graphics. I want to export figures from TikzEdt to TeX. As I know, firstly I shall install pdftops to transform figures in order to .eps format. ...
captain23's user avatar
  • 103
4 votes
0 answers
507 views

TeXPad: erroneous alignment in TikZ diagram

If I compile the following code on my MacBook Pro (TeXLive 2016), there is no problem at all. \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,3) --...
T_T's user avatar
  • 547
4 votes
0 answers
974 views

Printout of TikZ colorbar gives wrong colors

I want to publish a PDF with a print-on-demand service, but the resulting hard copy has errors in the printed colorbars. The colorbar is generated with TikZ by \begin{tikzpicture} \begin{axis}[ ...
kexx's user avatar
  • 51
4 votes
0 answers
140 views

Error using tikzexternalize when placing an image on the verso page

I am preparing a thesis in the same manner as detailed in this question. Namely, I am looking to write a thesis with the text appearing on the right (odd) page, and images appearing on the left (even)...
allie's user avatar
  • 41
4 votes
0 answers
218 views

How can I reliably and consistently save PGF keys filtered by path to a macro for later use?

I am trying to use PGF keys in TikZ with a relatively complex key tree. (Complex by my standards, that is - I'm sure it isn't that complicated in the scheme of things.) What I hoped to do is to ...
cfr's user avatar
  • 193k
4 votes
0 answers
3k views

Solids of revolution using tikz or pgf

I've been looking here on TEX Stackexchange for a solution to create Solids of Revolution but I could'n find anything. The analysis that I make on this problem is, first, draw a 2-D graph, second, ...
bru1987's user avatar
  • 903
4 votes
0 answers
292 views

Node size in graph with pgf 3.0

I want to draw some graphs with pgf 3.0, but the size of the nodes are not being taken into account when laying out the graph using spring layouts. Here is an example document: \documentclass[tikz]{...
Romildo's user avatar
  • 4,073
4 votes
0 answers
333 views

Tikz Sphere without using Shade

I am using following graphic in my beamer slides I use evince pdf viewer and I find that the pdf displays very slowly. When I click for next page, it appears around 15-20 seconds later. I have a ...
knowledge_seeker's user avatar
4 votes
0 answers
780 views

dot2tex: some frames are missing

I'm trying to dot2tex to render automata. For reasons I do not understand, the rendering is missing some boxes. For the following Dot file input: digraph { rankdir = LR { I0 [shape = point, ...
akim's user avatar
  • 407

1
2 3 4 5
37