From: "Joshua Krämer" <joshua.kraemer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: ntg-context-wvrSQK3plZs@public.gmane.org
Subject: error bar gap with pgfplots/tikz and custom colour
Date: Mon, 20 Jan 2014 16:47:13 +0100 [thread overview]
Message-ID: <20140120164713.38147078@Klapprechner1.site> (raw)
Dear list,
I'm using pgfplots to create some bar charts with error bars, and I
want to use custom colours for them. This works, but if I mix a
custom colour with another colour, it results in a gap between the
error bar line and the error bar mark. If two custom colours are
mixed, the gap seems to be doubled. Mixing with predefined colours
works normally. MWE:
\usemodule[tikz]
\usemodule[pgfplots]
\definecolor [Blue] [h=3465a4]
\definecolor [White] [h=ffffff]
\pgfplotsset{compat=newest}
\starttext
\starttikzpicture
\startaxis[ybar, error bars/y dir=both, error bars/y explicit]
\addplot+[blue!50!white] coordinates {(1,5) +- (0,3)};
\addplot+[Blue] coordinates {(1,5) +- (0,3)};
\addplot+[Blue!50!white] coordinates {(1,5) +- (0,3)};
\addplot+[Blue!50!White] coordinates {(1,5) +- (0,3)};
\stopaxis
\stoptikzpicture
\stoptext
Kind regards,
Joshua Krämer
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
reply other threads:[~2014-01-20 15:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20140120164713.38147078@Klapprechner1.site \
--to=joshua.kraemer-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=ntg-context-wvrSQK3plZs@public.gmane.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).