ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 12 Dec 2021 07:25:27 +0100Height of the output cell in 3D plotshttps://ask.sagemath.org/question/60188/height-of-the-output-cell-in-3d-plots/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?Fri, 10 Dec 2021 02:07:40 +0100https://ask.sagemath.org/question/60188/height-of-the-output-cell-in-3d-plots/Answer by cav_rt for <p>Is it possible to change the height of the output cell in 3d plots?</p>
<p>We can globally change the size of 2D plots with </p>
<pre><code>Graphics().SHOW_OPTIONS.update({'figsize':[6,4]})
</code></pre>
<p>Is there something similar for 3d plots?</p>
https://ask.sagemath.org/question/60188/height-of-the-output-cell-in-3d-plots/?answer=60217#post-id-60217I 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)Sun, 12 Dec 2021 07:25:27 +0100https://ask.sagemath.org/question/60188/height-of-the-output-cell-in-3d-plots/?answer=60217#post-id-60217