Bug 135037

Summary: The Y label should update when a new curve is added
Product: [Applications] kst Reporter: Nicolas Brisset <nicolas.brisset>
Component: generalAssignee: kst
Status: RESOLVED INTENTIONAL    
Severity: normal    
Priority: NOR    
Version: 1.x   
Target Milestone: ---   
Platform: unspecified   
OS: Solaris   
Latest Commit: Version Fixed In:

Description Nicolas Brisset 2006-10-03 10:34:00 UTC
Version:           1.3.0 (using KDE 3.4.0, compiled sources)
Compiler:          gcc version 3.4.3
OS:                SunOS (sun4u) release 5.8

When a curve is added to a plot via the datawizard, the y label is updated (e.g. from "Vec1" to "Vec1 and Vec2"). When it is added via the plot dialog, the Y label is not updated. It should be !
Comment 1 George Staikos 2006-10-06 06:43:55 UTC
How do we avoid clobbering user-specified labels?  The only thing I can think 
of is to add another variable to track this.  Not so nice, but doable.
Comment 2 Nicolas Brisset 2006-10-06 09:07:19 UTC
The funny thing here is that adding curves to existing plots from the datawizard currently updates (overwrites) the Y label, regardless of whether it has been hand-edited or not :-) 
But you are right, adding one ore more bools somewhere to track whether the labels (Y and maybe X ?) have been hand-edited sounds cleaner. IMO it would be nice to add an "Autoupdate" checkbox to the right of the X and Y label lineedits, which would be unchecked when text is typed into the lineedits.
Comment 3 Netterfield 2006-10-06 20:26:43 UTC
The wizard is a wizard, and is allowed to guess what we want.

The plot dialog is a general edit dialog, and really shouldn't guess what we want.  But: from the plot dialog, if you want to over-write the labels, you can hit 'AutoLabel' on the Appearance tab of plot dialog - which does what you want.

Comment 4 Nicolas Brisset 2006-10-06 22:46:53 UTC
I persist in thinking that it can be very confusing when labels do not update (I have seen cases of confusion when legends are not shown with only 1 curve in each plot, and changing the plot contents with the plot dialog does not change the label). 
Since labels are set automagically in the first place when using the datawizard (which I assume is a pretty common workflow), users expect them to always behave that way, i.e. being synced automatically.
While I do understand that automatic labels sometimes need to be overriden manually, and these manual changes should not be lost, I think an "Autoupdate" checkbox solves that issue neatly while being much more predictable for users. We could actually even have the datawizard obey that autoupdate property, so that the current not so nice behavior of overwriting manually set labels disappears. 

I must say I fail to see why you are reluctant here... Is this really a lost case ?