Skip to content

Commit 0dd1770

Browse files
authored
Merge pull request #24778 from meeseeksmachine/auto-backport-of-pr-24772-on-v3.6.2-doc
Backport PR #24772 on branch v3.6.2-doc (Fix Left ventricle bullseye example)
2 parents 3ae2b3b + a1bf2b8 commit 0dd1770

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/specialty_plots/leftventricle_bulleye.py

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy