surface

MATLAB: Drawing atop a surface plot

谁说胖子不能爱 提交于 2019-12-10 14:18:22
问题 I'm plotting an R^2 to R function in MATLAB as a surface plot, which I colormap and view from above. surf(X, Y, data); colormap(jet); colobar; view(2); It produces (with some additional code) something like though the true nature of the function (for the purpose of understanding this question) is better observed from an angle like: I want to plot a circle atop my original plot (seen from above). Something like... I can't seem to achieve this however, since plotting in-a-plane elements on

Rendering MATLAB patch faces with Plotly fig2plotly()

这一生的挚爱 提交于 2019-12-10 01:06:50
问题 Problem: When attempting to export a polygon rendered with the patch command in MATLAB with fig2plotly , the final output is lacking the specified face colours. Perhaps a demonstration would help. Take the following vertices and faces to define a cube (lifted from the MATLAB documentation): vert = [0 0 0;1 0 0;1 1 0;0 1 0;0 0 1;1 0 1;1 1 1;0 1 1]; fac = [1 2 6 5;2 3 7 6;3 4 8 7;4 1 5 8;1 2 3 4;5 6 7 8]; And render it with the patch command, adding some colour information to the faces: patch(

How to plot contour lines on a surface plot? (4D)

对着背影说爱祢 提交于 2019-12-09 20:44:57
问题 I would like to make a 4d plot, where you have X, Y, Z (as a surface) and C (displayed as contours on that surface). What I have right now: What I would like to have: I suspect the answer will be some trick with facecolors or countourf3d but I can't seem to figure it out. Any help much appreciated. My code: import scipy.ndimage import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm def surfcont4d(X,Y,Z,V): # create the figure, add

The NFL is hoping big data tools can help bring down the number of concussions

爱⌒轻易说出口 提交于 2019-12-09 15:53:47
The NFL is hoping big data tools can help bring down the number of concussions, ligament tears, and other injuries sustained in each game of professional football. Currently, the injury count per game is holding steady at an average of six or seven. League engineers are working with Amazon Web Services to apply machine learning and artificial intelligence tools to player data, with the hope of finding in-game situations that commonly lead to injury, The Wall Street Journal reported this week. “Ultimately, we will be able to identify injury risk scenarios, and we will be able to predict injury

Area covered by a point cloud with R

自古美人都是妖i 提交于 2019-12-09 09:52:05
问题 I have a cloud of points scattered in a 2D Euclidean space. I would like to calculate the area inside the polygon linking the most extreme (=peripheral) points of the cloud. In other words, I would like to estimate the area covered by the cloud in this space. Is there a formula in R? Thanks a lot for any response Julien 回答1: This is called the convex-hull problem; R built-in chull function should do the work. To count area, you may use a formula from here. EDIT: Even better; splancs package

Open Windows 8.1 “Camera app” with VBA

ⅰ亾dé卋堺 提交于 2019-12-08 06:17:00
问题 I am attempting to just open the "Camera" app on a MS Surface tablet (Running Windows 8.1) using VBA, written in MS Access 2013 (VBA version is 7.1). I have used this Shell("C:\Windows\System32\write.exe") in the past, and it does what I need. (This just opens up Wordpad). However, using the same code for the Camera app doesn't run it. Shell("C:\Windows\Camera\camera.exe" I went to the camera's directory, double clicked on the .exe, and it still doesn't open. It pops up in task manager for a

Determining which screen a window is on (by checking where the most surfacearea is located)

情到浓时终转凉″ 提交于 2019-12-07 13:40:14
问题 I'm currently determining which screen a window is on, by checking on which screen it's very left-top position is. Now I'd like to change that so that I can find out on which scren the most surface area of the window is to be found. Any ideas how that can be accomplished? Here is my old code: (it simply moves the active window between all available screens when pressing F1) F1:: WinGetPos, X, Y,,, A window := {x:X,y:Y} monitors := GetMonitors() Loop % monitors.MaxIndex() { curMonitor :=

r plotly 3d surface plot issue

元气小坏坏 提交于 2019-12-07 09:47:06
问题 I am trying to plot a 3d surface plot based on these plotly examples When I try these examples on my dataset test_plotly = structure(list(Age = c(82L, 82L, 83L, 83L, 83L, 81L, 81L, 81L, 79L, 80L, 82L, 78L, 78L, 79L, 78L, 80L, 79L, 77L, 77L, 77L, 77L, 78L, 76L, 77L, 77L, 78L, 77L, 76L, 83L, 79L, 76L, 84L, 75L, 75L, 77L, 74L, 74L, 75L, 74L, 74L, 73L, 73L, 74L, 81L, 84L, 73L, 72L, 73L, 71L, 71L, 73L, 72L, 79L, 72L, 71L, 76L, 72L, 75L, 73L, 71L, 70L, 79L, 69L, 70L, 70L, 70L, 77L, 69L, 69L, 68L,

how to create a 3D height map in python

对着背影说爱祢 提交于 2019-12-07 06:21:19
问题 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 map is something like the first surface plot here. 回答1: Even if I agree with the others that meshgrids are not difficult, still I think that a solution is provided by the Mayavi package (check the function surf) from mayavi import mlab mlab.surf(Z)

在Surface上安装Ubuntu 16.04

老子叫甜甜 提交于 2019-12-06 05:44:28
Surface上面可以安装Ubuntu,而且比Windows还快、还省电! 有一个老的Surface Pro,因为换了Macbook Pro的原因,曾经被果断地打入冷宫。最近大扫除,把这货翻出来了,准备装个Ubuntu当服务器使。中间还是费了些周折,写出来帮大家少走点弯路。 需要几个步骤: 下载Ubuntu镜像。 制作Ubuntu的启动U盘。 修改Bios锁定,设为U盘启动。 安装Ubuntu 16.04 LTS。 安装Docker和OpenHab。 1、下载Ubuntu镜像。 先搞了个Ubuntu Desktop 15.04,结果装到一半死掉了。试了几次回复不了,放弃。 在笔记本上,下载Ubuntu 16.04 LTS( http://www.ubuntu.com )64位的,先烧到一个U盘上,做成自动的Ubuntu安装盘。 2、制作Ubuntu的启动U盘。 需要一个全空的U盘,启动U盘制作时会将原来的内容全部擦除!!! 将全空的U盘插入Macbook Pro,首先查看U盘的标识符: diskutil list ** 假设这里是/dev/disk6,一定不要搞错哦!后面的操作会将该盘全部擦除!!!** 卸载U盘,让后面的dd操作独占磁盘,按裸设备写入镜像。 diskutil umountdisk /dev/disk6 不要用MacOS系统的“弹出设备”操作,如果误用了