From: Stephan Fabel <stephan.fabel@gmail.com>
To: emacs-orgmode@gnu.org
Subject: org-plot - changing colors
Date: Thu, 30 Apr 2020 04:25:48 -0700 [thread overview]
Message-ID: <87mu6tcj0j.fsf@address-here.net> (raw)
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
next reply other threads:[~2020-04-30 11:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-30 11:25 Stephan Fabel [this message]
2020-05-01 3:19 ` org-plot - changing colors Kyle Meyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mu6tcj0j.fsf@address-here.net \
--to=stephan.fabel@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.