fix plotting commands