automatic plotting on trigger implemented