[Tikzdevice-bugs] Background color for tikzDevice
Yihui Xie
xieyihui at gmail.com
Sun Feb 21 00:21:49 CET 2010
Hi Charlie and Cameron,
Just a short question: does the tikz device support background color?
For instance:
\documentclass{article}
\usepackage[nogin]{Sweave}
\usepackage{tikz}
\begin{document}
\SweaveOpts{cache=TRUE}
<<bg-fig,fig=TRUE,width=5,height=5>>=
xx = runif(100)
yy = runif(100)
par(bg = "black", mar = rep(0, 4), pch = 20)
plot(xx, yy, col='yellow')
@
\end{document}
There is no black background in the PDF output of the above code...
Thanks for the terrific tikzDevice and pgfSweave!
Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-6609 Web: http://yihui.name
Department of Statistics, Iowa State University
3211 Snedecor Hall, Ames, IA
More information about the Tikzdevice-bugs
mailing list