[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
org-plot - changing colors
From: |
Stephan Fabel |
Subject: |
org-plot - changing colors |
Date: |
Thu, 30 Apr 2020 04:25:48 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Hello,
apologies if this is the wrong group.
I'm trying to plot a table which looks like this:
| Team | Bu | R | Bk | G | T | % Bu | % R | % Bk | %G |
|-----------+----+---+----+----+----+------+------+------+------|
| Team 1 | 4 | 5 | 2 | 24 | 35 | 11.4 | 14.3 | 5.7 | 68.6 |
| Team 2 | 3 | 2 | 1 | 35 | 41 | 7.3 | 4.9 | 2.4 | 85.4 |
| Team 3 | 5 | 8 | 3 | 6 | 22 | 22.7 | 36.4 | 13.6 | 27.3 |
| Team 4 | 6 | 4 | 5 | 15 | 30 | 20.0 | 13.3 | 16.7 | 50.0 |
| Team 5 | 5 | 7 | 4 | 22 | 38 | 13.2 | 18.4 | 10.5 | 57.9 |
| Team 6 | 8 | 9 | 6 | 27 | 50 | 16.0 | 18.0 | 12.0 | 54.0 |
| Team 7 | 1 | 3 | 0 | 19 | 23 | 4.3 | 13.0 | 0.0 | 82.6 |
| Team 8 | 10 | 7 | 1 | 4 | 22 | 45.5 | 31.8 | 4.5 | 18.2 |
| Team 9 | 3 | 4 | 1 | 15 | 23 | 13.0 | 17.4 | 4.3 | 65.2 |
| Team 10 | 2 | 4 | 1 | 18 | 25 | 8.0 | 16.0 | 4.0 | 72.0 |
| Team 11 | 1 | 1 | 0 | 21 | 23 | 4.3 | 4.3 | 0.0 | 91.3 |
| Team 12 | 8 | 2 | 1 | 45 | 56 | 14.3 | 3.6 | 1.8 | 80.4 |
Plotting this with
#+PLOT: ind:1 deps:(7 8 9 10) type:2d with:histogram \
set:"ylabel '%'" set:"style fill solid 0.5"
works like a charm, except I'd like to change the colors of the
histogram bars (as it turns out Bu=Blue, R=Red, Bk=Black and G=Green as
per the title row in the table).
What's the recommended way to go about this? I'm not super familiar with
gnuplot, but before I go deep there, I figured I'd ask if there's a
simple 'org-plot'-way of doing this?
Thanks,
Stephan
- org-plot - changing colors,
Stephan Fabel <=