Bug 95212

Summary: orthonormal plots on screen are no longer orthonormal in printed postscript
Product: [Applications] kst Reporter: Nicolas Brisset <nicolas.brisset>
Component: generalAssignee: Andrew Walker <arwalker>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.x   
Target Milestone: ---   
Platform: unspecified   
OS: Solaris   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nicolas Brisset 2004-12-15 17:11:36 UTC
Version:           1.1.0_devel (using KDE 3.3.0, compiled sources)
Compiler:          gcc version 3.3.2
OS:                SunOS (sun4u) release 5.8

A feature was introduced recently to allow orthonormal plots. It works well on screen (as measured with kruler), but apparently postscript output is not WYSIWYG as some things are rescaled. At the end, I get a plot that looks a bit distorted in the .ps file, which is actually the one I wanted to use :-(
Note that I live in an area where the default paper size is A4, but kst seems to force it to US letter (I can't change it in the print dialog like in other KDE apps). Maybe that's a hint ?
Comment 1 Andrew Walker 2004-12-15 18:55:56 UTC
I assume by orthonormal you mean that the axes use the same physical scaling.

If so then the orthonormal setting for a plot is a one time thing only. i.e. after setting the axes to be orthonormal if you zom, resize, etc then the setting is discarded.

To achieve the orthonormal setting in the printed or exported plot we would need to add a checkbox to the export and print dialog.
Comment 2 George Staikos 2004-12-15 19:03:44 UTC
On Wednesday 15 December 2004 12:55, Andrew Walker wrote:
> To achieve the orthonormal setting in the printed or exported plot we would
> need to add a checkbox to the export and print dialog.

  kstprintoptionspage.h/cpp will help with that.
Comment 3 Andrew Walker 2004-12-15 20:56:30 UTC
The better alternative may to provide a checkbox that says something like "maintain aspect ratio" which would give a more WYSIWYG result and automatically retain the "orthonormal" axes if present. If checked the same aspect ratio would be used for the export/print as on the screen, and so the plots may not fill the entire page. 

Unless I hear otherwise I'll go ahead and implement this.
Comment 4 George Staikos 2004-12-15 21:01:23 UTC
> ------- The better alternative may to provide a checkbox that says
> something like "maintain aspect ratio" which would give a more WYSIWYG
> result and automatically retain the "orthonormal" axes if present. If
> checked the same aspect ratio would be used for the export/print as on the
> screen, and so the plots may not fill the entire page.
>
> Unless I hear otherwise I'll go ahead and implement this.

 Where would this go?

Comment 5 Andrew Walker 2004-12-15 21:06:18 UTC
There would be checkboxes on the export and print dialogs.

On Wednesday 15 December 2004 12:01, George Staikos wrote:
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.
>
> http://bugs.kde.org/show_bug.cgi?id=95212
>
>
>
>
> ------- Additional Comments From staikos kde org  2004-12-15 21:01 -------
>
> > ------- The better alternative may to provide a checkbox that says
> > something like "maintain aspect ratio" which would give a more WYSIWYG
> > result and automatically retain the "orthonormal" axes if present. If
> > checked the same aspect ratio would be used for the export/print as on
> > the screen, and so the plots may not fill the entire page.
> >
> > Unless I hear otherwise I'll go ahead and implement this.
>
>  Where would this go?
> _______________________________________________
> Kst mailing list
> Kst@kde.org
> https://mail.kde.org/mailman/listinfo/kst

Comment 6 George Staikos 2004-12-15 21:09:24 UTC
On Wednesday 15 December 2004 15:06, Andrew Walker wrote:
> ------- There would be checkboxes on the export and print dialogs.

> > > ------- The better alternative may to provide a checkbox that says
> > > something like "maintain aspect ratio" which would give a more WYSIWYG

 Ah ok I understand.  I thought by "better alternative" you meant "alternative 
to putting a checkbox in the print dialog".  This is definitely the right 
approach.  I say go for it.

Comment 7 Andrew Walker 2004-12-16 22:07:20 UTC
The aspect ratio of the window can now be fixed by the user when printing or exporting to a graphics file. This should also act to fix the aspect ratio of the axes, assuming no major discrepancies in the size of the fonts used.