[R] Lwd ignored when printing on Windows
Sundar Dorai-Raj
sundar.dorai-raj at pdf.com
Tue Jun 24 00:22:56 CEST 2003
Prof. Ripley,
I'm using one of following the
HPLaserJet-4000 (Driver: HP LaserJet 5Si/5Si MX PS)
HPLaserJet-4100DTN (Driver: HP LaserJet 8150 PCL 6)
You are correct: the lines are thicker on the hardcopy. When I plotted
the following:
plot(rnorm(10), type = "l", lwd = 5)
lines(rnorm(10), lwd = 1)
there is a difference on the plot. The first line is slightly darker
than the second. So it appears to actually be working properly though
it's not apparent unless you have the second line as a reference.
Note that saving the plot (File -> Save as) to emf and then printing the
resulting file produces much thicker lines using the above print drivers.
Regards,
Sundar
Prof Brian Ripley wrote:
> What printer driver are you using?
>
> I've just tried this and it works exactly as one would expect on my HP
> 970CXi, as well as cut-and-paste into other applications. It also worked
> printing to Acrobat Distiller (although all the lines were thinner there
> than on-screen and on the 970CXi, the ratio was still 1:5).
>
> We've been here before, and had to abandon some optimizations because of a
> bug in interpreting Windows metafiles in Word.
>
> On Mon, 23 Jun 2003, Sundar Dorai-Raj wrote:
>
>
>>Andy,
>> I've experienced the same thing. What's interesting is that printing
>>a plot (CTRL-P) with lwd = 25 makes lines on the hardcopy look like lwd
>>= 5. I'm using R1.7.1 on Win2000Pro.
>>
>>Regards,
>>Sundar
>>
>>Liaw, Andy wrote:
>>
>>>Dear R-help,
>>>
>>>Has anyone notice the problem that, on Windows (NT and XP), when printing a
>>>graph using the "File -> Print..." menu in the graphics window to print the
>>>graph, that line width seemed to be ignored in the printed output? For
>>>example, if I make a plot with plot(1:10, type="l", lwd=5), it looks right
>>>on screen, but when printed out using the menu, it looks like the plot was
>>>made with lwd=1. I've had this problem for quite a while (at least since
>>>1.3.x) and still present in 1.7.1. Has anyone else seen this, or just me?
>>>
>>>Best,
>>>Andy
>>>
>>>Andy Liaw, PhD
>>>Biometrics Research PO Box 2000, RY33-300
>>>Merck Research Labs Rahway, NJ 07065
>>>mailto:andy_liaw at merck.com <mailto:andy_liaw at merck.com> 732-594-0820
>>>
>>>
>>>
>>>------------------------------------------------------------------------------
>>>Notice: This e-mail message, together with any attachments, cont... {{dropped}}
>>>
>>>______________________________________________
>>>R-help at stat.math.ethz.ch mailing list
>>>https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>>>
>>
>>______________________________________________
>>R-help at stat.math.ethz.ch mailing list
>>https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>>
>
>
More information about the R-help
mailing list