print to aprint device!

Dear all,

I want to print the plotted curves to a printer NOT to a file.
if you know somthing such as "QwtPlotPrintFilter " class in Qwt.

Which module help me?

···

--
View this message in context: http://old.nabble.com/print-to-aprint-device!-tp29149286p29149286.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Since no-one has replied to this, let me see if I can come up with an idea.

Assuming you are using Linux or a Mac, I wonder if it is somehow possible to “save” a .ps file to a postscript device? I have never had to do any Linux magic with CUPS, so maybe this isn’t possible. Anybody else have any thoughts?

Ben Root

···

On Tue, Jul 13, 2010 at 6:27 AM, sa6113 <s.payandeh@…287…> wrote:

Dear all,

I want to print the plotted curves to a printer NOT to a file.

if you know somthing such as "QwtPlotPrintFilter " class in Qwt.

Which module help me?

View this message in context: http://old.nabble.com/print-to-aprint-device%21-tp29149286p29149286.html

Sent from the matplotlib - users mailing list archive at Nabble.com.


This SF.net email is sponsored by Sprint

What will you do first with EVO, the first 4G phone?

Visit sprint.com/firsthttp://p.sf.net/sfu/sprint-com-first


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

2010/7/15 Benjamin Root <ben.root@...1304...>:

Assuming you are using Linux or a Mac, I wonder if it is somehow possible to
"save" a .ps file to a postscript device? I have never had to do any Linux
magic with CUPS, so maybe this isn't possible. Anybody else have any
thoughts?

Normally you can cat the .ps file to lpr or similar:

$ cat file.ps | lpr -P my_printer
$ lpr -P my_printer file.ps

I'm not sure if it works also for eps files.

On mac I'd print it using the system. Actually my first inspection
now shows that apparently you can use lpr also on mac:

$ lpq
HP_LaserJet_4100n_at_CERN_ISOLDE_offices ist bereit
keine Einträge

(meaning the printer is ready and there are no entries)

But I don't know if all printers are listed in the lpq list, because
for me one is missing.

Friedrich