From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id L3XcHDCaq14wRAAA0tVLHw (envelope-from ) for ; Fri, 01 May 2020 03:40:32 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id YH9tFzmaq15JdgAA1q6Kng (envelope-from ) for ; Fri, 01 May 2020 03:40:41 +0000 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:470:142::17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2CCC694330B for ; Fri, 1 May 2020 03:40:40 +0000 (UTC) Received: from localhost ([::1]:51460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUMXX-0006pC-AR for larch@yhetil.org; Thu, 30 Apr 2020 23:40:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53970) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUMWt-0006li-Vo for emacs-orgmode@gnu.org; Thu, 30 Apr 2020 23:40:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUMWr-00083P-IG for emacs-orgmode@gnu.org; Thu, 30 Apr 2020 23:39:59 -0400 Received: from pb-smtp20.pobox.com ([173.228.157.52]:62874) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUMDG-0004nT-KR for emacs-orgmode@gnu.org; Thu, 30 Apr 2020 23:19:43 -0400 Received: from pb-smtp20.pobox.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 2C650BDBBB; Thu, 30 Apr 2020 23:19:39 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to :subject:in-reply-to:references:date:message-id:mime-version :content-type; s=sasl; bh=6gKob0S84DT2NNamUZFIHTKIH28=; b=fMrk0g o9fPSPc01W3lpvjDQhoHLDVE6p4PvNjVURwp8xdp+bqYK928/SLFAM5ZuHxbJMc5 GBEEI496kd4LmkwagOjk9pA2e31emymfjULYA18ZT0R2InQb7xY7giE8D8Lv4Pdr Xv4moKU/co2zeTgJckx0jfxKqlqyElYlFy8K4= Received: from pb-smtp20.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 24E7DBDBB9; Thu, 30 Apr 2020 23:19:39 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=kyleam.com; h=from:to:subject:in-reply-to:references:date:message-id:mime-version:content-type; s=mesmtp; bh=BJtybYhQOHKxEf8JUBMXCWvYWBeUnGICynNK77BxJnM=; b=b2tTQqCyDn8m/VZwpGsBCW9Hd/NfLkZfrfIggv3vk7b6fPs7nmd426ciBmPkSiv6cC5mBAjSiDDnoJR80hN/TF0UeXPb34/OhdS7z6qasZE763WQ8mTa8Sp5AX2PAIxHxK4tkcPNfDRjSI7t8F21w6dsj3+JcmfHrl/O4xSiKBo= Received: from localhost (unknown [45.33.91.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp20.pobox.com (Postfix) with ESMTPSA id 8189ABDBB8; Thu, 30 Apr 2020 23:19:36 -0400 (EDT) (envelope-from kyle@kyleam.com) From: Kyle Meyer To: Stephan Fabel , emacs-orgmode@gnu.org Subject: Re: org-plot - changing colors In-Reply-To: <87mu6tcj0j.fsf@address-here.net> References: <87mu6tcj0j.fsf@address-here.net> Date: Fri, 01 May 2020 03:19:34 +0000 Message-ID: <87tv10gx4p.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 95D7A9F8-8B5A-11EA-889F-B0405B776F7B-24757444!pb-smtp20.pobox.com Received-SPF: pass client-ip=173.228.157.52; envelope-from=kyle@kyleam.com; helo=pb-smtp20.pobox.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/30 23:19:39 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 173.228.157.52 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 X-Spam-Score: -1.21 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=fMrk0g o; dkim=pass header.d=kyleam.com header.s=mesmtp header.b=b2tTQqCy; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 2001:470:142::17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Scan-Result: default: False [-1.21 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.4943123827652]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:142::/48:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.16), country: US(-0.00), ip: 2001:470:142::17(-0.49)]; DWL_DNSWL_FAIL(0.00)[kyleam.com:server fail,2001:470:142::17:server fail]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; RCPT_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[pobox.com:+,kyleam.com:+]; MAILLIST(-0.20)[mailman]; FREEMAIL_TO(0.00)[gmail.com,gnu.org]; RCVD_IN_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22989, ipnet:2001:470:142::/48, country:US]; TAGGED_FROM(0.00)[larch=yhetil.org]; MID_RHS_MATCH_FROM(0.00)[]; FROM_NEQ_ENVFROM(0.00)[kyle@kyleam.com,emacs-orgmode-bounces@gnu.org]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[pobox.com:s=sasl,kyleam.com:s=mesmtp]; URIBL_BLOCKED(0.00)[pobox.com:dkim,kyleam.com:dkim]; FROM_HAS_DN(0.00)[]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[kyleam.com]; HAS_LIST_UNSUB(-0.01)[]; RCVD_COUNT_SEVEN(0.00)[8]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: bFqNDm1h9UWU Stephan Fabel writes: > 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 | [...] > 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? I had luck changing the colors with a header like this, where the last two lines are the additional bits: #+PLOT: ind:1 deps:(7 8 9 10) type:2d with:histogram #+PLOT: set:"ylabel '%'" set:"style fill solid 0.5" set:"style fill solid 0.5" #+PLOT: set:"lt 1 lc rgb 'blue'" set:"lt 2 lc rgb 'red'" #+PLOT: set:"lt 3 lc rgb 'black'" set:"lt 4 lc rgb 'green'" I know very little about gnuplot and even less about org-plot, though, so there might be a better way to do this.