Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [histogram]

The tag has no usage guidance.

0
votes
2answers
50 views

How to create a relative frequency histogram [duplicate]

I am trying to create a normalized frequency histogram. A minimal working example is adapted from this TexStackExchange answer by @Jake (see code below). I know I can switch add density to hist={} but ...
0
votes
0answers
38 views

Setting axes limits and ticks of a histogram in TikZ

I have the following code that plots a histogram based on a data-file: \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{data.dat} subject,f1,f2,f3 -19,0.19,0.04165,0.00016547 -...
3
votes
1answer
40 views

Histogram in pgfplots: Count the total number of data values

I'd like to make a histogram with pgfplots showing percentages on the y-axis instead of the number of points falling into the bins, like so (the example is taken from the manual): \documentclass[11pt]...
1
vote
0answers
80 views

pgfplots Histogram with Curves [closed]

Variations on this question have been asked many times before, but I have not been able to find a working solution. The closest I have seen are discussions on other stackexchanges concerning how to ...
1
vote
0answers
84 views

pgfplots Histogram with Automatically Calculated Percentage Bins

I have a CSV file. The CSV file contains several columns. I want to plot a histogram that displays: As the x axis: bins for the percentage of rows, that can be changed; As the y axis: the cell ...
1
vote
1answer
63 views

pgfplots Line Histogram

I have a histogram. It is created from data in a CSV file. I would like to connect the mid points on each bar with a smooth line. My intention is to plot multiple series and show just the lines. ...
1
vote
1answer
55 views

pgfplots Histogram with Normal Curve

Variations on this question have been asked multiple times before, but I have been unsuccessful in getting them to work. I may be (and most likely am) just inept at statistics. I wish to plot a ...
2
votes
1answer
30 views

Tikz | How to change line color of histogram

I am trying to follow this answer for drawing a historgram. I was able to change the fill color of the histogram but I was not able to change the line color of the bars. Question: What do I have to ...
1
vote
1answer
71 views

Combine boxplot and histogram in one diagram (PGF/TikZ)

For my bachelor thesis I did a questionnaire, now I want to evaluate and visualise it in a diagram, combining multiple values. Most of the answers from this survey are in a scale of 1-5 or 1-6. I want ...
1
vote
1answer
29 views

Histogram with Markers, Marker Nodes and Legend Not Displaying Everything Correctly

I am still kinda new to TEX. I am currently working on a paper submission, however I am having trouble properly combining markers, node labels for the markers, a legend and a histogram all in the same ...
3
votes
1answer
55 views

Tikz bar plot Issues: The histogram is not scaling properly

I am having trouble with my tikz plot, Even the value is 21508 corresponding to drive, it is evident from the figure that histogram is not scaled properly. I do not know why this is happening. My ...
1
vote
1answer
44 views

How to plot histogram from a tab separated csv file containing tabular list of ordered tuples?

I would like to plot a histogram in which x-axis will contains ordered tuple data and y-axis will contains its frequencies. A CSV file containing data as follows : x_values y_frequency (2,102,100)...
2
votes
1answer
135 views

How to properly draw a histogram?

Surely it is an easy problem but I can't find a solution. Imagine you want to simulate a Gaussian distribution of frequencies around a mean value with a certain spread. It is an easy task to write the ...
1
vote
1answer
141 views

How to get this simple histogram?

I want to create this: But I've come up with this one: I've searched the internet first but the histograms they were plotting were so much complicated. \begin{tikzpicture} \begin{axis}[ symbolic ...
0
votes
0answers
20 views

Is there something to transform automatically an array to a graph?

For instance let say that I have the following simple array: \begin{tabular}{|c|c|c|c|} \hline & SQuAD & SQuAD2.0 & accuracy lost\\ \hline \mbox{cosine distance} & 0.633884 & 0....
0
votes
1answer
266 views

Two eps sub-figures with one legend

I have two figures and I want to have them as two-subfigures with one legend, and separate numbers with commas on the y-axis (like 10,000 or 1,000,000). This is what I currently have: I tried to use ...
1
vote
1answer
79 views

Adding a Legend to a Histogram

I created the following histogram but all labels were messed up. \documentclass{standalone} \usepackage[T1]{fontenc} \usepackage{pgfplots} \pgfplotsset{ compat=newest, xlabel near ticks, ...
1
vote
2answers
180 views

Plot horizontal histogram

I would want to plot a 2D horizontal histogram, with ybar interval, xlabel and x tick label rotate by 45 degrees. I would to put symbolic y coords and fill all white. How can I represent it? I've ...
3
votes
2answers
129 views

Pgfplots: xbar issues in histogram

I want to create an histogram with grouped bars of the same color and around evenly spaced (arbitrary) y-values. I managed to get this: Now, I want to put custom ytick labels in the center of each ...
0
votes
1answer
149 views

Interval missing and extrange behavior in frequency polygon

I am preparing a material for students about Statistics and I have this generic-foo frequency polygon as an example, without the corresponding Histogram. I would like all intervals to be displayed in ...
1
vote
1answer
543 views

How to make particular nodes near coords labels bold in a pgfplots bar chart?

A follow up question to my previous question: I am trying to plot a simple bar chart. The data is read and sorted from a csv file. However I couldn't able to change the style of particular labels (...
4
votes
1answer
477 views

How to make particular xticklabels bold in a pgfplots histogram?

I am trying to plot a simple histogram by using a code sample from pgfplots: \begin{tikzpicture} \begin{axis}[ xbar, xmin=0, width=12cm, height=3.5cm, ...
3
votes
1answer
170 views

Fitting Dataset Histogram (3 categories)

I am struggling with a Tikz figure. As you can se in the picture, there are three different Histograms, each for a specific Survey. The problem is that i can't fit the first and the second histogram ...
2
votes
1answer
342 views

Histogram Excel-like

I am a newbie with pgfplots so, after searching on internet and on pdf manuals, I am asking here. I need to reproduce with LaTeX some graphics like this one I made with Excel, can anyone help me with ...
3
votes
1answer
603 views

Histogram in LaTeX with random x axis values

I am trying to create a histogram in LaTeX for the following coordinates with random values (22,7041) (3,299) (4,299) (5,305) (6,64) (7,127) (8,469) (9,279) (10,237) (11,267) (12,257) (13,200) (14,...
3
votes
1answer
403 views

Plotting a line over 'histogram-like' bins

I have to convert the following JPEG image into a TeX-equivilant diagram using tikz and pgfplots. This is what I have sofar: \documentclass[border=3mm]{standalone} \usepackage{pgfplots} \begin{...
0
votes
1answer
989 views

PGFPLOTS: Drawing a Histogram with x ticks to the left

This is my histogram: \documentclass{article} \usepackage{pgfplots,tikz} \pgfplotsset{width=7cm,compat=1.13} \usepgfplotslibrary{statistics} \begin{document} \begin{tikzpicture} \begin{axis}[...
0
votes
1answer
285 views

Latex - placing and sizing histograms

I can fit several boxplots onto the same page (actually into the same picture) but can't get more than 2 histograms vertically, and only 1 horizontally. How do you resize histograms and set the number ...
1
vote
1answer
182 views

Drawing a histogram with boxes

I try to draw a histogram with boxes. Drawing histograms with pgfplots seems extremely simple, and I'm sure what I want to to isn't any more difficult, but I couldn't find a good example. Hence the ...
0
votes
1answer
690 views

Building a pgfplot bar chart with values above each bar

It is the first time for me trying to build a bar chart. Obviously I am encountering some problems with that. The plot should have some space between bars. And the y-Values should be above each bar. ...
-1
votes
2answers
122 views

How can i draw a curve like one shown below in latex?

How can i draw a curve like one shown below in latex?
0
votes
2answers
147 views

Add annotations to histogram part 2

This question is building on the solution given here. I wanted to add a thick line to the enteries that are "0" so that the histogram would look like this: Here is the code: \documentclass[border=...
3
votes
1answer
647 views

Fine tune on histogram pgfplot

Consider the following plot (MWE below): I have some questions. [solved] Why is there an extra 1 after the interval [10,11)? [see edit below] How to make the last interval to be closed? I mean, I'd ...
2
votes
2answers
490 views

Add annotations to histogram

I would like to add the annotations and axis arrows like this to my histogram Here is my code so far: \documentclass[border=3mm, tikz, preview ]{...
1
vote
1answer
548 views

Pgfplots: density in histogram by factor 10 too small

I have a set of data which I want to plot using the hist=density feature. The first two bins which are created already contain more than 20% of the data each. Unfortunately, the output graphic states ...
5
votes
1answer
236 views

pgfplots histogram with custom symbolic coords [closed]

I'm trying to modify a simple example of a histogram with symbolic coordinates from the pgfplots 1.14 manual, page 503. This is the example (mwe): \documentclass{article} \usepackage{pgfplots} \...
1
vote
1answer
388 views

TikZ histogram of multiple experiments with normalization

I want to plot a histogram for multiple experiments where possible events are numbers between 1 and 10. Since the experiments have different numbers of draws, the histogram shall display each ...
3
votes
1answer
160 views

Compute frequencies with pgfplots

On the page 480 of this doc http://pgfplots.sourceforge.net/pgfplots.pdf of the pgfplots package, it talks about of how we can construct histograms from data, and says that "Then, it creates the N + 1 ...
1
vote
0answers
110 views

Histogram with big value and a lot of small value

\documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ symbolic x coords={100,95,90,85,81,80}, ylabel = {x}...
3
votes
0answers
716 views

How to set a fixed bin width for pgfplots histogram?

I want to plot multiple histograms next to each other using pgfplots, and I found the nice statistics library. However, I can't find how I can set the bin width at a fixed size instead of the amount ...