Linked Questions

1
vote
0answers
580 views

Table of ybar plots with specific colors [duplicate]

I am trying to use specific coloring in an table of ybar plots. Maybe someone can help me out here. I have read other threads concerning the coloration of ybars but none of them really worked. This ...
16
votes
1answer
6k views

Filter rows from a table

I have a large table that contains results for many instances, and I want to make separate tables and plots grouped by one (or more) field. In this minimal working example, I want to make a table and ...
8
votes
1answer
6k 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. orange) ...
12
votes
2answers
316 views

Question on interpretation of a pgfplotsset

I am trying to understand the following code: \pgfplotsset{ discard if not/.style 2 args={ x filter/.code={ \edef\tempa{\thisrow{#1}} \edef\tempb{#2} \...
10
votes
1answer
3k views

How to read a specific portion of a data file in pgfplots

I have a data file which contains all the experiments that have been conducted for different cases. Is it possible in pgfplots to only read specific portion of the file and plot the results? Let's ...
7
votes
1answer
3k views

Create custom colored PGFPlots ybar with consistent spacing

I am trying to create a ybar graph that has consistent spacing between a set of columns. I have obtained the color scheme I need in the following example, based off guidance from this question on ...
8
votes
2answers
2k views

create a stacked histogram with tikz

I try to create a stacked histogram. Like this: My data consists of classes (0-4) and a float value for each class. I already have a histogram for all mean values. But I would like to color the bars ...
7
votes
1answer
980 views

Histogram: different color for each bar

I have the following code. \documentclass[a4paper,twoside,12pt]{article} \usepackage[T1]{fontenc} \usepackage[utf8x]{inputenc} \usepackage[english]{babel} \usepackage{pgfplotstable} \definecolor{...
4
votes
1answer
679 views

pgfplots, how to select only certain classes to plot

I started to use this fantastic package pgfplots, and I would need a little help. In this example taken from the manual (page 106) \begin{tikzpicture} \begin{axis}[scatter/classes={ a={mark=square*,...
13
votes
1answer
981 views

pgfplots: Coloring a Single Column in a Histogram Differently

I have a huge data file and want to visualize the data using histograms. I would like to color a single columns differently than the rest. Here's an example from the documentation (Section 5.11.2 ...
4
votes
2answers
674 views

filter pgfplots data more than once (e.g. with discard if)

I want to filter a dat file more than once (i.e., filter on multiple columns), and the usual solution with "discard if" and "discard if not" doesn't seem to work. I.e., the following (were file.dat ...
3
votes
2answers
773 views

Conditional color and mark style for scatter plot in PGFPlots

I have a data file that has two columns each containing a class, one for color (QoI) and one for marker type (type). I would like points that have have the same QoI value be the same color, but have a ...
2
votes
1answer
2k views

How to add vertical and horizontal lines to ybar figure and defining colors for bars?

I'm trying to reproduce a figure from a paper so it would be in line with the visual style of my paper. The figure I'm trying to reproduce is Since originally posting I've found a way to define the ...
0
votes
1answer
1k views

How do I apply nodes near coords to a single bar / to a single plot?

After reading the pretty population pyramid question, I was inspired to "Tufte-ify" the graph to remove redunancy and clutter (and to become more familiar with pgfplots). I modified the code from ...
4
votes
1answer
954 views

How to plot data from multiple filters using pgfplots

I'm searching for a way to apply multiple filters to a data input and plot the result of each filter in one axis environment. I found the following question which applies one filter but uses the ...

15 30 50 per page