update graph figure legend