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
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
4
votes
2 answers

What are the ways to create draw data structures for latex?

I tried tikz/pgf a bit but have not had much luck creating a nice diagram to visualize bitfields or byte fields of packed data structures (i.e. in memory). Essentially I want a set of rectangles representing ranges of bits with labels inside, and…
alicephacker
  • 43
  • 1
  • 3
4
votes
2 answers

How do I save the text in python plots editable in svg files?

I am trying to save a python plot as an svg file: import matplotlib as mpl mpl.use('svg') import matplotlib.pyplot as plt import numpy as np plt.figure() x = np.linspace(0,2*np.pi) y = np.sin(x) plt.plot(x, y) plt.xlabel('Phase…
Forrest Thumb
  • 401
  • 5
  • 16
4
votes
0 answers

using pgf backend to matplotlib in julia

I started using Julia to analyse some data, which works perfect. I also use PyPlot / Matplotlib for plotting, which I got working as well. Now, these plots need to find their way into my latex document, which I want to achieve using the matplotlib…
0kto
  • 41
  • 4
3
votes
1 answer

Latex Tikz/Pgf declaring shapes with parameters and anchors with numbers

I am writing some shapes in pgf and i don't really know everything about how this works but i managed to get through the documentation. \pgfdeclareshape{reg}{ % The 'minimum width' and 'minimum height' keys, not the content, determine % the…
MrDiver
  • 112
  • 1
  • 8
3
votes
1 answer

Precise and smooth curve with Tikz

I'm trying to draw some curves, but it doesn't work out very well. what I need what I get \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ …
Stephan
  • 31
  • 1
  • 2
3
votes
1 answer

Matplotlib tex-macro in description

I'm using matplotlib to generate pgf files. Based on those, I use standalone tex files which only include necessary settings and the afore-built pgfs. In this scenario, I'm getting errors when using custom tex-macros for descriptions in my plot…
m8mble
  • 1,513
  • 1
  • 22
  • 30
3
votes
1 answer

Evaluate a function and assign to a constant to use as tick markin Tikz/pgfplots

I'm defining some functions to plot using pgfplots and that has been successful. Now I would like to add a y tick at a point that's evaluated using these functions (lbound below). I can't seem to be able to use lbound as a constant however. This is…
cinny
  • 2,292
  • 3
  • 18
  • 23
3
votes
1 answer

addplot: set default domain

In pgfplots, when plotting a function, the default domain in -5:5. I would like to set this to be xmin:xmax by default. Is there a way to do this? In other words, I would like to be able to write \addplot {x^2}; instead…
LMBC
  • 76
  • 1
  • 8
3
votes
1 answer

Simple plot with pgfplots and LaTeX

I've just been searching like an hour on how to draw a simple function in LaTeX, for example f(x)=x^2. The examples I've tried did not work for some unknown reason, most probably because pdflatex would not start gnuplot (the -enable-xxx options do…
hochl
  • 12,524
  • 10
  • 53
  • 87
3
votes
2 answers

Julia: Plot a matrix as an image using pgfplots package

From my calculations I obtain a 2D array of real numbers. What i want to do with them is to plot them as an image where the values of the array's elements translate into a colormap. Till now I used the package PyPlot for this kind of visualization.…
ChristianM
  • 53
  • 1
  • 6
3
votes
0 answers

Non-italicized tick labels with pgf in matplotlib

I am using the pgf backend in matplotlib 1.5.3 to produce publication-quality figures. Here is how I set up the plotting script. import matplotlib as mpl mpl.use('pgf') pgf_with_latex = { # setup matplotlib to use latex for…
Ian
  • 1,688
  • 18
  • 35
3
votes
1 answer

How to Find Intersections with Ellipses in PGF/TikZ

I am trying to display a sphere in PGF/TikZ to illustrate the idea of great circles. The code for my current result is: \begin{tikzpicture} \tikzfading[name=fade right, left color=transparent!20, right color=transparent!90] \tikzfading[name=fade…
user327684
  • 163
  • 2
  • 6
3
votes
1 answer

The way to find out whole picture width in PGF (Latex)

I've got a latex macro that draws a picture using PGF and Tikz according to given parameters. The width of picture drawn depends on these parameters. PGF automatically calculates the resulting width of any picture drawn so the user does not have to…
Rasto
  • 17,204
  • 47
  • 154
  • 245
3
votes
1 answer

Last bar of matplotlib barplot being filled half

I am using matplotlib to create a graph for my thesis. I am using the following code: import numpy as np import numpy as np import matplotlib as mpl mpl.use('pgf') fig_width_pt = 390 # Get this from LaTeX using \showthe\columnwidth inches_per_pt =…
rbnvrw
  • 347
  • 3
  • 15