Ticket #811 (accepted task)

Opened 3 years ago

Last modified 3 years ago

Smart legend for OWGraph

Reported by: Noughmad Owned by: Noughmad
Milestone: Future Component: canvas
Severity: minor Keywords:
Cc: Blocking:
Blocked By:

Description

The OWGraph class should know how its curves are classified (by size, shape and color), and should produce corresponding legend entries.

When data points are classified by at least two attributes (let's say color and size), the legend should consist of two tables: one for color and one for size. It should also be noted which data attributes these two variables represent.

Currently, a similar system is implemented inside OWScatterPlot, but it should be done inside OWGraph and Legend classes, so that graph classes don't have to bother with it.

Change History

comment:1 Changed 3 years ago by Noughmad

  • Milestone changed from future to QtGraph Mid-term

comment:2 Changed 3 years ago by Noughmad

  • Status changed from new to accepted
  • Type changed from bug to task
  • Component changed from misc to widgets

comment:3 Changed 3 years ago by Noughmad

  • Milestone changed from QtGraph Mid-term to QtGraph Final

comment:4 Changed 3 years ago by Noughmad

  • Milestone changed from QtGraph Final to QtGraph 1.1

comment:5 Changed 3 years ago by Noughmad

Legend handling has been greatly simplified with categories, OWLegend.add_item() and OWLegend.add_color_gradient().

The legend is not created inside OWPlot, but the needed code in visualizations has been both shortened and simplified. So although this task is not fully implemented inside OWPlot and OWLegend, the current implementation is "Good enough. "

Note: See TracTickets for help on using tickets.