Hi!
In Windows the "win.print" function allows plotting directly to a
printer (or copying an open device to the printer). This is very
convenient to quickly print a plot once it looks good.
Is there an equivalent function under Linux? For example through CUPS,
IPP, LPD or other ?
Obviously with a printer on the parallel port one could write
postscript("/dev/lp0") but what about network printers?
Currently what I do is printing the open device to a postscript() file,
open this file in a postscript viewer and print it from there. But I'm
lazy and a win.print-like shortcut would be welcome.
Thanks,
Xavier
PS: I'm running Ubuntu 10.04 64bit.
Equivalent of win.print for Linux
5 messages · Raphael Saldanha, Xavier Robin, Brian Ripley
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20111028/56c3d93a/attachment.pl>
Thanks Raphael, dev.print will create a copy of the device into another device, but it won't actually push the data to a paper printer unless that other device represents a printer device (as win.print does). Typically in Windows I use it together with win.print as dev.print(win.print, printer=blah) Now the question is, is there a printer device equivalent to win.print for Linux? Thanks, Xavier
On Fri, Oct 28, 2011 at 15:23, Raphael Saldanha wrote:
I have never used, but take a look on ?dev.print On Fri, Oct 28, 2011 at 11:16 AM, Xavier Robin <Xavier.Robin at unige.ch>wrote:
Hi!
In Windows the "win.print" function allows plotting directly to a
printer (or copying an open device to the printer). This is very
convenient to quickly print a plot once it looks good.
Is there an equivalent function under Linux? For example through CUPS,
IPP, LPD or other ?
Obviously with a printer on the parallel port one could write
postscript("/dev/lp0") but what about network printers?
Currently what I do is printing the open device to a postscript() file,
open this file in a postscript viewer and print it from there. But I'm
lazy and a win.print-like shortcut would be welcome.
Thanks,
Xavier
PS: I'm running Ubuntu 10.04 64bit.
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Xavier Robin Biomedical Proteomics Research Group Department of Structural Biology and Bioinformatics Faculty of Medicine, University Medical Center University of Geneva 1, rue Michel Servet - CH-1211 Gen?ve 4 - Switzerland Tel: (+41 22) 379 41 69 Fax: (+41 22) 379 59 84 Xavier.Robin at unige.ch
See the help for postscript ... especially the 'Printing' section.
On Fri, 28 Oct 2011, Xavier Robin wrote:
Hi!
In Windows the "win.print" function allows plotting directly to a
printer (or copying an open device to the printer). This is very
convenient to quickly print a plot once it looks good.
Is there an equivalent function under Linux? For example through CUPS,
IPP, LPD or other ?
Obviously with a printer on the parallel port one could write
postscript("/dev/lp0") but what about network printers?
Currently what I do is printing the open device to a postscript() file,
open this file in a postscript viewer and print it from there. But I'm
lazy and a win.print-like shortcut would be welcome.
Thanks,
Xavier
PS: I'm running Ubuntu 10.04 64bit.
Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Thank you, it was exactly what I was looking for! Regards, Xavier Le 28. 10. 11 15:45, Prof Brian Ripley a ?crit :
See the help for postscript ... especially the 'Printing' section. On Fri, 28 Oct 2011, Xavier Robin wrote:
Hi!
In Windows the "win.print" function allows plotting directly to a
printer (or copying an open device to the printer). This is very
convenient to quickly print a plot once it looks good.
Is there an equivalent function under Linux? For example through CUPS,
IPP, LPD or other ?
Obviously with a printer on the parallel port one could write
postscript("/dev/lp0") but what about network printers?
Currently what I do is printing the open device to a postscript() file,
open this file in a postscript viewer and print it from there. But I'm
lazy and a win.print-like shortcut would be welcome.
Thanks,
Xavier
PS: I'm running Ubuntu 10.04 64bit.
Xavier Robin Biomedical Proteomics Research Group Department of Structural Biology and Bioinformatics Faculty of Medicine, University Medical Center University of Geneva 1, rue Michel Servet - CH-1211 Gen?ve 4 - Switzerland Tel: (+41 22) 379 41 69 Fax: (+41 22) 379 59 84 Xavier.Robin at unige.ch