8000 [BUG] Don't allow 1d-arrays in plot_surface. by Tillsten · Pull Request #5166 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

[BUG] Don't allow 1d-arrays in plot_surface. #5166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 5, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
also check in plot_wireframe
  • Loading branch information
Till Stensitzki committed Oct 2, 2015
commit 85604a0c286845c688670564a9adeeb837147e7f
3 changes: 2 additions & 1 deletion lib/mpl_toolkits/mplot3d/axes3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -1756,7 +1756,8 @@ def plot_wireframe(self, X, Y, Z, *args, **kwargs):
cstride = kwargs.pop("cstride", 1)

had_data = self.has_data()
Z = np.atleast_2d(Z)
if Z.ndim != 2:
raise ValueError("Argument Z must be 2-dimensional.")
# FIXME: Support masked arrays
X, Y, Z = np.broadcast_arrays(X, Y, Z)
rows, cols = Z.shape
Expand Down
0