Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit0dd1770

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 parents3ae2b3b +a1bf2b8 commit0dd1770

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
ifi+1inseg_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
ifi+7inseg_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
ifi+13inseg_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
if17inseg_bold:
126126
ax.plot(theta0,r0,'-k',lw=linewidth+2)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp