tntvis / tnt

Visualization of trees and track based annotations
Apache License 2.0
6 stars 2 forks source link

Add new legend component #5

Open emepyc opened 10 years ago

emepyc commented 10 years ago

It would be nice to have a more or less automatic way of plotting a legend

fabsta commented 10 years ago

I totally agree. That is probably something only a few themes will use. One could define a generic plot_legend on a generic theme. This method could be empty be default (not plotting a legend) and plots the legend defined in the corresponding theme (e.g. ensembl_gene_tree or treefam_tree)

emepyc commented 10 years ago

Yes. I'll try to make it general enough to be included in the core (like tooltips). If it doesn't fit there, one generic theme is probably the best option