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, 04 May 2021 21:17:37 +0200Assign RGB values to points on implicit_plot3d graphhttps://ask.sagemath.org/question/56955/assign-rgb-values-to-points-on-implicit_plot3d-graph/Is there a way to assign an explicit RGB color to each point satisfying an equation of the form f(x,y,z)=c? For instance, I would like it if the command
```
implicit_plot3d(x+y+z==1,(x,0,1),(y,0,1),(z,0,1),color=(x,y,z))
```
colored the standard 2-simplex in R^3 according to the associated RGB values, but it doesn't. I'm aware that one can use colormaps and functions R^3 -> R to color the output of implicit_plot3d but I would like to use a function R^3 -> [0,1]^3 to do the coloring.kyle oTue, 04 May 2021 21:17:37 +0200https://ask.sagemath.org/question/56955/3d contour lineshttps://ask.sagemath.org/question/33162/3d-contour-lines/ Hi every one, is there a way to plot 3d contour line on a 3d function?
here is my work
in progress
https://cloud.sagemath.com/projects/b53194ad-1886-46e0-945e-42b70906a97b/files/2016-04-20-143542.sagews
the lines are 2d, but i would like the to be on the surface. i cant find the right commandthethaThu, 21 Apr 2016 00:08:01 +0200https://ask.sagemath.org/question/33162/sage.plot.plot3d.shapes2.Line() does not work in the cloudhttps://ask.sagemath.org/question/29546/sageplotplot3dshapes2line-does-not-work-in-the-cloud/The following code (straight from http://doc.sagemath.org/html/en/reference/plot3d/sage/plot/plot3d/shapes2.html) does not work in the SageMath Cloud, at least not for me:
from sage.plot.plot3d.shapes2 import Line
Line([(i*math.sin(i), i*math.cos(i), i/3) for i in range(30)], arrow_head=True)
The result is a long error message ending with "TypeError: 0 is not JSON serializable". Am I doing something wrong?Jeremy MartinWed, 23 Sep 2015 20:49:15 +0200https://ask.sagemath.org/question/29546/Plot Series of 3D Direction Vectors (Not All from Origen)https://ask.sagemath.org/question/9172/plot-series-of-3d-direction-vectors-not-all-from-origen/Hi,
I'm trying to plot a series of vectors. I've pasted what I have below. The problem is that I want to plot the second vector, starting from the end of the first vector. If I run the commands below, I get two vectors plotted as I want (with arrows) but they are both from the origin.
I tried looking at MATPLOTLIB to see what to do but I got stuck.
Is there an easy way to plot a series of vectors in the way that I want?
a=vector([1,1,1])
b=vector([2,2,3])
aPlot=plot(a, legend_label='Vector a')
bPlot=plot(b, legend_label='Vector b')
AllPlot=aPlot+bPlot
AllPlot.show()
Justin1Sun, 22 Jul 2012 14:52:05 +0200https://ask.sagemath.org/question/9172/