X Tutup
Skip to content

mplot3d: argument checking in plot_surface should be improved. #3116

@Tillsten

Description

@Tillsten

Following explamle should probaly rise an error.

import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d.axes3d import Axes3D

x = np.linspace(0.5,10,num=100)
y = np.linspace(0.5,10,num=100)

X, Y = np.meshgrid(x, y)
z = np.random.randn(100)

fig = plt.figure(figsize=(14,6))
ax = fig.add_subplot(1, 2, 1, projection='3d')
p = ax.plot_surface(X, Y, z, linewidth=0)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    X Tutup