import numpy as np
import matplotlib
matplotlib.use("TkAgg") # need on mac for shift key to register for matplotlib
import matplotlib.pyplot as plt
from utils import plotting

# python script to demostrate some extra inteactive plotting tools
# I like to have activated

# intialize figure and axes class
fig = plt.figure()
ax = fig.add_subplot(111)

#plot something
ax.plot(np.linspace(0,100,100),np.sin(np.linspace(0,4*np.pi,100)))

#call the the inteactive plotting interface
ip = plotting.activate_interactive_plotting(fig,ax)

print("Data points grabbed")
for i in range(0,len(ip.x_data)):
    print(ip.x_data[i],ip.y_data[i])



import numpy as np
import matplotlib
matplotlib.use("TkAgg") # need on mac for shift key to register for matplotlib
import matplotlib.pyplot as plt
from utils import plotting

# python script to demostrate some extra inteactive plotting tools
# I like to have activated

# intialize figure and axes class
fig = plt.figure()
ax = fig.add_subplot(111)

#plot something
ax.plot(np.linspace(0,100,100),np.sin(np.linspace(0,4*np.pi,100)))

#call the the inteactive plotting interface
ip = plotting.activate_interactive_plotting(fig,ax)

print("Data points grabbed")
for i in range(0,len(ip.x_data)):
    print(ip.x_data[i],ip.y_data[i])



# need on mac for shift key to register for matplotlib # python script to demostrate some extra inteactive plotting tools # I like to have activated # intialize figure and axes class #plot something #call the the inteactive plotting interface