Changing the color of the axes, ticks and label and interaction

asked 2020-05-28 06:09:12 -0500

Cyrille gravatar image

I would like to know if it is possible to change the colors of the axe and the labels of a plot like this one.

Also is it possible to add an interaction which move a circle fom point to point ? And could it be mouse sensitive ?

N=100
def randvect(size=4):return vector([RR.random_element(-1,1) for t in range(size)])
SS = n(randvect(N),4)
SSM=sum(SS)/N
a=min(SS.list())
b=max(SS.list())
c=len(SS.list())
bg=polygon([(-.25,a-0.25), (c+.25,a-.25), (c+.25,b+.25),(-.25,b+.25)],color="black", alpha=.75)
lp=list_plot(SS,plotjoined=True, color='white',gridlines="majors")
show(bg+lp,aspect_ratio=10)
edit retag flag offensive close merge delete