On Sat, Apr 21, 2018 at 3:17 PM, arkkimede <arkkim...@gmail.com> wrote: > Thanks to Nicola and Yuri for the suggestions! > Let me summarize: > > 1. Use pdf instead of png > 2. Define the dimension of pdf in points; > > The last open point is: how to get a "preview" on the screen (this time in > pixels) to decide whether to print or not the plot on pdf?
As far as I can tell, GtkPrintOperation and GtkPrintOperationPreview do that for you automatically. > In other words: there is a relationship between points and pixels? Yes, there is. It’s complicated and Gtk+/Gdk are supposed to shield you from having to deal with it. _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list