Questions tagged [4d]

4D involves calculations in four dimensions and typically relates to graphics programming. Use the [4d-database] tag for questions about the 4th Dimension database.

From Wikipedia, as of 5 March 2017‎:

In mathematics, four-dimensional ("4D") is a geometric space with four dimensions. It is typically meant to mean four-dimensional Euclidean space, generalizing the rules of three-dimensional Euclidean space. It has been studied by mathematicians and philosophers or over two centuries, both for its own interest and for the insights it offered mathematicians and related fields.

146 questions
1
vote
0 answers

Interpolate colors in 4-D data with matplotlib

I have 4 D data, with 3 independent variables (x,y,z), and a fourth variable m (represent in color) which is a function of the x,y, and z. The code below generates a plot with the three variables, and m with shades of a color. Is there a way to…
user58925
  • 1,537
  • 5
  • 19
  • 28
1
vote
1 answer

Plotting a 4-D continous line in Python

I used the solve_ivp function in Pyhon in oredr to solve a system of four coupled differential equations, and now I wish to plot the solution in order to show its stability close to a certain fixed point, in the 4-D phase space. I was thinking a…
B.Gu
  • 21
  • 3
1
vote
1 answer

Matlab interpolation of 4D scattered data

We have a 195x4 (double) matrix: A=[X Y Z temp], when ploted with scatter3(A(:,1), A(:,2), A(:,3),30, A(:,4), 'filled' ) gives something like this: Now we want to generate a 'cube' colored with the interpolation of the temp=A(:,4) vector data. So…
cavereaper
  • 41
  • 7
1
vote
1 answer

How to make a 4D plot in Plotly?

I want to know how to make a 4D scatter plot using Plotly. 4th Dimension being the colour of another attribute? I am able to do it in Python but not using plotly. Below is the sample code: trace1 = go.Scatter3d( x = df['XXXX'], y =…
Shyam V
  • 444
  • 4
  • 22
1
vote
2 answers

4D expecting a variable with pointers and array

Here is the snippet: C_TEXT($1;$text) C_POINTER($2) $text:=$1 $vlElem:=Size of array($2->) Repeat $vlElem:=$vlElem+1 INSERT IN ARRAY($2->;$vlElem) $vlPos:=Position(Char(Carriage return);$1) If ($vlPos>0) …
Dylan
  • 37
  • 6
1
vote
2 answers

How to multiple a 2D point with a 4D Matrix

How can I convert a 2D point (or 3D with Z=0) to 2D point(where Z is ignored) with a 4D matrix ? I am using Microsofts Silverlight to project a 2D control as pseudo 3D using a Matrix3D definition of Matrix3D I know the initial 2D coordinate of a…
rob
  • 39
  • 5
1
vote
1 answer

Calculate 3D cross section of 4D shape (tesseract)

So far I have read the following on calculating the points of the 3D intersect for a 4D object: Simple implementation of 4D cross-section How do I get a 3D cross section of a 4D mesh? However, I am really confused on whats going on. I understand…
name
  • 181
  • 1
  • 12
1
vote
1 answer

How to make a 4D plot using Matplotlib

I have a 4D data like below. I really want to make a 4D plot with Matplotlib. The plot I am looking for is exactly like the 4D scatter plot made by @user3666197 It looks so great. I did some research but still have no idea how to make one like it.…
Lenny
  • 29
  • 1
  • 9
1
vote
0 answers

gnuplot, plotting 4D graph where colour is used to represent the 4th column

My question is a continuation of: 3-Dimensional Plot in GnuPlot where color is a fourth column in my data file?. I am trying to do basically the same thing with some data of mine. However, when I take the existing code and apply it to my text file,…
Astronomer
  • 119
  • 4
1
vote
1 answer

Visualization of 4D vectors in Python

Similar questions have been asked in the past in this site - such as Representing 4D data in mplot 3D using colormaps or How to make a 4d plot using Python with matplotlib - but as far as I have found, none of them answers my specific problem. I…
Daneel Olivaw
  • 2,077
  • 4
  • 15
  • 23
1
vote
2 answers

Linear interpolation of the 4D array in Python/NumPy

I have a question about the linear interpolation in python\numpy. I have a 4D array with the data (all data in binary files) that arrange in this way: t- time (lets say each hour for a month = 720) Z-levels (lets say Z'=7) Y-data1 (one for each t…
1
vote
2 answers

4D plot (3D+color) from 4 row vectors

I have 4 row vectors x, y, z and s, all of them have equal sizes 1*size. x, y, z should be the three Cartesian corodinate axes and s should be represented by colors (I want figure like below image). The statement Surf does not accept row vectors. I…
Mr. Nobody
  • 327
  • 2
  • 8
  • 21
1
vote
1 answer

Matlab 4dplot (x,y,z,t)

I am trying to plot a graph of thousands of data point containing x,y,z,t. The data is in a .txt file and looks as follows: [x, y, z, time] [50.9160, 12.2937, -44.9963, 0.0] [50.9160, 12.2937, -44.9963, 0.8] [50.9160, 12.2937, -44.9963,…
Sagistic
  • 37
  • 1
  • 8
1
vote
1 answer

MATLAB re-position colorbar title

I would like to reposition the colorbar title (not the colorbar itself). I tried using the following code: cb = colorbar; set(get(cb,'title'),'string','Dislocation Density(m^{-2})'); lbpos = get(cb,'title'); pos…
Kelvin S
  • 341
  • 2
  • 4
  • 13
1
vote
1 answer

How can I control the color and opacity of each point in a python scatter plot?

I'm looking to graph a 4D data set (X, Y, Z, intensity) using opacity to represent intensity. I also want the color to be dependent on the Z variable as well to better show depth. Here is the relevant code so far, I am a novice when it comes to…
NGXII
  • 407
  • 2
  • 9
  • 18