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

Programmatically Finding the Faces of a Cube/Tesseract

I am working on a cube/tesseract visualization project and I need help with programmatically finding the faces/sides of a cube/tesseract. For both n=3 and n=4 I would like a face to be 4 connected vertices, for example: face[0] = [0, 1, 3, 2] 6 of…
Lars-Lasse
  • 554
  • 5
  • 9
1
vote
0 answers

4D Scatterplot: Plots' respective sizes based on frequencies

Assuming we have this reproducible dataframe: set.seed(949494) Rating_1 <- round(runif(50, 1, 5)) Rating_2 <- round(runif(50, 1, 5)) Rating_3 <- round(runif(50, 1, 5)) ID <- rep(c("H", "G"), 25) Quality <- Rating_1 * Rating_2 * Rating_3 DF <-…
Smuts94
  • 49
  • 7
1
vote
1 answer

4D plots with single colour describing the 4th dimension and connected by line

I have been searching the internet for the past couple of days and I have not seen any solution. I will be grateful if someone can please have a look. I am trying to plot a 4D plot to show wind direction variation at a given longitude, latitude, and…
Tee
  • 41
  • 7
1
vote
0 answers

4d convolution, i want to add conv4d to my model but the custom function doesn't work

I have a u-net module, i want to change the conv3d with conv4d, when i looked on google i found some custom conv4d functions but I am having hard time executing them. can someone show me the right way to call them and remove the errors here are the…
1
vote
1 answer

Displaying 4th variable as colormap on 3D plot in Python

Task I am trying to generate a plot that would represent my data in 4 dimensions. The option I am going for is a 3D plot where the 4th dimension is represented with a colormap. My data has some NaN values. My attempt Using an arbitrary set of data,…
vshis
  • 25
  • 4
1
vote
0 answers

4d plot in R (how to color points in space)

I would like to create 3d plot for x,y,z (cordinates) and values expressed as a color, calculated from a function conc1. I tried with this code: #declaration of some parameters of function "conc1" Q<-1 t<-0 sx<-sy<-sz<-1 #coordinates of…
Ana
  • 11
  • 1
1
vote
2 answers

Matplotlib - custom cmap not in accordance with graph colors if the some data is not available

I have the following code: fig = plt.figure() ax = fig.add_subplot(111, projection='3d') ax.set_xticks(weightdecay) ax.set_yticks(learningrate) ax.set_zticks(trainbatchsize) arr = numpy.array(f1) new_col = arr.copy() new_col[arr < 0.5] =…
Milos Cuculovic
  • 19,631
  • 51
  • 159
  • 265
1
vote
1 answer

Plot 4D data and further extract few slices at specific Z

I have 4 columns (longitude, latitude, depth (Km), Value) and I want to plot in python and later extract some slices at specific depth from this plot. Here is my try but I do not know how to further plot a few slices (e.g at depth of 2,4 and 5…
Aqeel
  • 188
  • 1
  • 11
1
vote
2 answers

How to find evenly distributed points around a point on a plane in 4D?

I'm trying to create a simulation that requires me to vary a set of probabilities, i.e., the variables must add up to 1. When I wanted to vary the parameters of a set of 3 probabilities, I treated each parameter as an axis in 3D space and…
Jgible
  • 55
  • 7
1
vote
2 answers

4D array numpy into pandas

I'd like to transform my numpy array ( shape=(27, 77, 77) ) : [[1., 1., 1., ..., 1., 1., 1.], [1., 1., 1., ..., 1., 1., 1.], [1., 1., 1., ..., 1., 1., 1.], ..., [1., 1., 1., ..., 2., 2., 2.], [1., 1., 1., ..., 2., 2., 2.], …
Vnc J
  • 47
  • 6
1
vote
0 answers

Disparity maps in light field images not only stereo-based vision but multiple views

I would like to ask about disparity maps in context of multiple views (captured by horizontal and vertical cameras). I understood that disparity map is the difference of the pixel location between a pair of views in stereo-based images. I am…
1
vote
3 answers

Plot 4D Contour in Python (X,Y,Z + Data)

I have a large set of measurements that I want to visualize in 4D using matplotlib in Python. Currently, my variables are arranged in this way: x = np.array(range(0, v1)) y = np.array(range(0, v2)) z = np.array(range(0, v3)) I have C which is a 3D…
user3849502
1
vote
0 answers

Healpy and the 4D Sphere - how to use pix2ang to create the 3 arrays of angles (ksi, theta, phi)?

I am working with hyperspheres and would like to use healpy to create the three angles ksi, theta, phi for a nside hypersphere. How do I do that considering that these are the four coordinates of this…
1
vote
1 answer

4d curve fitting

I am using Surface fitting toolbox in Matlab r2010b to curve fit 3 dimesional data. This tool is very useful and easy tool for doing 3d curve fitting via GUI. Until now, I deal with 3d data like; (X input : x (n x 1 vector), Y input : y (n x 1…
sanem
  • 11
  • 1
  • 2
1
vote
1 answer

Plotting 4 & 3 dimensional data - matlab

I have data set to plot with the following dimensions. Density Accessibility Land use mix Vibrancy Help me with the steps of the task. Expected output will be
Samith
  • 11
  • 1
1 2
3
9 10