I have a set of values, w, for each (x,y,z). I want to visualize this 4D data as an interactive 3D image plot.That is, each 3D pixel x,y,z should get some color based on w.
PS: w... moreI have a set of values, w, for each (x,y,z). I want to visualize this 4D data as an interactive 3D image plot.That is, each 3D pixel x,y,z should get some color based on w.
PS: w ranges from 0-7, and the rest of the (x,yz) are just transparent.
I am trying to plot a simple function in python ( x + sqrt(x^2 + 2x) ). Here is my code:
import pylab as pl
import numpy as np
import... moreI am trying to plot a simple function in python ( x + sqrt(x^2 + 2x) ). Here is my code:
import pylab as pl
import numpy as np
import math
X = np.linspace(-999999,999999)
Y = (X+math.sqrt(X**2+2*X))
pl.plot(X,Y)
pl.show()
Here is the error that I am facing: TypeError: only length -1 arrays can be converted to Python scalars