18 Sep 00:56
color mix
From: Jae-Joon Lee <lee.j.joon@...>
Subject: color mix
Newsgroups: gmane.comp.python.matplotlib.devel
Date: 2008-09-17 22:58:45 GMT
Subject: color mix
Newsgroups: gmane.comp.python.matplotlib.devel
Date: 2008-09-17 22:58:45 GMT
Hello, Attached is a small patch to add a simple color mix operation support. For example, "red!30!white" mixes 30% of red with 70% of white. The syntax is borrowed from latex xcolor package (http://www.ukern.de/tex/xcolor.html). I found it quite handy with the fancy box thing. plt.text(0.6, 0.5, "test", size=50, rotation=30., bbox = dict(boxstyle="round", fc="orange!20!white", # 20% orange + 80% white ec="orange!50!white", # 50 % orange + 50% white ) ) plt.text(0.5, 0.4, "test", size=50, rotation=-30., bbox = dict(boxstyle="square", fc="aqua!50!green!20!white", ec="green!40!white", ) ) Any chance this could be included in matplotlib? Regards, -JJ
(Continue reading)

RSS Feed