Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagelib
Path: blob/master/sage/plot/plot3d/bugs.txt
4036 views
1
We draw a spiral of spheres:
2
sage: v = [(sin(i),cos(i),i) for i in [-4,-3.5,..4]]
3
sage: S = sum(sphere(v[i], size=1/2, color=((i-4)/8, 1/2,(4-i)/8)) for i in range(len(v)))
4
sage: S.show(aspect_ratio=[1,1,1])
5
6
NOTE: The sphere above have holes in them. This is a \emph{bug} in jmol.
7
8
9
* Only the last jmol 3d image is displayed, e..g., in one notebook cell
10
sage: x, y = var('x,y')
11
sage: plot3d(x^2 + y^2, (x,-2,2), (y,-2,2))
12
sage: plot3d(sin(x*y), (x, -pi, pi), (y, -pi, pi))
13
only shows the second plot.
14
15
16
Final todo push for 2.9.2:
17
18
(done) * axes labels (but don't break tachyon!)
19
20
* make sure options to plot commands get passed through to show
21
22
* the following commands:
23
checklist -- each option is documented
24
(done) -- kwds get saved for show
25
26
(done) - parametric_plot3d
27
- list_plot3d: implement algorithm from plane.
28
(needs tachyon) - line3d
29
- frame3d
30
- plot3d
31
(done) - text3d
32
(parameter to line3d) - arrow
33
- torus
34
- cone
35
36
(done) - point
37
(done) - sphere
38
39
(done) - tetrahedron
40
- cube
41
- octahedron
42
- dodecahedron
43
- icosahedron
44
45
(done) * make sure rgbcolor, color and opacity work for all plots.
46
47
(done) * clean up all doctests
48
49
=====================================================================
50
51
General TODO:
52
* implement frame_thickness and frame_color for everything in platonic.py, not just for cube.
53
54
* Make it so all extra parameters to any ploting commands (in 2d or 3d)
55
are saved and passed through to show -- or at least those that
56
are relevant, e.g., xmin, xmax, etc.
57
* Fix all doctests now that show is not needed by default.
58
* aspect_ratio for 2d plots.
59
60
Jmol bugs:
61
62
* reloading a worksheet kills all jmol applets! -- note if we get
63
rid of jmolSetDocument(cell_writer) this doesn't happen; but then
64
other things break. Probably need to save the javascript and
65
execute it each time we releoad.
66
* Sphere(0.3,color="red").translate([1,1,-1]) has *holes* in it!!
67
* (done) Default zoom is useless -- we will have to rescale the whole scene I think.
68
Basically we have to figure out the true range of the 3d plot in each direction,
69
then rescale everything into a 10x10x10 square.
70
We should draw axis and allow for aspect ratios.
71
* Invalid color doesn't yield an error message, e.g., Icosahedron(texture="yello")
72
* color --> rgbcolor
73
* In parametricsurface:
74
except: # TODO -- this would catch control-C,etc. -- FIX THIS TO CATCH WHAT IS RAISED!!!!
75
* Observation:
76
jmol embedded applets *crash* when more than 10 or so appear in
77
a page... unless I make them all small (e.g. 50 pixels) in which
78
case they DO NOT crash.
79
80
Jmol todo:
81
82
* names should make sense (basically like in mathematica) and be lower case
83
* for user exposed functions, (not necessarily for the classes)
84
* Dynamic resizing in the notebook
85
* Javascript controls in the notebook
86
87
88
Tachyon bugs:
89
* Text3D doesn't work
90
91
92
93
94