Questions tagged [z-axis]

The z-axis on a graph is the axis that is usually drawn as if vertical and usually shows the range of values of a variable dependent on two other variables or the third independent variable.

The z-axis on a graph is the axis that is usually drawn as if vertical and usually shows the range of values of a variable dependent on two other variables or the third independent variable.

40 questions
84
votes
2 answers

Programmatically send to front/back elements created from interface builder

In interface builder, there are layout options to send to back or send to front any elements such as UIButton, UIImage, UILabel etc... Now, I would like to do the same at runtime, programmatically. Is there an easy way to do that? I do not want to…
Yohann T.
  • 1,915
  • 2
  • 23
  • 28
18
votes
2 answers

Changing position of vertical (z) axis of 3D plot

I'm doing some 3D surface plots using Matplotlib in Python and have noticed an annoying phenomenon. Depending on how I set the viewpoint (camera location), the vertical (z) axis moves between the left and right side. Here are two examples: Example…
Blink
  • 1,444
  • 5
  • 17
  • 25
9
votes
1 answer

Matlab how to change contourf plot's location on z axis

I have a 3d surface in my figure surf(x,y,z) I also have a contourf surface (which is basically a 2D plane). I plot them in the same figure but the contourf plot is automatically at z=0 level. I want to move the contourf plot to z=-10 (or any value…
theenemy
  • 345
  • 2
  • 4
  • 9
5
votes
2 answers

JavaScript draw using mouse Canvas with 3 axis

How is it / is it possible to draw using the mouse a canvas using 3 axis(x,y,z). I know that one can draw a canvas on 2 axis and I have done that successfully. But I have no idea of how I shall draw it on 3 axis (for example a cube). Following shows…
utdev
  • 3,942
  • 8
  • 40
  • 70
4
votes
2 answers

When is Z axis flipped? (OpenGL)

To improve my understanding of OpenGL and 3D I am trying to implement a simple rendering pipeline running only on the CPU. Where it makes sense, I'm trying to use the same standards as OpenGL. For example, I'm using a right handed coordinate system…
3
votes
2 answers

3D plot: smooth plot on x axis

I have a 3D polygon plot and want to smooth the plot on the y axis (i.e. I want it to look like 'slices of a surface plot'). Consider this MWE (taken from here): from mpl_toolkits.mplot3d import Axes3D from matplotlib.collections import…
Ivo
  • 3,890
  • 5
  • 22
  • 53
3
votes
0 answers

Does z-axis guarantee correct layer sorting in 2D?

Suppose I have a lot of SpriteRenderers in the scene and I don't want to sort them by layers, but using z-axis instead: The bigger the z of the object, the further it is from the camera, therefore it should be renderer behind other objects whose z…
Daniel
  • 7,357
  • 7
  • 32
  • 84
3
votes
1 answer

Eliminating scientific notation on vertical axis of 3d plot (Python)

How can I eliminate the scientific notation on the vertical axis of a 3d plot, and replace it with integers? e.g., instead of 0.0+2.002e3, I would like 2002 My sample script is as follows: import numpy as np import matplotlib.pyplot as plt from…
AaronJPung
  • 1,105
  • 1
  • 19
  • 35
3
votes
1 answer

rotating the z-axis of a 3d figure

How do I rotate the z-axis of a matplotlib figure so that it appears as the horizontal axis? I have created the following 3d figure : I tried adjusting the values in ax.view_init() but no matter what values I used, I can't flip the z-axis so…
Physicist
  • 2,848
  • 8
  • 33
  • 62
2
votes
3 answers

firefox causes visual artifact with "transform:rotate;"

Firefox is creating small lines on the triangles I've created and rotated. Chrome FireFox I've looked into what other questions have done and they recommended trying adding transform: translateZ(1px) rotate(-45deg); and background-clip: padding-box;…
2
votes
1 answer

How to make vertical lines in the planes zx and z and gnuplot

I need a little help. I'm making a three surfaces together in gnuplot, but I need to place the vertical and horizontal grids for the Z axis on the back of the surfaces. I've only been able to make the horizontal lines, and I want to add the vertical…
2
votes
2 answers

violin plot ggplot2 with width from column

I am pretty new to R and I only use it for visualization so I may be missing something simple. Simply what I want is, I have two columns which should be x and y axes. Third column I have should define the width of the graph. I didn't come far with…
Erkin Acar
  • 53
  • 4
2
votes
1 answer

highcharts 3d scatter chart: displaying categories

I am using Highcharts and I would like this chart to display categories on axis z. This is what I have now: JSFiddle zAxis: { min: 1, max: 3, categories: ['Apples', 'Bananas', 'Oranges'], …
KaroCodes
  • 246
  • 2
  • 13
2
votes
2 answers

Android - Maps v2 - How to arrange z-axis of last marker drawn

Ive put together a tool in an app Im building that uses the v2 version of the maps on android and when markers are very close to one another they will draw ontop of one another which isnt a problem but what Id like to have happen at the least is for…
James andresakis
  • 5,335
  • 9
  • 53
  • 88
1
vote
1 answer

Uncrop 3d plots in jupyter notebook with VSCode

I'm doing some 3d scatter plots with jupyter notebooks in VSCode, and they aren't showing properly. I went to the documentation in matlab and downloaded the jupyter notebook for the 3d scatter plot and tried running that in vscode, getting the same…
1
2 3