Bug 236471 - Need to display plot names/legends in combo box
Summary: Need to display plot names/legends in combo box
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 2.0.0
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: 2.0.0
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-05 21:06 UTC by stevebenton
Modified: 2010-11-12 10:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Image of plots before shared-axis (58.24 KB, image/png)
2010-05-07 19:51 UTC, stevebenton
Details
Image of plots after shared-axis (55.21 KB, image/png)
2010-05-07 19:52 UTC, stevebenton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stevebenton 2010-05-05 21:06:32 UTC
Version:           2.0.0_devel (using KDE 4.4.3)
OS:                Linux
Installed from:    Ubuntu Packages

In vertical combo boxes, some information is needed to identify plots once the title has been erased.

Sometimes (in a vertical-only combo box) the y label might be sufficient. Otherwise (maybe when y-labels collide within the box) either a legend should be created, or the plot title placed inside each box.
Comment 1 Nicolas Brisset 2010-05-07 10:48:27 UTC
Hi Steve,

thanks for trying out this beta and reporting your issues. However, I must admit I don't completely understand what you mean. Could you maybe attach a screenshot with a visual explanation of the problem?
Normally plots always have a name with at least the plot number (P1, P2, ...)
Comment 2 Nicolas Brisset 2010-05-07 10:49:44 UTC
Note to devs: I think we really need to have a more accurate version string available somewhere. I doubt Ubuntu has already packaged beta5, but it#s hard to know exactly which version this user has.
Comment 3 stevebenton 2010-05-07 16:17:52 UTC
Sorry for the confusion, rather than "combo box" I meant "shared axis box". I can't get a screenshot atm, but hopefully can explain a bit better. 

Say I have several temperatures plotted vs a common INDEX. The y-axes all read "Temperature [K]" (set in a dirfile with the /units and /quantity STRING) and the x-axis reads "INDEX". I can tell the plots apart because each has a title containing the name of the field. When I make a shared axis box, the titles no longer display and I can no longer tell the plots apart.

If this doesn't make sense yet I will try to get some screenshots later.

Also note: I may have filled out the bug form wrong: My KDE/Qt is from ubuntu packages, but kst is from svn.
Comment 4 stevebenton 2010-05-07 19:51:11 UTC
Created attachment 43345 [details]
Image of plots before shared-axis
Comment 5 stevebenton 2010-05-07 19:52:00 UTC
Created attachment 43346 [details]
Image of plots after shared-axis
Comment 6 Nicolas Brisset 2010-05-10 09:45:19 UTC
OK, thanks for the explanations. It's clearer now.
I believe you can achieve the desired effect by activating the legends on all plots, but that requires that you set appropriate curve names. 
Actually, I'm wondering how you set left and top labels. Are they created automatically by kst (I don't use the dirfile format, so I don't know exactly what conventions there are and what kst picks up) or do you enter them by hand? What names are listed in the datawizard?
Comment 7 stevebenton 2010-05-10 20:32:09 UTC
The left labels in this case are taken from special units strings in the dirfile. The top label defaults to the name of the field[s] being plotted---as seen by the data wizard. When the special units strings aren't present, I think the left label also becomes the field name.

I think in cases where the plot title (top label) contains separate information from the legend (ie. when both aren't just the field name), it is preferable to preserve the title when changing to shared axis mode. Maybe it could be added as a string to the top right of the plots?
Comment 8 Netterfield 2010-05-27 19:18:50 UTC
Fixed by a recent commit, in that the top label now gets shoved into the plot if it would be hidden by a shared axis box.  We may want to consider a prettier solution longer term, but not for 2.0.0
Comment 9 Peter Kümmel 2010-08-14 12:14:51 UTC
Change version from 2.0.0_devel to 2.0.0 to simplify version numbering.
Comment 10 Peter Kümmel 2010-11-12 10:42:33 UTC
These bugs are solved with 2.0.0