Working show-legend and legend-position settings