Bug 108409

Summary: Legends should use the whole plot width
Product: [Applications] kst Reporter: Nicolas Brisset <nicolas.brisset>
Component: generalAssignee: kst
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: 1.1.0   
Target Milestone: ---   
Platform: unspecified   
OS: Solaris   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nicolas Brisset 2005-07-01 18:24:03 UTC
Version:           1.1.0 (using KDE 3.4.0, compiled sources)
Compiler:          gcc version 3.4.3
OS:                SunOS (sun4u) release 5.8

When plotting multiple curves in a same graph, it is often useful to display legends. However, they currently use a lot of vertical space as legend items are packed vertically. This often makes it difficult to find a place to put the legend without it hiding parts of the curves.

I'd very much appreciate an option (checkbox) in the plot dialog along with other legend options to tell legends to wrap only when they've used up the whole plot width, and not with every item.

The appropriate amount of white space should be used to delimit various items. Another, slightly more advanced, set of options could be spinboxes to specify horizontal/vertical space to use between items (but I think sensible defaults would be better).
Comment 1 Andrew Walker 2005-07-20 22:43:56 UTC
SVN commit 437062 by arwalker:

BUG:108409 Allow user to specify horizontal or vertical layout of the legend. The default is vertical.

 M  +8 -8      kst2dplot.cpp  
 M  +1 -1      kst2dplot.h  
 M  +202 -76   kstlegend.cpp  
 M  +10 -7     kstlegend.h  
 M  +6 -5      kstplotdialog_i.cpp  
 M  +228 -180  plotdialog.ui  
Comment 2 Nicolas Brisset 2005-11-25 10:19:40 UTC
Using this feature with a plot containing a large number of items, I notice that it does not wrap nor is automatically shrinked to fit in the available space. This is really cumbersome. If it could be fixed, it would make the feature so much more usable !