Skip to main content

Questions tagged [pgf-pie]

{pgf-pie} concerns the TikZ-pgf based pie chart plotting package pgf-pie

Filter by
Sorted by
Tagged with
5 votes
3 answers
476 views

exploded pie chart, circumscribing arc, and text labels

Most of my figures in various books are pgf/tikz, with a few pstricks tossed. One of the few figures I rendered external to LaTeX (generated using a vector-based graphics program) looks like the ...
Johnny Canuck's user avatar
0 votes
1 answer
45 views

How can I center minipage text and adjust pgf-pie text

I am using minipage to divide a figure into two positions, on the left I have a figure made with pgf-pie that I would like the large text to be able to write outside and in the case of the text I ...
royer's user avatar
  • 361
1 vote
1 answer
101 views

horizontally arrange statistical circular diagrams and place the text inside the diagram

I want to organize the graphics and be able to place the text inside the diagrams. If someone could help me, it would be very kind. \documentclass[article,12pt]{report} \usepackage{enumitem} \...
E남자's user avatar
  • 11
3 votes
3 answers
184 views

How to change the border width of a tikz pie chart?

I have the following pie chart and I would like to decrease the width of the black border line. \documentclass{article} \usepackage{pgf-pie} \begin{document} \begin{figure}[htbp] \resizebox{0.4\...
Blue Cheese's user avatar
0 votes
1 answer
135 views

How to change color of text in legend of pie chart in overleaf

I would like to change the color of the text 7.91-6.33 in figure A's legend and the text 73169 - 60901 in figure B's legend to red. Please any help would be really appreciated. \begin{figure}[htbp] \...
shefo's user avatar
  • 3
5 votes
3 answers
378 views

Hidden numbers in Pie Chart

Want to extract the hidden or unclear numbers in a pie chart and display them like 'red numbers with a line' in the attached figure. Following is my code \documentclass[acmsmall]{acmart} \acmJournal{...
Yogesh Sharma's user avatar
2 votes
3 answers
111 views

pgfkeys and passing argument with math-ish format

It seems that pgfkeys is attempting to do math on one of my arguments, and failing because it's not actually math. How do I prevent this, and ensure that the argument is passed correctly? Compiling ...
Tetragramm's user avatar
0 votes
1 answer
73 views

Use dvipscolours from xcolor with pgf-pie

So I've got a pie chart that I'm making (data has been shortened for brevity). However, I want to use colors from the xcolor package with this. \documentclass[a4paper]{article} \usepackage[usenames,...
ScottishTapWater's user avatar
3 votes
1 answer
80 views

Only label specific slices pgf-pie

I'm trying to create a pie-chart showing just how dominant SpaceX is when it comes to the number of orbital assets that it controls. From my data, I've generated this: \documentclass[a4paper]{article} ...
ScottishTapWater's user avatar
0 votes
1 answer
237 views

How to handle case using pie chart in tikz when one percentage is too small?

I wanted to use tickz to draw a pie chart of 3 segments. The problem is that one of percentages is too small and the text comes out clobbered and hard to read. The 3 percentages are 96.34%,3.22% and ...
Nasser's user avatar
  • 20.3k
4 votes
2 answers
145 views

Arrow Tip of rounded arc has no contour

Currently, I'm working on an exploded pie chart with a bended arc indicating the direction of a process. My problem is that the bended arc I used as an arrow has no contour at it's arrow tip. Also, ...
Peter1509's user avatar
1 vote
1 answer
146 views

Changing the position of a plot in tikzpicture and its caption

I want to achieve the following. Reference figure is attached. In figure 16.1, print 1% in the same way as highlighted in red in the attached figure. Move figure 6.4 to the left (under figure 16.1). ...
Yogesh Sharma's user avatar
0 votes
2 answers
376 views

Pgf-pie in subfigure

I have the following code that draw four pie-chart using subfigure: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{subfigure} \usepackage{pgfplots} \usepackage{pgf-pie} \usepackage{...
Angelo Aliano Filho's user avatar
0 votes
1 answer
197 views

Include a pie chart in LaTeX beamer template [duplicate]

I want to draw a pie chart in LaTeX beamer template, but something wrong happened. The code is as follows: \usepackage[utf8]{inputenc} \usepackage{pgf-pie} \usepackage{xcolor} \begin{frame}{...
Aurora Joy's user avatar
1 vote
1 answer
537 views

How to prevent overlapping labels in a pie chart?

I would like to know how to prevent the labels of a pie chart from overlapping and to have more control over their position? I am using the pgf-pie package, I don't know if it is possible to easily ...
B Legrand's user avatar
  • 433
4 votes
1 answer
411 views

Nested pie chart

I know I'm asking a lot. But by chance, is there someone who knows a package capable of drawing nested pie chart in Latex ? Something like this : PS : It's more curiosity than real need, Python does ...
Cla-Jan's user avatar
  • 151
2 votes
1 answer
757 views

Pie chart with legend position south

I tried the legend to the south code from this question (see code below): Pie chart with joined legend position but it unfortunately does not work. If i change yshift to a fixed value it work. BUT ...
Jessica Walther's user avatar
2 votes
2 answers
56 views

How can I store colors to be reused later for pgf-pie charts?

I am trying to store a set of colors in the corresponding pgf key and then recall it later. However attempting to do this: \documentclass{standalone} \usepackage{pgf-pie} \begin{document} \...
TobiBS's user avatar
  • 5,270
0 votes
1 answer
226 views

Is there a way to fix a conflict between pgf-pie and tkz-euclide error undefined control sequence @t noexpand?

I am using Overleaf. If I load both tkz-euclide package and the pgf-pie package, I get the following error for each pie graph: pgfpie @t \noexpand and the graphs do not display the labels of the ...
E.Yu's user avatar
  • 337
2 votes
0 answers
150 views

repositioning tikz-pins in pie chart

I only want to know if anyone has an idea on how to reposition the tikz-pin in a way that they look like the pins in the example picture without creating extra nodes? this is my code so far: P.S.: if ...
kakadu22's user avatar
2 votes
1 answer
150 views

Customize the positioning of label and percentage in pie chart TikZ

I'm trying to personalize a pie chart in TikZ, mainly the lines, percentage, and label positions. I have the following figure and the script: \definecolor{rosso}{RGB}{232,76,61} \definecolor{giallo}{...
affernan's user avatar
  • 189
0 votes
1 answer
64 views

Two figures side by side - positioning issue

I need to put these two pie charts side by side ... to position in a CLEAN AND DECENT way while not going over page margin. It is currently okay but not really satisfying. Positioning the pie chart ...
Amos Machado's user avatar
1 vote
1 answer
92 views

Why is my pie chart displacing labels?

I have a tikzpicture with several nodes. Inside each node I am drawing a tikzpicture with something. Some nodes have charts, others have flowcharts etc. Everything seems fine. The problem is when I ...
Luiz Fernando Puttow Southier's user avatar
-1 votes
1 answer
223 views

Subheadings for Pie charts

Can anyone help me for writing subheading on top each Pi chart with the following code. Please see the example picture \documentclass[border=5mm]{standalone} \usepackage{pgf-pie} % version: https://...
Waseem's user avatar
  • 97
1 vote
2 answers
348 views

Reduce horizontal gap between legend and pie chart

How to reduce the gab between the pie chart and legend. Following is my code \documentclass{article} \usepackage{pgf-pie} \usepackage{tikz,pgfplots,pgfplotstable} \begin{document} \begin{figure*}[h]...
Yogesh Sharma's user avatar
1 vote
1 answer
505 views

Add multiple-line legend entry to a pgf-pie chart

I've got a pgf-pie chart with a legend. One of the entries is too long to fit on the page and regular LaTeX line-breaking commands don't seem to work. MWE: \documentclass[tikz, 12pt, a4paper]{report} \...
ccvbdfbfdbfb's user avatar
3 votes
1 answer
1k views

Put small numbers outside of a pgf-pie chart

I have a pgf-pie chart and some of the values are so small that the number does not display correctly. Therefore I would like to put them outside of the chart, as seen on the second picture I found on ...
ccvbdfbfdbfb's user avatar
3 votes
1 answer
593 views

Centering a pgf-pie chart with legend with respect to center of the chart, not the entire figure

I have a pie chart with a legend at the side made using pgf-pie. It is centered with respect to the center point of the entire figure, including the legend. MWE: \documentclass[tikz, 12pt, a4paper]{...
ccvbdfbfdbfb's user avatar
3 votes
1 answer
73 views

pgf-pie not properly rendering accented i - í

In the legend of my pgf-pie chart, I am using accented i character - í. For some reason, it appears as a number with the accent sign instead of the actual letter when compiled. MWE: \documentclass[...
ccvbdfbfdbfb's user avatar
2 votes
2 answers
2k views

Put percentages outside of pie chart

unfortunately you can't read the percentages in the small pie pieces. Is there an easy solution for that? Putting the percentages outside the pie or to the legend? \documentclass{article} \usepackage{...
qu33ristan's user avatar
3 votes
2 answers
261 views

list of colors in a pie chart with variable number of slices

Based on several codes found here and there on this forum, I built a simple code for creating a pie chart with a variable number of slices, see below. Right now, I am able to make the color of slices ...
Alain's user avatar
  • 954
2 votes
2 answers
638 views

Hide some numbers - PGFpie

I am dealing with package pgf-pie to draw some pictures. However, I would like to hide some percentages, that the smaller, because they don't fit in the sectors. I would just like to leave the ones ...
Angelo Aliano Filho's user avatar
1 vote
1 answer
441 views

How to create a pie chart with different text label styles using pgf-pie?

I'm trying to create a pie chart similar to this one. Reading the documentation for pgf-pie and it doesn't seem to have options for having multiple styles of text (text=pin, text=inside etc) for ...
Renegade_rm56's user avatar
2 votes
2 answers
437 views

Add extra text to Pie Chart

I would like to add extra text under the legend or next to pie chart where it looks good. But I don't know how. Can someone help me? Would like to add: n = 77 77 is the total of all pie-pieces. Thank ...
qu33ristan's user avatar
1 vote
2 answers
792 views

Align Tikz-Pie-Chart caption with chart

I am trying to align the caption of a pie-chart that I create with the tikz pgf-pie package. The goal is to have multiple pie-charts next to each other in one line. So far I tried creating a figure ...
Martin Müsli's user avatar
0 votes
1 answer
157 views

Replace number in pgf-pie

I am using pgf-pie to create pie charts. Usually, the number is written into the slices. I would like to replace the number by another string and the same time keep the description pinned. \begin{...
Amit's user avatar
  • 1
0 votes
0 answers
24 views

labels with debug information [duplicate]

On macOS, I tried the following: \begin{tikzpicture} \pie{47/Rice,32/Wheat,22/Other} \end{tikzpicture} What I observe is not what I expect with labels: It is like there is some debug info attached to ...
bm842's user avatar
  • 101
0 votes
1 answer
289 views

Is PGF-Pie part of TeXlive nowadays?

According to Nikola Talbot, PGF-Pie used to be part of MikTeX, but not of TeXlive. Is this still the case and if not, in which version was PGF-Pie introduced to TeXlive?
TobiBS's user avatar
  • 5,270
0 votes
2 answers
118 views

Why does pgf-pie create so many "Missing character: There is no b in font nullfont!" errors?

I am trying out pgf-pie and even simple examples seem to have some bug, because I get lots of Missing character: There is no b in font nullfont! errors and if I put all errors one after each other, ...
TobiBS's user avatar
  • 5,270
3 votes
1 answer
508 views

How can I make default settings for pgf-pie and have different color for text on pies and outside of pies?

I am using pgf-pie for simple pie-diagrams and would like to define a color scheme that is used by default for all charts. As it seems pgf-pie does not offer styles or color lists by default, hence I ...
TobiBS's user avatar
  • 5,270
2 votes
2 answers
507 views

Pie chart displays incorrect percentage

Pie charts in my document are displaying incorrect percentage with following code. Min value is 0 and max value is 104. For example, out of 104, correct answers are 42.3%, 29.8% and 26.9%, but values ...
Waseem's user avatar
  • 97
0 votes
1 answer
87 views

Making colors consistent in side by side Pie Charts

can anyone please help me to change the color from dark blue to light blue in these charts. Thanks! begin{centering} \begin{subfigure} \footnotesize \begin{tikzpicture} \begin{scope}[scale=0.7] \pie[...
Waseem's user avatar
  • 97
1 vote
1 answer
1k views

How to add caption for each pie chart (creating with tikzpicture) in tabular environment?

I have created the following figure in tabular environment for two different pie charts. But I am unable to give caption to each of them in their respective cell. I used the following code and I was ...
Anees's user avatar
  • 157
3 votes
3 answers
340 views

Draw a pie chart with a blank circle inside

I want to draw a tikzpicture pie chart look with legends look like this: How do I do that ?
qqv dao's user avatar
  • 33
1 vote
2 answers
763 views

Installing pgf-pie in macosCatalina (command line)

I'm trying to install the pgf-pie package here in macOS Catalina 10.15 I've followed the steps: downloaded pgf-pie.sty here: http://linorg.usp.br/CTAN/graphics/pgf/contrib/pgf-pie/ used kpsewhich ...
Marcelo Ribeiro's user avatar
1 vote
1 answer
146 views

Modifying a sunburst chart with % symbols and joint legend

I copied a code from this post to make a sunburst chart, but I need to make 2 modifications that I haven't been able to work out: is to add % into the text, and is to create a joined legend for both ...
Lilly Nguyen's user avatar
3 votes
1 answer
217 views

Scatterplot inside a square pie chart

Does anyone know how to do a scatterplot inside a square pie chart? I know I'm supposed to provide a MWE but but I'm very clueless of where to begin. What I'd need is 2 square pie charts within the ...
Lilly Nguyen's user avatar
1 vote
1 answer
565 views

2 pies in one figure with same legend and separate chart labels

I'm trying to create 2 pie charts within the same figure. The problem is I want them both to have the same legend, but I cannot manage that. The package seems to assume that each individual pie needs ...
Lilly Nguyen's user avatar
1 vote
1 answer
258 views

custom legend below figure

I have the following code and would like to set the legend below both subfigures in the centre. It would also be great to have subcaption (a) to be positioned horizontally with the corresponding pie. ...
Pullp's user avatar
  • 123
1 vote
1 answer
600 views

pgf-pie: How to change text-position in a square pie?

Is there a way, to shift the texts in the lower left corners; with other words: how to hack the default of the package pgf-pie.sty? Note that I use fictional percentual values. \documentclass[...
cis's user avatar
  • 8,912