Efficient mesh plotting using LineCollection