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.Tue, 23 Jun 2020 13:09:08 +02003d image plot SAGEMATH 9.0 Notebookhttps://ask.sagemath.org/question/52179/3d-image-plot-sagemath-90-notebook/Hi! I am using SAGEMATH 9.0 Notebook, and when I make 3d images, theye are always viewed from the same angle of vision, but i want another angle view, how can i change it? I am currently using the .show(viewer='canvas3d')creyesm1992Tue, 23 Jun 2020 13:09:08 +0200https://ask.sagemath.org/question/52179/How to save 3d plot as rotatable html filehttps://ask.sagemath.org/question/50882/how-to-save-3d-plot-as-rotatable-html-file/ I'm using SAGEMATH in a Jupyter notebook on CoCalc.
I have a rotatable 3d image and I want to save it as such.
If I go to
(Grey) File/Download as html
If I "EXPORT AS HTML" and click this now opens in the browser.
Then I can scroll down to a particular 3d plot and click on the download error to the lower right of the image, and thereby take a nice screenshot with the perspective indicated.
What I want to do is save the html file of just this image, not the whole notebook.
I know this is possible because I did it a year ago- but forgot to take notes on what worked, and have forgotten how!
Some of my plots I did with threejs and some with the default (not sure what that is).
Both work in the same way.
Thanks for any suggestions!
alTue, 21 Apr 2020 03:47:57 +0200https://ask.sagemath.org/question/50882/draw all faces of alcoves (affine root system)https://ask.sagemath.org/question/45354/draw-all-faces-of-alcoves-affine-root-system/I am trying to plot alcoves for in a rank 3 affine root system with some of those alcoves highlighted by having all faces drawn and the others only shown as a wire frame.
The manual on visualising root systems at sagemath.org is quite useful, but I have some effects show that I don't understand.
For some reason while the fundamental alcove will have all faces shown many of the others have not, that is, some faces are missing. Below you find one example code that I have done. For the chosen seq one face is missing, the red one. For other choices of seq one might even see only one face drawn. How do I force to have all faces shown?
L = RootSystem(["A",3,1]).ambient_space()
P = RootSystem(["A",3,1]).weight_space(extended=True)
Lambda = P.fundamental_weights()
W = L.weyl_group()
W0=W.classical()
plot_options = L.plot_parse_options()
seq=[2,3,1,2]
t = 1*Lambda[1]-1*Lambda[2]+1*Lambda[3]
Alcoves=[W.from_reduced_word(w.reduced_word()) for w in W0]
p = L.plot_fundamental_chamber("classical")
p += L.plot_fundamental_weights()
p += L.plot_alcoves(alcoves=Alcoves, wireframe=True)
p += L.plot_alcoves(alcoves=[W.from_reduced_word(seq)])
p += L.plot_alcoves(alcoves=[W.from_reduced_word([])])
p += plot_options.family_of_vectors({t: L(t)})
p.show(frame=False)oloidThu, 07 Feb 2019 16:08:34 +0100https://ask.sagemath.org/question/45354/plotting 3d polytope in R^4https://ask.sagemath.org/question/35704/plotting-3d-polytope-in-r4/ I'm trying to plot the following polytope on the cloud:
P=Polyhedron(vertices=[[0, 1, 0, 4] , [0, 1, 1, 3] , [3, 1, 1, 0] , [3, 1, 0, 1] , [0, 3, 0, 2] , [0, 3, 1, 1] , [1, 0, 0, 4] , [1, 0, 1, 3] , [3, 0, 1, 1] , [3, 0, 0, 2] , [1, 3, 1, 0] , [1, 3, 0, 1]])
P.plot()
This is a polytope living in R^4, but in fact the sum of the coordinates of each vertex is 5, so it is a 3D polytope. In some cases, sage gives me a nice 3D view of how the polytope looks like, but in this case it gives me something that doesn't even looks convex, so it is not the right projection. I would like to know what is going on and try to solve this issue, so I appreciate ideas on how to correct this, and where to look at on the code. EmersonLWed, 23 Nov 2016 21:27:10 +0100https://ask.sagemath.org/question/35704/plot Polyhedron from cloudhttps://ask.sagemath.org/question/24686/plot-polyhedron-from-cloud/ I'm trying to plot some 3d stuff from the cloud.
I tried:
icosahedron()
and worked perfectly, but then I tried
v=[(0,0,0),(0,1,0),(0,2,1),(1,0,0),(1,2,3),(2,1,1)]
Polyhedron(vertices=v).plot()
and I only get a single bullet, no error message, no image, no nothing... What is going on?EmersonLWed, 29 Oct 2014 17:57:17 +0100https://ask.sagemath.org/question/24686/line3d fonsize option?https://ask.sagemath.org/question/8607/line3d-fonsize-option/Hi!
I need to hide exact values in 3d plot. In case of 2d I can use fontsize option like:
line([(0,0),(1,1)]).show(fontsize=0)
But show + line3d ignores fontsize option.EugeneWed, 04 Jan 2012 16:15:09 +0100https://ask.sagemath.org/question/8607/