The tag has no wiki summary.

learn more… | top users | synonyms

4
votes
1answer
184 views

Position of the error bars in bar graphs in TiKZ

Help! I cant seem to get the position of the error bars right on top each bar. Also for some reason my legend seems to be off position too. \documentclass{article} \usepackage[utf8]{inputenc} ...
5
votes
1answer
437 views

Line graph superimposed on “Grouped Stacked” bar graph with pgfplots?

I need to superimpose a line graph over a stacked grouped bar graph (similar to answer to the question: Two level labels in bar plot). I have to superimpose a line graph for each group (it breaks at ...
0
votes
0answers
77 views

Making charts using alternative tools?

I would like to create some charts including bar and pie in my LaTex file, so far I found some useful packages in order to make them such as pgfplots. I have also looked into some science papers and ...
1
vote
1answer
228 views

how to add annotation to ybar pgfplots with symbolic x coords

I would like to add an annotation, or better, an arrow to a particular ybar in a plot, but I am struggling with the symbolic x data. I've used \pgfplotsinvokeforeach to read in variable data, and so ...
4
votes
1answer
143 views

Grouped BarChart

I would like to have all 4 graphs on one page (one panel) by using minipage. Also is it possible that I can have my graphs standing vertical instead of horizontal? Thank you. \documentclass{article} ...
3
votes
0answers
329 views

Decorating a PGFPlots bar graph with Tikz decorations

Update :- This appears to be a problem in which nodes near coords are handled by PGFPlots and incompatibility with Tikz decorations and fading library. I simply commented the nodes near coords line ...
4
votes
1answer
195 views

grouped bar colors in pgfplots

I have a simple grouped bar chart but would like to have all group bars the same color. Currently each bar in a group is colored, possibly because of the way I have used addplot. I've tried to use a ...
3
votes
1answer
170 views

Unable to read in text labels for pgfplots bar chart

I've started using pgfplots and can plot scatter plots where all data is numeric, but I'm having no luck at all with bar charts where the xlabel is text. I've tried to find a solution in the manual ...
4
votes
1answer
259 views

Centering bars on xticks in pgfplots

My wife is working on her master thesis and we are trying to make some bar graphs to use with it. We have managed to create a nice-looking graph, but the labels/xtick does not align in center. When ...
1
vote
1answer
216 views

Grouped Bar-Chart, all four in a panel

I am tryin to show all four graphs in a single panel page. Also, I want to see my graphs being very professional for beamer presentation in a single frame. Thanks. \documentclass{article} ...
4
votes
1answer
170 views

Set labels to column title in a stacked bar graph

I was trying to build a stacked bar graph which displays the labels of the columns title not in a legend, but directly near the bar itself. So far, I came up with the following: ...
8
votes
1answer
138 views

Help with a simple bar plot

I have some data in a table; the first column has some names; the second column associates a "category" to each name, and the third column associates a "section" to each name. All entries are ...
1
vote
0answers
23 views

How to draw a bar chart from multiple measurements with mean and variance [duplicate]

I have a few hundred measurements in a simple CSV file. I want a bar chart which indicates mean and variance pretty much like this: I've browsed various archives, such as the PFG plot gallery, but ...
5
votes
1answer
174 views

axis lable in millions/thousands

I have a simple barchart, on the y axis i have values which are displayed full written (e.g. 5'000'000). I dont want to change the orginal data but change the y-axis lable into a fullwritten value ...
3
votes
1answer
287 views

Errors when plotting a bar chart

This is my crude attempt to create a graph from copied example. I want to plot the diseases on the Yy axis and QoL scores on x axis. It has resulted in errors. Could anyone be kind enough to point out ...
1
vote
2answers
297 views

Guide to draw charts (basic, pie, bar) from data

I went through the examples of using PSTricks and TikZ for drawing pie and bar chart. They looked quiet complicated to me. Is there any simple guide (blogs/text) to drawing these charts using ...
5
votes
1answer
152 views

Create bar chart with description from file

I'd like to create a bar chart read data directly from file, add detailed description directly inside/over the bars and write the actual value near the actual coord set bar color according to a ...
3
votes
1answer
171 views

Cyrillic text in symbolic x coords

I make bar plot with pgfplots: \documentclass{report} \usepackage[T2A]{fontenc} % Поддержка русских букв \usepackage[utf8]{inputenc} % Кодировка utf8 \usepackage[english, russian]{babel} % Языки: ...
5
votes
4answers
1k 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 ...
3
votes
2answers
397 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 ...
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
593 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, ...
2
votes
0answers
142 views

How to make a tidy grouped and stacked barchart?

I found this chart in a recent paper. I've emailed the author about it but they didn't reply. I want to create something similar but I don't know what the correct software to use is. I need the ...
2
votes
1answer
179 views

How could we fix the legend in the x-axis with bar chart?

How could we fix the problem with the x-axis ? Also, would it be possible to have written above or in the middle of each column each number ? So as to make my bar chart, I have used the following ...
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} ...
7
votes
1answer
614 views

X-Bar plot with intervall (a,b) rather than (0,a)

When one makes a xbar plot using pgfplots, the bar always goes from 0 to the requested coordinate. For example (p. 78 in pgfplots manual): \documentclass{article} \usepackage{pgfplots} ...
1
vote
1answer
69 views

Double Y-Axis Sometimes Both on Left

I've developed a chart for my paper: https://www.writelatex.com/502050hhmmqs As you can see, there are two y-axes, with their labels correctly placed on opposite sides of the chart. However, when I ...
7
votes
1answer
168 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
697 views

Bar plot with error bars and two data rows

I am already close to the solution I'm searching for. I want this graph http://tex.stackexchange.com/a/35749/38544 with two data rows. Thus I took the code, duplicated the addplot-section and removed ...
2
votes
0answers
163 views

How to align bars with the legend?

I'm able to draw bar chart using tex file mentioned below \documentclass[landscape,a3paper,11pt]{article} \usepackage{pstricks-add} \usepackage{pgfplots, pgfplotstable} \begin{document} ...
4
votes
1answer
240 views

How to make a bar diagram with several “levels”

I just started using TikZ and I am trying to make the following bar diagram: My main problem is to define bar type in which I could put the following arguments (for every bar separately!): (1) the ...
7
votes
2answers
508 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 ...
3
votes
1answer
327 views

Overlay bar plots to do asymmetric errorbars?

To illustrate the problem, I use the code from the answer of this link for asymmetric errorbars in pgfplots. \documentclass{article} \usepackage{pgfplots} \usepackage{pgfplotstable} ...
4
votes
1answer
375 views

pgfplot xbar legend ordering

when I am drawing a xbar chart, I have troubles with the legend entries. They appear to have the opposite ordering as I suppose they should have. \begin{tikzpicture} \begin{axis}[xbar] \addplot ...
6
votes
2answers
325 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}[ ...
9
votes
2answers
4k 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 ...
3
votes
0answers
43 views

Pgfplots bar chart - One plot, different colors [duplicate]

Is there a possibility to color bars of one plot in different colors? \begin{tikzpicture} \begin{axis}[ xbar, xmin=0, width=12cm, height=3.5cm, enlarge y limits=0.5, xlabel={\#participants}, ...
0
votes
0answers
177 views

Bar of pie chart [duplicate]

I want to construct a bar of pie chart like the one excel does, but in LaTeX. I am having a lot of problems to come with something like this so I was wondering if somebody could help me.
3
votes
1answer
158 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 ...
4
votes
2answers
332 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 ...
8
votes
1answer
294 views

McKinsey curve in pgfplots (creating continuous cost curves)

I'm trying to recreate the Mckinsey curve in pgfplots: I'm not sure I understand how to control the \addplot with bar graphs completely (how to make each bar graph stand next to each other using ...
3
votes
1answer
392 views

How to use `ybar interval` without skipping the last value

I have the following code \documentclass[tikz]{standalone} \usepackage{pgfplots} \usepackage{pgfplotstable} \usepackage{filecontents} \begin{filecontents}{testdata.dat} -3.316988309367815e-07 ...
0
votes
1answer
332 views

pgfplots ybar glued to the y axis

My ybars are glued to my yaxis. How can I increase the horizontal space between the axis and the first bar, making them more condensed? I already tried setting x = 5cm for instance, but I just want ...
2
votes
0answers
274 views

Free space in bar-chart with empty entries

I would like to plot some data set with the ybar option of pgfplot. But not all entries are nonzero. The zero entries waste space between the bars and when the plot gets crowed it is not clear anymore ...
3
votes
1answer
306 views

pgfplots: show x tick labels for data below ymin

I have a very simple bar chart plot. My problem is when I set a ymin value, all x labels whose values are below that threshold will not be displayed. I'd rather have the labels but no values shown. ...
1
vote
0answers
543 views

Plotting a histogram from a dat file using pgfplot [closed]

I want to create a histogram from a dat file with two columns, error and frequency. It also has a large amount of bins, 501. I have followed instructions provided elsewhere on this site but the data ...
6
votes
1answer
771 views

Lining up angled tick labels on a pgfplots bar plot

I'm trying to produce a bar chart for publication with math text in the tick labels. The most readable layout would be to angle them, but when I do they clash with the axis and are difficult to relate ...
4
votes
1answer
870 views

Adjusting width of ybar interval separator to width of histogram bars

I have an array of numbers for which I want to create a histogram for the first 22 entries. I want to show both the first few entries of the array as a bar plot as well as the histogram in two ...
4
votes
1answer
957 views

pgfplots: Positioning “node near coord” at the bottom of the bar

I would like to position nodes near coords at the bottom of the corresponding bar, right by the X axis. Here's what I've got now: \documentclass{report} \usepackage{pgfplots} \begin{document} ...
6
votes
1answer
386 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 ...