I like very much Family Line Graph and also like colorizing by family name (Family Colors tab). I would like add similar tab for colorizing by birth places because it will be very informative on chart. I have started rewrite code of this graph and I’m here now (tab have created):
I’m not too familliary in py so I’d like ask support from you:
This code collect all surnames on surname tab. Could you advice how can I change this to collect birth places instead ot surnames?
progress = ProgressMeter( _('Finding Surnames'), parent=uistate.window) progress.set_pass(_('Finding surnames'), database.get_number_of_people()) for person in database.iter_people(): progress.step() key = person.get_primary_name().get_surname() count = 0 if key in surnames: count = surnames[key] surnames[key] = count + 1 progress.close()
Thx in advance.