Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8b53a7c

Browse filesBrowse files
committed
Fix Left ventricle bullseye example
1 parent ecf6e26 commit 8b53a7c
Copy full SHA for 8b53a7c

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎examples/specialty_plots/leftventricle_bulleye.py

Copy file name to clipboardExpand all lines: examples/specialty_plots/leftventricle_bulleye.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def bullseye_plot(ax, data, seg_bold=None, cmap=None, norm=None):
8080
# First segment start at 60 degrees
8181
theta0 = theta[i * 128:i * 128 + 128] + np.deg2rad(60)
8282
theta0 = np.repeat(theta0[:, np.newaxis], 2, axis=1)
83-
z = np.ones((128, 2)) * data[i]
83+
z = np.ones((128 - 1, 2 - 1)) * data[i]
8484
ax.pcolormesh(theta0, r0, z, cmap=cmap, norm=norm, shading='auto')
8585
if i + 1 in seg_bold:
8686
ax.plot(theta0, r0, '-k', lw=linewidth + 2)
@@ -94,7 +94,7 @@ def bullseye_plot(ax, data, seg_bold=None, cmap=None, norm=None):
9494
# First segment start at 60 degrees
9595
theta0 = theta[i * 128:i * 128 + 128] + np.deg2rad(60)
9696
theta0 = np.repeat(theta0[:, np.newaxis], 2, axis=1)
97-
z = np.ones((128, 2)) * data[i + 6]
97+
z = np.ones((128 - 1, 2 - 1)) * data[i + 6]
9898
ax.pcolormesh(theta0, r0, z, cmap=cmap, norm=norm, shading='auto')
9999
if i + 7 in seg_bold:
100100
ax.plot(theta0, r0, '-k', lw=linewidth + 2)
@@ -108,7 +108,7 @@ def bullseye_plot(ax, data, seg_bold=None, cmap=None, norm=None):
108108
# First segment start at 45 degrees
109109
theta0 = theta[i * 192:i * 192 + 192] + np.deg2rad(45)
110110
theta0 = np.repeat(theta0[:, np.newaxis], 2, axis=1)
111-
z = np.ones((192, 2)) * data[i + 12]
111+
z = np.ones((192 - 1, 2 - 1)) * data[i + 12]
112112
ax.pcolormesh(theta0, r0, z, cmap=cmap, norm=norm, shading='auto')
113113
if i + 13 in seg_bold:
114114
ax.plot(theta0, r0, '-k', lw=linewidth + 2)
@@ -120,7 +120,7 @@ def bullseye_plot(ax, data, seg_bold=None, cmap=None, norm=None):
120120
r0 = np.array([0, r[0]])
121121
r0 = np.repeat(r0[:, np.newaxis], theta.size, axis=1).T
122122
theta0 = np.repeat(theta[:, np.newaxis], 2, axis=1)
123-
z = np.ones((theta.size, 2)) * data[16]
123+
z = np.ones((theta.size - 1, 2 - 1)) * data[16]
124124
ax.pcolormesh(theta0, r0, z, cmap=cmap, norm=norm, shading='auto')
125125
if 17 in seg_bold:
126126
ax.plot(theta0, r0, '-k', lw=linewidth + 2)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.