Ask Your Question
4

Height of the output cell in 3D plots

asked 3 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
3

answered 3 years ago

cav_rt gravatar image

updated 3 years ago

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)
Preview: (hide)
link

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: 3 years ago

Seen: 354 times

Last updated: Dec 13 '21