Plot mesh parallel, show partitioning

I am not quite sure what you are trying to achieve here.
You have ignored the crucial:

# Map to global dof indices
global_dofs = V.dofmap.index_map.local_to_global(topology[topology_dofs].copy())
# Overwrite topology
topology[topology_dofs] = global_dofs

This is crucial as one maps the local topology indices to a single global numbering.
For more about this see for instance section 6.2 of:

which tries to explain global ordering.