# Size of objects shown in animations

Hi, a series of 3d objects looks OK in the notebook, when shown in a loop with repeated calls to show(). When the same objects are collected in a list, and given to animate(), the resulting frames show the objects scaled down to be almost invisible. I tried to influence animate() with the figsize keyword, but this is ignored.. So my question is: How to tell animate() to which size the objects in the list should be rendered in the animated frames? Thank you

Example code:

# testcase: stupid 3d plot
f(x,y) = (-((x-1))^2 - ((y-1))^2 - 3  )
def desd():
p = plot([])
p = plot3d(f(x,y), (x,-5,5), (y,-5,5), ymin=-4, ymax=4)
return p

# plot in notebook looks OK
tp = desd()
show(tp, frame=False,aspect_ratio=1,figsize=8)

# test animate
ps = []
for _ in range(6):
ps.append(desd())
an = animate(ps,frame=False,aspect_ratio=1,figsize=8 )
show(an)
# looks distorted and much too small in my setup

edit retag close merge delete

Please provide a code illustrating the issue.

( 2024-04-26 15:25:18 +0200 )edit

Example code:

# testcase: stupid 3d plot
f(x,y) = (-((x-1))^2 - ((y-1))^2 - 3  )
def desd():
p = plot([])
p = plot3d(f(x,y), (x,-5,5), (y,-5,5), ymin=-4, ymax=4)
return p

# plot in notebook looks OK
tp = desd()
show(tp, frame=False,aspect_ratio=1,figsize=8)

# test animate
ps = []
for _ in range(6):
ps.append(desd())
an = animate(ps,frame=False,aspect_ratio=1,figsize=8 )
show(an)
# looks distorted and much too small in my setup

( 2024-04-26 23:10:04 +0200 )edit