When you create your legend add the handlelength keyword (doc) which sets the length of the ‘—‘ (which is called the handle).
When you create your legend add the handlelength keyword (doc) which sets the length of the ‘—‘ (which is called the handle).