nspire plotlib error /u/mrdkvfx Python Education

i dont know if this is the best subreddit to post this in(if it isnt, please let me know where i should post) but im making a code in the nspire calculator using the plotlib library and ive found an error i have not been able to move past. when the a,b,c,d values are too high i get an invalid grid scale value error, whats causing it?

 xmin= float(input( "xmin=")) xmax= float(input("xmax=")) ymin=(-a+d)-1 ymax=(a+d)+1 plt.window(xmin,xmax,ymin,ymax) plt.grid(1,1,"dotted") plt.axes("on") W, H = get_screen_dim( ) dx= (xmax - xmin) / W xs=[] ys=[] x= xmin while x<=xmax: y= a*sin(b *x + c)+ d xs.append(x) ys.append(y) x+=dx plt.text_at(1,"Pressione F12 para sair","right") plt.plot(xs,ys,".") 

submitted by /u/mrdkvfx
[link] [comments]

​r/learnpython i dont know if this is the best subreddit to post this in(if it isnt, please let me know where i should post) but im making a code in the nspire calculator using the plotlib library and ive found an error i have not been able to move past. when the a,b,c,d values are too high i get an invalid grid scale value error, whats causing it? xmin= float(input( “xmin=”)) xmax= float(input(“xmax=”)) ymin=(-a+d)-1 ymax=(a+d)+1 plt.window(xmin,xmax,ymin,ymax) plt.grid(1,1,”dotted”) plt.axes(“on”) W, H = get_screen_dim( ) dx= (xmax – xmin) / W xs=[] ys=[] x= xmin while x<=xmax: y= a*sin(b *x + c)+ d xs.append(x) ys.append(y) x+=dx plt.text_at(1,”Pressione F12 para sair”,”right”) plt.plot(xs,ys,”.”) submitted by /u/mrdkvfx [link] [comments] 

i dont know if this is the best subreddit to post this in(if it isnt, please let me know where i should post) but im making a code in the nspire calculator using the plotlib library and ive found an error i have not been able to move past. when the a,b,c,d values are too high i get an invalid grid scale value error, whats causing it?

 xmin= float(input( "xmin=")) xmax= float(input("xmax=")) ymin=(-a+d)-1 ymax=(a+d)+1 plt.window(xmin,xmax,ymin,ymax) plt.grid(1,1,"dotted") plt.axes("on") W, H = get_screen_dim( ) dx= (xmax - xmin) / W xs=[] ys=[] x= xmin while x<=xmax: y= a*sin(b *x + c)+ d xs.append(x) ys.append(y) x+=dx plt.text_at(1,"Pressione F12 para sair","right") plt.plot(xs,ys,".") 

submitted by /u/mrdkvfx
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *