Skip to content

Commit 0370a8b

Browse files
authored
Merge pull request #825 from HippocampusGirl/maint/1.3.x
FIX:Compatibility with matplotlib 3.8.0
2 parents e0a4a5a + 173a111 commit 0370a8b

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

niworkflows/viz/plots.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -887,8 +887,8 @@ def compcor_variance_plot(
887887
ax[m].set_yticks([])
888888
ax[m].set_yticklabels([])
889889
for tick in ax[m].xaxis.get_major_ticks():
890-
tick.label.set_fontsize("x-small")
891-
tick.label.set_rotation("vertical")
890+
tick.label1.set_fontsize("x-small")
891+
tick.label1.set_rotation("vertical")
892892
for side in ["top", "right", "left"]:
893893
ax[m].spines[side].set_color("none")
894894
ax[m].spines[side].set_visible(False)
@@ -981,9 +981,9 @@ def confounds_correlation_plot(
981981
ax0.tick_params(axis="both", which="both", width=0)
982982

983983
for tick in ax0.xaxis.get_major_ticks():
984-
tick.label.set_fontsize("small")
984+
tick.label1.set_fontsize("small")
985985
for tick in ax0.yaxis.get_major_ticks():
986-
tick.label.set_fontsize("small")
986+
tick.label1.set_fontsize("small")
987987
sns.barplot(
988988
data=gscorr,
989989
x="index",
@@ -1000,10 +1000,10 @@ def confounds_correlation_plot(
10001000
ax1.tick_params(axis="y", which="both", width=5, length=5)
10011001

10021002
for tick in ax1.xaxis.get_major_ticks():
1003-
tick.label.set_fontsize("small")
1004-
tick.label.set_rotation("vertical")
1003+
tick.label1.set_fontsize("small")
1004+
tick.label1.set_rotation("vertical")
10051005
for tick in ax1.yaxis.get_major_ticks():
1006-
tick.label.set_fontsize("small")
1006+
tick.label1.set_fontsize("small")
10071007
for side in ["top", "right", "left"]:
10081008
ax1.spines[side].set_color("none")
10091009
ax1.spines[side].set_visible(False)

niworkflows/viz/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -647,8 +647,8 @@ def plot_melodic_components(
647647
ax2.tick_params(axis="both", which="major", pad=0)
648648
sns.despine(left=True, bottom=True)
649649
for tick in ax2.xaxis.get_major_ticks():
650-
tick.label.set_fontsize(6)
651-
tick.label.set_color(color_time)
650+
tick.label1.set_fontsize(6)
651+
tick.label1.set_color(color_time)
652652

653653
ax3.plot(
654654
f[0:],
@@ -661,8 +661,8 @@ def plot_melodic_components(
661661
ax3.autoscale_view("tight")
662662
ax3.tick_params(axis="both", which="major", pad=0)
663663
for tick in ax3.xaxis.get_major_ticks():
664-
tick.label.set_fontsize(6)
665-
tick.label.set_color(color_power)
664+
tick.label1.set_fontsize(6)
665+
tick.label1.set_color(color_power)
666666
sns.despine(left=True, bottom=True)
667667

668668
plt.subplots_adjust(hspace=0.5)

0 commit comments

Comments
 (0)