Ask Your Question
4

Height of the output cell in 3D plots

asked 2021-12-10 02:07:40 +0100

cav_rt gravatar image

Is it possible to change the height of the output cell in 3d plots?

We can globally change the size of 2D plots with

Graphics().SHOW_OPTIONS.update({'figsize':[6,4]})

Is there something similar for 3d plots?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2021-12-12 07:25:27 +0100

cav_rt gravatar image

updated 2021-12-13 16:50:29 +0100

I found a workaround for now.

First save as html

var('u v')    
some_plots = parametric_plot3d([(cos(u) * sin(v))^3, (sin(u) * sin(v))^3, (cos(v)^3)], (u,0,pi), (v,0,2*pi), alpha=.6, mesh=True, frame=False)
some_plots.save('some_plots.html')

and then display using IFrame, choosing the width and height as desired.

from IPython.display import IFrame
url = './some_plots.html'
IFrame(url, width=950, height=750)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2021-12-10 02:07:40 +0100

Seen: 325 times

Last updated: Dec 13 '21