Explain graphically how does crowding out arise in the situation of government budget

Explain graphically how does crowding out arise in the situation of government budget deficit and how the crowding out can be avoided by following the Ricardo-Barro effect?