Opened 16 years ago

Closed 16 years ago

#201 closed task (fixed)

Sorting the plot legend

Reported by: Jari Häkkinen Owned by: Peter Johansson
Priority: major Milestone: 0.6
Component: output Version: trunk
Keywords: Cc:

Description (last modified by Peter Johansson)

I think the legend in the plots should be sorted in some well defined way. It may already be well defined but I don't like it. I'd like to see the order in falling order on the number of lines contributed.

Any thoughts?

Is related to #75

Change History (4)

comment:1 Changed 16 years ago by Peter Johansson

Description: modified (diff)

added reference to ticket:75

comment:2 Changed 16 years ago by Peter Johansson

The hard part here is to define what we want.

At the time being authors are sorted with respect to their name. This is so because in the Stats class we have a map<string, vector> for each line type. The string is the name of the a author and the valuie is the corresponding statistics (not accumulated).

At the time being we are simply iterating through this map and plotting the values. It would be a simple task to change the order of the plotting in any definable way.

comment:3 Changed 16 years ago by Peter Johansson

Milestone: 0.6
Status: newassigned

Sorting with respect to number of contributed lines makes sense, as this will make the lines sorted the same in the legend as the very right end of the plot.

comment:4 Changed 16 years ago by Peter Johansson

Resolution: fixed
Status: assignedclosed

(In [371]) fixes #201 plot legend is sorted with respect to contributed lines

Note: See TracTickets for help on using tickets.