A diagrammatic approach towards the thermodynamics of integrable systems