Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion lib/mpl_toolkits/mplot3d/axes3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -1438,7 +1438,7 @@ def plot(self, xs, ys, *args, zdir='z', **kwargs):
zs = kwargs.pop('zs', 0)

# Match length
zs = np.broadcast_to(zs, len(xs))
zs = np.broadcast_to(zs, np.shape(xs))

lines = super().plot(xs, ys, *args, **kwargs)
for line in lines:
Expand Down
8 changes: 8 additions & 0 deletions lib/mpl_toolkits/tests/test_mplot3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,14 @@ def test_lines3d():
ax.plot(x, y, z)


@check_figures_equal(extensions=["png"])
def test_plot_scalar(fig_test, fig_ref):
ax1 = fig_test.gca(projection='3d')
ax1.plot([1], [1], "o")
ax2 = fig_ref.gca(projection='3d')
ax2.plot(1, 1, "o")


@image_comparison(['mixedsubplot.png'], remove_text=True)
def test_mixedsubplots():
def f(t):
Expand Down