python import numpy as np import visvis as vv np.random.seed(0) x = np.random.randn(100) y = np.random.randn(100) fig = vv.figure() ax = vv.gca() ax.plot(x, y, 'o') vv.present() python import numpy as np import visvis as vv x = np.linspace(0, 10, 100) y1 = np.sin(x) y2 = np.cos(x) fig = vv.figure() ax = vv.gca() ax.plot(x, y1, 'r-', lw=2) ax.plot(x, y2, 'b--', lw=2) vv.present() python import numpy as np import visvis as vv fig = vv.figure() ax = vv.gca() ax.axis.axisColor = vv.Color(0, 0, 0) ax.axis.visible = True vv.cube(ax, filled=True) vv.present()


上一篇:
下一篇:
切换中文