[Tikzdevice-bugs] Two subsequent color def?

Matthieu Stigler matthieu.stigler at gmail.com
Fri Apr 15 10:29:48 CEST 2011


Hi

I notice that the .tex generated contains many lines where the same 
color is defined twice:

\definecolor[named]{drawColor}{rgb}{0.66,0.43,0.04}

\definecolor[named]{drawColor}{rgb}{0.00,0.00,1.00}


While the second lines is the one I wanted, the first contains a color 
that I did not specify (in my case a brown). Where does it come from ? 
Can one prevent theis supplementary color to come?

Thanks!!

Example as before (check for double color in bottom of .tex, since first 
time lines get overwritten):

library(tikzDevice)

tikz("try.tex", standAlone=TRUE)
   op<-par(bg=11,bty="n", cex=2, mar=c(3,4,1,2)+0.1)
   x <- runif(100)
   plot(x, las=1, yaxt="n",tcl=0, ann=F, type="l", lwd=2, col="blue")
   grid(col="white", lty="solid", nx=NA, ny=NULL, lwd=2)
   lines(x, col="blue", lwd=2)
   axis(1, tcl=0, labels=FALSE, col="black", lwd=1, 
at=as.Date(c("1970-01-01","2011-01-01")))
   axis(2, las=2, tick=FALSE)
   par(op)
dev.off()


Thanks!!

Matthieu


More information about the Tikzdevice-bugs mailing list