The tag has no wiki summary.

learn more… | top users | synonyms

9
votes
2answers
5k views

How to draw Bar & Pie Chart

I'm want to include two graphs mentioned below in a document. I'm able to draw pie charts using pgf-pie. Is there any package which is capable of generating BAR & PIE Chart both? [Also which ...
12
votes
1answer
3k views

pgfplots bar plot: spacing inbetween bars

How can I increase the spacing between the bars in a bar plot from pgfplots? \documentclass{minimal} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document} \begin{tikzpicture} ...
12
votes
1answer
4k views

pgfplots using strings *from data table* as x axis labels in bar chart

I've seen some of the other threads on using strings as x axis labels, but nothing that fits my situation. I'm trying to create a bar chart from a CSV file. I can do it so long as everything in the ...
3
votes
1answer
717 views

Missing bars in bar chart

I am trying to draw a bar chart in which each independent variable has multiple bars showing its performance in different areas. The problem I am having here is that the bars for the third variable is ...
5
votes
2answers
343 views

pgfplots: Clipping Everything Outside a Specific Area

I want to add information to each column of a histogram. every node near coord is probably the best approach. It works well with bar plots but not with the histogram: \documentclass{article} ...
8
votes
1answer
2k views

Different color for individual bar in bar chart & adding bar labels

Please consider the following MWE. There are three things I would like to do: Individual colouring For the last element ("not rejected") I would like to fill the bar with another color (e.g. ...
6
votes
1answer
2k views

grouped bar chart with pgfplots

I am trying to create a grouped bar chart with pgfplots, like this one: but I can't put the values over the bars, like this one: My code is: \documentclass{article} \usepackage{pgfplots} ...
6
votes
1answer
928 views

How to make a pgfplots stacked xbar plot with bar-“explicit meta” labels computed from input table data

I am making a pgfplots stacked xbar plot where each bar has a distinct label, in addition to a numeric bar length. Each pair of bars also has a common label. I would like to mark each bar with its ...
8
votes
1answer
3k views

Disable scientific notation for Y-axis and data in pgfplots?

I've been trying to figure out how to change the chart from scientific notation to just show the 5 digit numbers. I've tried scale and scale ticks with not success. How can I change the y-axis and ...
7
votes
1answer
2k views

Zero space between bars in pgfplots bar graph

I want to draw a bar graph with the bars touching, like in a histogram, using pgfplots. This is basically what I'm aiming for: That plot is generated with this code: \documentclass{article} ...
2
votes
1answer
506 views

pgfplot barchart moving x-axis up

For the MWE below: \documentclass{report} \usepackage[left=2.5cm,right=2cm,top=2cm,bottom=2cm]{geometry} \usepackage[T1]{fontenc} \usepackage{tikz,pgf} \usepackage{pgfplots} \usepackage{slashbox} ...
10
votes
1answer
4k views

Grouped bar chart

I'm trying to construct a grouped bar chart and have three questions I can't seem to find the answer to: 1) How do I modify the spacings between the groups? Or at least make sure that no bars are ...
7
votes
2answers
548 views

Two-sided bar chart

I strive to make a bar chart displaying opinions for and against different topics. I tried to do this with pgfplots starting from bar and interval bar charts. Bars to both sides can be archived ...
7
votes
1answer
409 views

pgfplots: Aligning multiple bars and marks horizontally along symbolic X-axis

I want to plot average values of some measure as bar charts with error bars and its maximal values as marks above the bars. I use two separate plots for that now. The problem is aligning marks with ...
5
votes
1answer
2k views

PGFplot histogram using multiple barplots

I'am trying to create a colored histogram using barplots using the following code: \begin{tikzpicture} \begin{axis}[ybar, ymin=0, bar width=0.2cm, axis x line*=left, nodes near ...
5
votes
4answers
2k views

How to compute an histogram (plot bars) binning the values from a .csv using TeX?

I've a .csv with a column of acquired measures. I would like to make the histogram bins using TeX from the measures distribution so I have to create the bins first. I haven't found any reference to ...
7
votes
1answer
2k views

pgfplots, bar graph, axis distance

I have a following chart, and I am trying to decrease the distance between the x-axis ticks FCC and Beta pi. Any suggestions on how to reduce this? \documentclass{standalone} \usepackage{pgfplots} ...
6
votes
1answer
667 views

Single stacked bar, values and legend

\documentclass{article} \usepackage{pgfplots} \begin{document} \pgfplotsset{testbar/.style={ title=strookdiagram sporten, xbar stacked, width=10cm, axis y line*= none, axis x line*= bottom, ...
6
votes
2answers
348 views

Annotate grouped bar plot

I'm trying to draw a grouped bar plot, but with added dots "on top" to signify outliers in the results. Currently I have: \begin{figure}[] \begin{tikzpicture} \begin{axis}[ ...
6
votes
1answer
1k views

Horizontal bar-charts in PGFPlots: “point meta” messes with alignment

I'm drawing a rather unusual bar-chart to display the results of a small survey. The axis of the chart extends in both the negative and the positive domain. However, there is no zero and all values ...
5
votes
3answers
412 views

pgfplots stacked bar chart with markers

I have a stacked bar chart. I would like to add markers to the chart in some values. I am trying to create something like in the stacked bar chart. Is it possible to add markers instead of another ...
5
votes
2answers
302 views

stacking negative value for ybar

I would like my ybars to be stacked the same way positively than negatively. It works for positive values but not for negative ones. On the given example, ThirdCol should be stacked negatively. Any ...
3
votes
1answer
162 views

How can I get titles on the top of grouped bars?

I have a bar plot with grouped bars. Each group should contain the total sum on top of the group. Example: My example has two problems: The x-position is estimated The y-psition (height) depends ...
3
votes
1answer
864 views

pgfplots - Number above one of the bars in the bar chart

I want to put a number above only one of the bars in the bar chart. For example, above the bar A, I want to put a number say 200. Other bars will not have any number at the top. This is my code. ...
7
votes
1answer
176 views

Use math equation as bchart label

I used bchart to generate a chart, it worked well in almost case, however I have to put a math equation into bar label but it is unable to compile. My document worked well ...
4
votes
1answer
130 views

Expressing a y-only shift with `axis direction cs` with symbolic x coords

I have a vertical bar chart with error bars. I want to put a star just above or below the error bar where the results are significant. I achieved this using the very neat trick provided in this ...
4
votes
2answers
392 views

How can I get a stacked bar with single values and sum on top.

I have a stacked pgfplot like this: But I want the single values inside the bars and the total sum on top of the bar (this graphic is 'handmade'): How can I get this result? My attempt up to ...
4
votes
1answer
1k views

Stacked bar-plot: display total value

Is there a way to make pgfplots display only the total value of a stacked bar-plot? With nodes near coords, all segment-values are shown: I'm only interested in the sum of the stacks, though. ...
3
votes
1answer
126 views

tikz ovelapping bars

The following code \documentclass[12pt,a4paper,onecolumn, openright]{report} \usepackage{pgfplots} \usepackage{tikz} \begin{document} \begin{figure} \centering \begin{tikzpicture} ...
3
votes
2answers
461 views

Bar chart from CSV file with adjustable bar width

I have a CSV file with approximately 1500 records that I would like to plot using something like a bar chart, but I don't know where to start at all. Each record contains a width and a height, which ...