#75 magnification not applied during ps export

closed-invalid
None
5
2008-10-29
2008-10-24
Hannes
No

Hello,

attached testcase testgtkplotprint.c does not show magnification in ps export.
1. Start testgtkplotprint
2. Press hardcopy (pic_1.eps generated)
3. Resize window
4. Press hardcopy (pic_2.eps generated - fonts, axis tics etc. not scaled)
...

At least I could manage to obtain the desired behaviour by applying the following patch:

--- gtkplotprint.c.orig 2008-10-24 14:36:42.000000000 +0200
+++ gtkplotprint.c 2008-10-24 15:55:48.000000000 +0200
@@ -123,7 +123,7 @@ gtk_plot_export_ps_with_size
pc = plot->pc;

plot->pc = GTK_PLOT_PC(ps);
- plot->magnification = 1.0;
+ plot->magnification = m;
recalc_pixels(plot);

gtk_plot_paint(plot);

Similar code is also used in gtk_plot_export_ps().

Regards
Hannes

Discussion

  • Hannes

    Hannes - 2008-10-24

    test application to show/verify behaviour

     
  • Hannes

    Hannes - 2008-10-24
    • summary: maginifation not applied during ps export --> magnification not applied during ps export
     
  • Hannes

    Hannes - 2008-10-24
    • assigned_to: nobody --> feiguin
    • status: open --> open-works-for-me
     
  • Adrian E. Feiguin

    • status: open-works-for-me --> open-invalid
     
  • Adrian E. Feiguin

    This is a feature, not a bug. The magnification is only for visualization purposes; the absolute size of the plot is fixed. In order to export with a custom size, you need to to use gtk_plot_export_ps_with_size

    Saludos,
    <ADRIAN>

     
  • Adrian E. Feiguin

    • status: open-invalid --> closed-invalid
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks