theta history plotting
merged