Quantcast
Channel: ASKSAGE: Sage Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 4

Answer by Shashank for I want to enter a default list of (x,y) data for a scatter plot that the user can modify to create a different scatter plot.

$
0
0
I am not sure how exactly you want to do this but let me know whether this is what you want. User can change the array and unfocus from the input box to update. @interact def int_plot(str1 = input_box('[[1,2],[3,5],[4,2]]',type = str, label='array 1: ')): array1=eval(str1) scatter_plot(array1).show() ![image description](/upfiles/13322611708674591.png)

Viewing all articles
Browse latest Browse all 4

Trending Articles