- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
共有4186个数据点。
这是我的电脑配置。移动图形非常慢。用类似数据的矩阵绘制曲面图有什么更快的方法吗?谢谢。
而且我的电脑还不错。磁盘是三星SSD EVO 840 500g
按照 mrcl 的建议使用 mayavi2 冲浪图,我的代码如下:
import pandas as pd
a = pd.read_csv('result.csv')
import numpy as np
from mayavi import mlab
x,y,z = a.fast.values, a.slow.values, a.profit.values
mlab.points3d(x,y,z)
mlab.show()
最佳答案
如何在 mayavi 中使用冲浪绘图的示例。
import numpy
from mayavi.mlab import *
def f(x, y):
sin, cos = numpy.sin, numpy.cos
return sin(x + y) + sin(2 * x - y) + cos(3 * x + 4 * y)
x, y = numpy.mgrid[-7.:7.05:0.1, -5.:5.05:0.05]
s = surf(x, y, f(x,y))
#cs = contour_surf(x, y, f, contour_z=0)
show()
干杯
关于python - 移动图形时 matplotlib trisurf 缓慢,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22263745/
长话短说,我想在 python 中绘制一个通用的 3D 三角形网格。 Matplotlib 似乎是理想的候选者,但我会选择任何可以完成我将要描述的内容的 3D 渲染。 假设我有一个由 X、Y 和 Z
共有4186个数据点。 这是我的电脑配置。移动图形非常慢。用类似数据的矩阵绘制曲面图有什么更快的方法吗?谢谢。 而且我的电脑还不错。磁盘是三星SSD EVO 840 500g 按照 mrcl 的建议使
我有三个数据列表:X、Y、Z,并尝试用它们生成 3d trisurf 图(我在 MATLAB 和 Python 中都做了)。 问题是绘图似乎丢失了一些东西,在 MATLAB 中它是 K = borde
我正在尝试做 this和我的 data具有以下结构: 0.90000000 0.90000000 -2133.80472139 0.90000000 0.95000000 -2133.84
我试图重做这个已经回答的问题Matplotlib - plot_surface : get the x,y,z values written in the bottom right corner ,但
我是一名优秀的程序员,十分优秀!