Questions tagged [pgf]

PGF (Portable Graphics Format) is a plat­form- and for­mat-in­de­pen­dent macro pack­age for cre­at­ing graph­ics. It works to­gether with the most im­por­tant TeX back-end drivers and it comes with a user-friendly syn­tax layer called TikZ.

PGF (Portable Graphics Format) is a plat­form- and for­mat-in­de­pen­dent macro pack­age for cre­at­ing graph­ics. It works to­gether with the most im­por­tant TeX back-end drivers, in­clud­ing pdf­tex and dvips. It comes with a user-friendly syn­tax layer called TikZ.

PGF works with plain (pdf-)TEX, (pdf-)LATEX, and ConTEXt, and it can pro­duce either PostScript or PDF out­put.

Homepage: https://sourceforge.net/projects/pgf/.

Manual (v. 3.0.0): http://ctan.mirror.garr.it/mirrors/CTAN/graphics/pgf/base/doc/pgfmanual.pdf.

92 questions
0
votes
1 answer

Length scale between matplotllib figure size and xelatex doesn't match

I created a python matplotlib figure with import matplotlib.pyplot as plt xwidth = 418.25555 / 72 # conversion from in to pt ywidth = 300 / 72 # conversion from in to pt fig,ax = plt.subplots(figsize=[xwidth,…
ju.
  • 304
  • 3
  • 16
0
votes
0 answers

Multiple horizontal bar-charts in a row in latex

I have three horizontal bar-charts that I created using both the Tikz package and PGF plots package in latex. I am using Overleaf. The three horizontal bar-charts look like the following: Is there a way to nest these horizontal bar-charts in a row…
Iris
  • 29
  • 4
  • 10
0
votes
0 answers

PGF output from matplotlib not adjusted to the LaTeX template

My goal is to use the font and its size from the template (in my particular case the ieeetran.cls) for my plots. With Python/Jupyter and matplotlib I create a plot which I store as pgf file, which works fine: plt.rcParams.update({ 'font.family':…
Michael Dorner
  • 17,587
  • 13
  • 87
  • 117
0
votes
0 answers

Issues for ploting data from a txt with option [mark=none]

after reading Stack OverFlow's many times to solve my problems, I'm asking my first question today on the forum ! :) I'm using the following code to plot a curve with Tikz. If I add coordinates commonly by using for example this code, it works…
0
votes
0 answers

All gridlines below plot line - with twin x-axis [Matplotlib]

I'm using matplotlib to produce a plot where I want to show labels on the right and left y-axis. You will notice by running the code that the grid-lines formed by the right-side y-axis appear on top of the plot line, where the left-side lines appear…
likethevegetable
  • 264
  • 1
  • 4
  • 17
0
votes
0 answers

Can the Matplotlib PGF backend produce PDF files instead of PNG?

I'm plotting data with matplotlib pgf backend for inclusion in LaTeX documents. The backend produces a pgf file which is rendered by LaTeX and includes all labels, axis and so on. It also produces png files containing the underlying image, colorbar…
bjoern
  • 13
  • 3
0
votes
1 answer

Getting semi-transparent text with matplotlib+pgf backend when compiling in LateX

So I am using the pgf backendin matplotlib to include some automatically compiled references to some other parts of my Tex documents (figures, bibliography) in my TeX document. import matplotlib matplotlib.use('pgf') import matplotlib.pyplot as…
jeandut
  • 2,471
  • 4
  • 29
  • 56
0
votes
1 answer

pgf tikz for LaTeX how can I use x and y coordinates with node

I have the following rectangle: \begin{tikzpicture} \draw[thin] (0,0) -- (7,0) -- (7,5) -- (7,5) -- (0,5) -- (0,0); \end{tikzpicture} and I want to put a text label for the width and height of the rectangle using node. But don't know how to specify…
26F
  • 13
  • 7
0
votes
1 answer

How do I turn this pgf plot adjacent bar chart with two y axis labels

I have the following code which roughly approximates a diagram I want to make with tikz: \begin{tikzpicture} \begin{axis}[ % (normal text should not be set in math mode) xlabel=, ylabel=, % if you use `data' ticks will be set on every x coordinate…
spar31415
  • 21
  • 1
  • 5
0
votes
1 answer

Latex Column chart

Trying to create a latex column chart with single values in 3 different columns having 3 colors. \begin{tikzpicture} \begin{axis}[ x tick label style={ /pgf/number format/1000 sep=}, ylabel=Accuracy, enlargelimits=0.05, legend…
Amandeep Singh
  • 305
  • 2
  • 11
0
votes
1 answer

LaTeX pgfplots use strings for barchart label from .csv

I'm trying to use data from a .csv file to create a barchart with labels that are non-numeric. I've looked through a few older examples, but they seem large and clunky. I'm hoping there's a better way. Here's what I have so far as a…
Corus
  • 53
  • 1
  • 5
0
votes
0 answers

pdflatex out of memory using pgfplotstableread and csv

I'm unable to read my csv file using pgfplotstableread. I already increased the memory size alot (consuming now > 1GB RAM), but still I'm getting this error: TeX capacity exceeded, sorry [main memory size=378000000] My other csv files are working…
coalmee
  • 1,334
  • 2
  • 16
  • 27
0
votes
1 answer

Matplotlib: How to produce this elegant plot

I am trying to produce this plot using Matplotlib with Python 2. Expected output: The available source code is as follows. #!/usr/bin/env python #-*- coding: utf-8 -*- from __future__ import division import matplotlib import scipy from…
0
votes
1 answer

Improving a Tikz Diagram

I have just finished my first diagram in Tikz. It looks as I wanted it to, but am unhappy with how I have 'coded' it: \begin{tikzpicture} [node distance=14mm, item/.style={rounded corners,rectangle, thick, minimum width=20mm, minimum…
Freddie Witherden
  • 2,369
  • 1
  • 26
  • 41
0
votes
1 answer

Positioning of hyperlinked shapes with matrix in tikz

I can draw a hyperlinked shape in tikz using the following code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \usepackage{hyperref} \begin{document} \begin{tikzpicture} \node {% \href{http://www.stackoverflow.com}{%…
learnr
  • 6,479
  • 4
  • 27
  • 23