Printing with gtk-2.10

        Hi there!
        
        I implemented a Print method with gtk-2.10 PrintOperations...
        It was not
        easy, because of some transformations issues inside
        matplotlib...
        
        My wish is: The plot window navigation bar should provide a
        print button
        in future. I think many people are missing this button.

If I understand correctly you are suggesting that a new icon, "print the
figure" be added to the matplotlib toolbar, to function in a similar way
to the "File / Print .." menu on many other applications.
I don't do any printing myself so it does not affect me, but it looks
like a reasonable request. However, I didn't see any replies to your
mail so are there really many matplotlib people missing this button?

        Here, I want to provide code for printing the screen, just
        like the save
        button on the navigation bar.
        It is the merge of the save button's code and the code in
        pygtk-2.10.1/examples/pygtk-demo/demos/print_editor.py
        
        Maybe, there is already a lot of print code available for
        other GUI
        backends, if it will be shared, it could become part of
        matplotlib...

I think that GUI backend printing code will be GUI backend-specific and
not suitable to be shared among backends.

        Yours, Achim
        
        (Sorry, I could not provide a running program, because I am
        short in
        time. The code is working in a bigger project
        http://www.fkp.physik.tu-darmstadt.de/damaris/ )

Steve

Send instant messages to your online friends http://au.messenger.yahoo.com

···

On Wed, 2006-12-20 at 04:27 -0800, matplotlib-users-request@lists.sourceforge.net wrote:

Hi Steve!

Yes, that's right. Most of the people will help themselves with saving
the picture and then printing by an arbitary program.

On Linux I would implement printing via pipelines to lp, but on Windows
I have no clue how to get the job done. So I was glad to find the
PrintOperations for GTK2 (>=2.10), which were portable to different OS
supported by GTK.

For a print button in matplotlib it is necessary to find implementations
for other widget sets:
* tk
* wx
* qt
I expect, that there is enough support for printing in qt, but I do not
know anything about tk or wx.

My code is just a starter for this process... or at least a try.

Yours, Achim

Steve Chaplin wrote:

···

If I understand correctly you are suggesting that a new icon, "print the
figure" be added to the matplotlib toolbar, to function in a similar way
to the "File / Print .." menu on many other applications.
I don't do any printing myself so it does not affect me, but it looks
like a reasonable request. However, I didn't see any replies to your
mail so are there really many matplotlib people missing this button?

Achim Gaedke wrote:

For a print button in matplotlib it is necessary to find implementations
for other widget sets:
* tk
* wx
* qt

wx has pretty good print support. However, with the wx back-end, you'd need to decide if you want to send the bitmap Agg created to the printer, or revert to using wx Drawing calls. And someone still has to write the code ---

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...