see python scripts mode_share.py and trips_distance_distribution.py in hamburg-analyis package in matsim-hamurb repository.