Questions tagged [surface]

A surface is a two-dimensional shape in a three-dimensional space.

A surface is a concept in geometry which roughly means a two-dimensional shape in a three-dimensional space.

For the Microsoft Surface tablets, see . For the Microsoft Pixelsense technology formerly known as Surface, see .

1044 questions
9
votes
3 answers

Create a surface plot of xyz altitude data in Python

I am trying to create a surface plot of a mountain in python, of which I have some xyz data. The end result should look something like that. The file is formatted as follows: 616000.0 90500.0 3096.712 616000.0 90525.0 3123.415 616000.0 90550.0…
sfluck
  • 345
  • 1
  • 2
  • 8
9
votes
3 answers

Run Pygame without a window / GUI

Is it possible to run pygame without creating a pygame window, surface or GUI? I want to utilize certain pygame functions, but I don't want a GUI popping up. For example, this function won't work unless I have set up a window within pygame. running…
RatstabOfficial
  • 479
  • 2
  • 8
  • 14
9
votes
1 answer

Plotting a 3d surface from a list of tuples in matplotlib

I'm trying to plot a 3d surface from a list of (X,Y,Z) tuples, data is like this, I'm unsure how to feed it to matplotlib: [(60,5,'121'), (61,5,'103'), (62,5,'14.8'), (63,5,'48.5'), (64,5,'57.5'), (65,5,'75.7'), (66,5,'89.6'),…
Finger twist
  • 3,546
  • 9
  • 42
  • 52
8
votes
1 answer

MATLAB pcolor/surf bilinear interpolation (shading interp)

Consider the following MATLAB code: C = [ 0 0 0 0 0 0 1 2 1 0 0 2 4 2 0 0 1 2 1 0 0 0 0 0 0 ]; pcolor( C ); shading interp; axis square Note that C is invariant under 90 degree rotations. Also note this sentence from the…
cfp
  • 208
  • 1
  • 7
8
votes
3 answers

matplotlib 2D slice of 3D data

I haven't been able to find anything on this, maybe because I don't have the right nomenclature (i.e. I don't know exactly how to ask for it), but anyway, I have a 3D numpy array "a". I would like to identify and plot the 2D surface where a=0. To…
bob.sacamento
  • 6,283
  • 10
  • 56
  • 115
8
votes
1 answer

Drawing 3D sphere with circumferences

I'm trying to draw a sphere like this one using matplotlib: but I can't find a way of having a dashed lines on the back and the vertical circumference looks a bit strange import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d…
Red
  • 664
  • 2
  • 10
  • 20
7
votes
1 answer

Plotly Plot surface 3D not displayed

I really can't find an answer on the forum. I want to create a 3d surface with plotly offline. I use sample points. The scene displays empty without a surface. Please help, thanks. import pandas as pd import numpy as np from plotly.offline import…
Pietruszka10
  • 71
  • 1
  • 3
7
votes
2 answers

How to draw a border around a sprite or image in pygame?

I'd like to draw a red border around an image, but can't figure out how. I've tried to fill the image of the Hero sprite and set the colorkey to red self.image.set_colorkey(red), but that makes the image invisible. Drawing a red rect onto the…
Yeoha I
  • 71
  • 1
  • 3
7
votes
2 answers

3D Waterfall Plot with Colored Heights

I'm trying to visualise a dataset in 3D which consists of a time series (along y) of x-z data, using Python and Matplotlib. I'd like to create a plot like the one below (which was made in Python:…
IanRoberts
  • 2,846
  • 5
  • 26
  • 33
7
votes
1 answer

How does an output surface of a Decoder is passed to an input surface of an Encoder?

I'm trying to understand how the surface-to-surface approach works with MediaCodec. In a ByteBuffer only approach, decoded data is placed in OutputBuffers. This non-encoded data can be processed manually then passed to the InputBuffers of an…
Léon Pelletier
  • 2,701
  • 2
  • 40
  • 67
7
votes
1 answer

Bluetooth api for surface pro 3 windows 8.1

I have a bluetooth button from Radius networks. The builtin - "add a bluetooth device" finds it every time. I need the api or a stack that I can use to do from my app. I am doing this in c#. the library 32 feet is not compatible
Joe
  • 721
  • 9
  • 22
7
votes
2 answers

how to create a 3D height map

I have a 2D array Z that stores the height at that element's position. Other than using the method here in which I need to create array X and Y with the same size as Z, are there any simpler methods to create a 3D height map? The 3D surface height…
Physicist
  • 2,848
  • 8
  • 33
  • 62
7
votes
4 answers

How to obtain 3D colored surface via Python?

How to obtain the following surface via Matplotlib? It is easy in matlab via: mesh(peaks) It seems matplotlib does not have an exact counterpart of mesh in matlab. the Wireframe plots does not have any colormap option
LCFactorization
  • 1,652
  • 1
  • 25
  • 35
6
votes
1 answer

How to center Item inside Surface in jetpack compose

How to center item inside the surface in jet pack compose @Composable fun RoundedShapeWithIconCenter( modifier: Modifier = Modifier, parentSize : Dp, parentBackgroundColor : Color, childPadding : Dp, icon : Painter, iconSize…
6
votes
2 answers

How can I access tablet pen data via Python?

I need to access a windows tablet pen data (such as the surface) via Python. I mainly need the position, pressure, and tilt values. I know how to access the Wacom pen data but the windows pen is different. There is a Python library named Kivy that…
Roi Yozevitch
  • 197
  • 3
  • 13
1
2
3
69 70