Plotting from within a loop using GR?

maybe this discussion helps: