Skip to content

Commit b2c19f8

Browse files
author
Laura Gutierrez Funderburk
authored
fix bug in 3d plot
matplotlib/matplotlib#4067
1 parent d32de10 commit b2c19f8

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

  • notebooks/coast-salish-fish-traps/scripts

‎notebooks/coast-salish-fish-traps/scripts/scripts.py‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Authors: Bryce Haley, Laura Gutierrez Funderburk
22
# Created on June 2020
3-
# Last modified on Feb 26 2021
3+
# Last modified on March 30 2021
44
"""
55
This script contains functions whose goal is to model Coast Salish Fish Traps
66
@@ -559,8 +559,8 @@ def create_3d_trap(radius, height, delta):
559559
beach_surf = plt3d.plot_surface(xx, yy, zz, alpha=0.2, color = 'brown', label = "beach")
560560

561561
# tide_surf equations below get the legend to show
562-
beach_surf._facecolors2d=beach_surf._facecolors3d
563-
beach_surf._edgecolors2d=beach_surf._edgecolors3d
562+
beach_surf._facecolors2d=beach_surf._facecolor3d
563+
beach_surf._edgecolors2d=beach_surf._edgecolor3d
564564

565565

566566
# find data for the points on the trap on top of the beach points
@@ -819,8 +819,8 @@ def create_3d_trap(radius, height, delta):
819819

820820
beach_surf = plt3d.plot_surface(xx, yy, zz, alpha=0.2, color = 'brown', label = "beach")
821821
# tide_surf equations below get the legend to show
822-
beach_surf._facecolors2d=beach_surf._facecolors3d
823-
beach_surf._edgecolors2d=beach_surf._edgecolors3d
822+
beach_surf._facecolors2d=beach_surf._facecolor3d
823+
beach_surf._edgecolors2d=beach_surf._edgecolor3d
824824

825825

826826

@@ -835,8 +835,8 @@ def create_3d_trap(radius, height, delta):
835835
z = np.array(tuple(zip(z, z2)))
836836

837837
trap_surface = plt3d.plot_surface(x,y,z, label='trap')
838-
trap_surface._facecolors2d=trap_surface._facecolors3d
839-
trap_surface._edgecolors2d=trap_surface._edgecolors3d
838+
trap_surface._facecolors2d=trap_surface._facecolor3d
839+
trap_surface._edgecolors2d=trap_surface._edgecolor3d
840840

841841

842842
plt3d.set_xlabel('X')

0 commit comments

Comments
 (0)