Question: do we also want to reset options.legend here? (maybe this could be done only once at initialization but not on every topic change?)