# Tagged Questions

A {boxplot} is used as a descriptive statistic. Both {pgf-plots} and {pstricks} offers this as a graphing tool.

51 views

### Can I make an ellipse on a box-plot?

I saw a nice way to make a box plot here. But I would like to mark where a specific student is. So can I draw a small ellipse on the box plot. E.g. at 82%? I am thinking an ellipse is better, because ...
46 views

### Box Plots in tikzpicture - Two Plots per y tick

I need a Box plot with two boxes on each ytick. Any ideas? \begin{tikzpicture} \begin{axis} [ title=Scenario 1, height=6.0cm, width=8.0cm, xmin=6, xmax=20, xtick={6,8,...,20}...
43 views

### Drawing multiple box plots from a file

I've got data in the following format n lw lq m uq uw 50 200 209 237 327 569 100 376 379 386 390 391 150 ... ... Where lw = lower whisker, lq = lower quartile, etc. I want to plot each box against ...
86 views

### pgfplots boxplot first column as draw position

I have data like this in a file. 1 0.1 0.2 0.3 0.8 ... 5 0.3 0.5 0.6 0.9 ... 10 0.2 0.3 0.7 0.10 .. ... How do I tell boxplot to use the first column as draw position and compute the box for the ...
95 views

### How to fill the parameters of boxplot prepared with data from table using PGFPlots?

I want to draw a boxplot using boxplot prepared@ Page 469 of pgfplots-manual; v1.13, with the values of lower whisker, lower quartile, median, higher quartile, and higher whisker from a data file. ...
40 views

### How to include a pandas boxplot in my document?

Usually, I include matplotlib plots in my tex document like that: I use matplotlib to plot and save the figure as vector graphic (svg) import matplotlib.pyplot as plt plt.figure(figsize=(15, 8)) ...
130 views

### Is it possible to user-define the percentages for lower/upper whisper in boxplot of PGFPlots?

According to Section 5.12.1 of the manual of PGFPlots; Revision 1.13 (2016/01/06), boxplot visualizes (see Page 472): Median is the 0.5–quantile of the input data. Lower quartile is the 0.25–...
93 views

### PGF boxplot with annotations

I read the section about boxplots in the pgfplots manual but I cant get it to work. I need to display the median inside the boxplot above or below the line of the median. How can I add the values to ...
110 views

### Unmodified boxplot with pgfplots

When using pgfplots to create a boxplot, it'll draw a modified box plot by default, where the whiskers are the largest/smallest non-outlier values and the outliers are represented by dots. Is there a ...
129 views

### Using named nodes as pgfplots coordinates

Is it possible to use named nodes as coordinates in an \addplot command? I am trying to plot a line through the averages of a number of boxplots calculated by pgfplots (rather than using boxplot ...
294 views

### Showing legend for boxplot in pgfplots

I am trying to display a legend for a boxplot created in pgfplots. However the size of the legend is almost as large as the plot and covers up all of my plot, how do I fix this? \documentclass{...
73 views

### Box plots from dataset with metadata in one column and data in another

How can I instruct pgfplots to generate a boxplot from a dataset with an identifier in one column (Label in the example below) and the data in another column (Value in the example below)? I would like ...
225 views

### Pgfplots Boxplots with a thick line at the mean value

pgfplot produces nice looking plots, that have consistent look and feel. But sometimes you have a good reason to change that look, and I found it tricky to change style of an specific line, circle, ...
199 views

### Groups of boxplots using symbolic coordinates

I would like to create a plot similarly as to the bar plot example, but with boxplots instead of bars. So far what I have this MWE: \documentclass{article} \usepackage{amsmath} \usepackage{...
300 views

### How to change the mark in a pgfplots boxplot

I have my own custom style for boxplots which I like very much. I like it so much I would like to use it everywhere. I used it with the old boxplots, and it did everything I wanted. However, the ...
83 views

### How to fix pgf boxplot error with only zero value in samples?

Following this previous question I am still figuring out how to properly handle different "borderline" cases with the boxplot feature provided by pgfplots. The following MWE: \documentclass{...
200 views

### How to group box plots in pgf / tikz? [closed]

Grouping bar charts is easily done using pgf / tikz, e.g., \begin{tikzpicture} \begin{axis}[ width = 0.85*\textwidth, height = 4cm, major x tick style = transparent, xbar=2*\...
379 views

### pgfplots : Box Plots and two y axis

I'm trying to add some data points on another y axis along with box plots. My experience in TeX is quite limited and I'm not sure why my axis appears in the middle of my x axis instead of at the end ...
291 views

### PGFPLOTS: How To Put \addplot boxplot prepared Inside Macro Definition

I have a need to wrap the `\addplot [boxplot prepared]' inside a macro to greatly save typing. It seems simple enough, but the devil is in the details with macro expansion issues. Is this doable given ...
138 views

### PGFPLOTS defintion inside macro inside table or insert boxplots inside table

I am trying to take a plot of a series of boxplots and include/insert these into a table. The code came from a posting of using a data table to define a series of boxplots. The code for the table ...
436 views

### pgfplots generating incorrect boxplots

While trying to reproduce some boxplots using pgfplots (and analyzing samples automatically), I noticed that in some cases I was getting different plots from Matlab. I have left all the settings in ...
732 views

### PGFPLOTS boxplot data from inline file

I have The following code: \documentclass{article} \usepackage{filecontents} \usepackage{pgfplots, pgfplotstable} \usepgfplotslibrary{statistics} \begin{document} \pgfplotsset{width=7cm,compat=1....
300 views

### Why are some of my boxplots dashed?

Here's a MWE: \documentclass[a4paper]{standalone} \usepackage{pgfplots} \usepgfplotslibrary{statistics} \pgfplotsset{compat=1.8} \begin{document} \begin{tikzpicture} \begin{axis}[ boxplot/draw ...
316 views

### Loop through table for boxplot prepared

I am trying to produce figure with 2 boxplot prepared plots from an inline data file. I grabbed this code from here to use as a starting point. Given that the wrapper code allows the boxplot data to ...
182 views

### Barchart, Boxplot Data Table PGF Math Errors from mixed format inline data

My code for a horizontal bar chart with a summarizing boxplot is coming together, but I still have a nagging PGF Math problem if I try to plot the boxplot values, which are commented out at the bottom ...
662 views

### How can several boxplots be combined into a single figure as groups?

Currently I have the following MWE: \documentclass[a4paper]{standalone} \usepackage{pgfplots} \usepgfplotslibrary{external,colormaps,groupplots,statistics} \pgfplotsset{compat=1.8} \usepackage{tikz} ...
171 views

### My boxplot draws but the coordinates are NaN when I try to label the plot [closed]

I have been slowly getting my barchart with a boxplot to come together. My current project is to label the whiskers, quartiles and median. Using examples from the manual, no label is printed. This is ...
1k views

### Pgfplots 1.10 boxplot style options

I have been trying to add boxplots to my barcharts and I've finally got some where. After many hours of tearing through these forums and their examples and exhausting the PGFPLOTS 1.10 Manual I got ...
1k views

### Change boxplot style

I'm following this PGFPLOTS manual. At first I was enthusiastic with it. However I'm finding some difficulties on doing even basic things. Now I'm trying to change boxplot style. Up to now I wrote ...
1k views

### Problems with whiskers and outliers in boxplot

I'm trying to reproduce a boxplot from MATLAB using LaTeX. Unfortunately boxplot seems unable to draw outliers and also whiskers have some problems, see figure. The first two boxes seem to have ...
834 views

### pgfplots: How to change color of boxplot?

How is it possible to change the color of a boxplot from pgfplots? Black would be wounderful! Here is an MWE: \documentclass{scrartcl} \usepackage{pgfplots} \usepgfplotslibrary{statistics} \begin{...
589 views

### LaTeX Box plot drawing using pgfplots [closed]

Two issues I have in the following code. I want to put the box in the middle of the line and I like to show the for the maximum value. Any suggestion will be appreciate. Thanks. \documentclass{...
635 views

### Two boxplots per plot entry - shifting boxplots in pgfplots

I'm trying to compare the results of a control group and an experimental group under different conditions. To simplify, let's assume there is only one condition (ie. only one mark along the x axis ...
785 views

### Plotting R boxplots with pgfplots

I use quite a number of boxplots in my writing, and have chosen pgfplots as my plotting solution for a number of reasons (one of which is the benefit of having the data to build the plot in the tex ...
67 views

### How to change the endpoints of a picture in Latex but still keep the same length?

I am trying to make a table in LaTeX with 2 columns and 10 rows. Each row represents a different city and each column will represent a parameter. In each column I want to draw the mean and the ...
380 views

### pgfplots - box plots min and max x-values

Im using the following code from pgfplots to create box plots: \begin{tikzpicture} \begin{axis} [ ytick={1}, yticklabels={}, y=0.7cm ] \addplot+[boxplot] table[row sep=\\, ...
574 views

### Axes for notched box plots from data files

I am trying to create notched box plots similar to those shown in the picture from data files. I have managed code that creates the box plots with notches like I want (the code below without the ...
272 views

### pgfplot Boxplot How to change the thickness of median [closed]

Is there a way to change the thickness of median line in box plot. I am using the code given in Pgfplot : change the distance between 2 adjacent boxes in box plot
716 views

### Pgfplot : change the distance between 2 adjacent boxes in box plot

Hi I want to change the distance between 2 adjacent boxes in boxplot. I am using following code. What should I change in code to get it similar to as desirable diagram \begin{filecontents}{lmpqd.dat} ...
1k views

### Read boxplot prepared values from a table

Update: Is there any possibility of drawing two box plots this way using a single datatable as in the updated MWE below? I'm trying to use pgfplots 1.8's shiny new boxplot feature. As I am also ...
950 views

### pgfplots - draw boxplot without outliers

I am creating a boxplot with pgfplots, using the builtin statistics library. I load the input data from a table file. \usepackage{pgfplots} \usepgfplotslibrary{statistics} ... \begin{tikzpicture} \...
8k views

### Boxplot in LaTeX

I am new to LaTeX. How can I draw a boxplot in LaTeX. My data set is as below index median box_top box_bottom whisker_top whisker_bottom 0 1 1.2 0.4 1.5 0.2 1 2 2.3 1.5 2.7 1 2 0.7 1.4 0.5 1.9 0.1 ...
4k views

### Simpler boxplots in pgfplots - is this possible?

When I wanted to plot boxplots in pgfplots, I started using the solution proposed by Jake in the question linked to above. However, as I wanted to plot more than one set of boxplots in the same figure ...
1k views

### PGFplots and boxplots: How to tune width and separation of boxes?

I would like to use pgfplots to draw boxplots. This minimal example works fine for me. But I would like to display more data in this form \begin{filecontents}{testdata.dat} 0 1 1.2 0.4 1.5 0.2 1 2 ...
1k views

### Box plots with symbolic x coords

I'd like to use box plots with pgfplots. As an additional feature, I'd want my x coordinates to be symbolic. Currently, only the last line from the file data/gp.dat is plotted. It works fine, if I use ...
664 views

### Having difficulty with pstricks box plot, psaxes, pspicture

a TeX noob here. I wish to plot performance test results once every two weeks (or sooner) displaying a 2 week window. I saw a similar question: Can I use pgfplots to make a boxplot and the following ...
2k views

### Set a colormap to fill a bar plot using pgfplots

I'm trying to change the default color of the bar plot with a a colormap without success. The thing is that I don't like the default color sequence. However, I was wondering if there is a way of ...