Bug 91668 - add support for orthonormal axes in 2D plots
Summary: add support for orthonormal axes in 2D plots
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: unspecified Solaris
: NOR wishlist
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-19 14:12 UTC by Nicolas Brisset
Modified: 2004-10-27 06:19 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Brisset 2004-10-19 14:12:47 UTC
Version:           1.0.0_devel (using KDE 3.3.0, compiled sources)
Compiler:          gcc version 3.3.2
OS:                SunOS (sun4u) release 5.8

It would be nice to be able to manually force orthonormal axes (i.e. one cm on screen in the x and y directions correspond to the same differences in x and y values), as the result is very hard to achieve with manual zooming. This could probably fit into the "Axes" tab of the "Plot Dialog".
Comment 1 Netterfield 2004-10-19 18:33:48 UTC
Is this another zooming option?  (Like X only, Y only, XY, now add 'Normal - from X'  and  'Normal, from Y').  If so, if you do this zoom, and then resize the window, what should happen.  Should it get re-zoomed based on the new geometry.

Another way do it is to have a key 'n' and 'N' which will make the axis normal, for the current window geometry, based on either the X or Y axis.
This would *not* be sticky.


Comment 2 Nicolas Brisset 2004-10-19 18:42:49 UTC
Zooming orthonormal plots is tricky indeed... 
I'd suggest the following: add the key shortcuts you suggested (plus corresponding entries in the contextual menu). 'n' means keep current X, zoom Y (in or out as needed) to make the axes orthonormal. 'N' means the same but keeps Y and changes X. It could be 'one shot actions', i.e. subsequent behavior is the usual as if that option did not exist.
After such an action, it should be possible to scroll as that does not break orthonormality. If the user wants to see more, he will have to zoom the usual way and then select the right 'normalization' action. I think this behavior is acceptable for such a feature (not too common but important in some cases). 
Comment 3 Andrew Walker 2004-10-27 06:19:29 UTC
CVS commit by arwalker: 

Add ability to normalize x-axis to y-axis and vice versa.

CCMAIL: 91668-done@bugs.kde.org


  M +113 -20   kst2dplot.cpp   1.293
  M +4 -0      kst2dplot.h   1.123