donnieh
Feb 15, 2015 - 04:46
I have a matplot view being output to the console. How would I adjust my code to output it to a new view instead?
The first bit of code is how the plot is going to the console.
The second is the view I want the plot to be in.
plt.plot(x, y)
plt.title('Amplitude Vs Time')
plt.show()
view = ui.View()
view.background_color = 'white'
view.present('sheet')