Skip to content

Commit

Permalink
Refactor: removed deprecated matplotlib settings
Browse files Browse the repository at this point in the history
  • Loading branch information
simetenn committed Oct 11, 2018
1 parent b8bd79f commit 533b56b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/uncertainpy/plotting/plot_uncertainty.py
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ def sensitivity_1d_grid(self,
# ax.set_xticklabels(xlabels, fontsize=labelsize, rotation=0)
ax.tick_params(labelsize=10)
else:
ax.axis(False)
ax.set_axis_off()

title = title.capitalize() + ", " + feature.replace("_", " ")
plt.suptitle(title, fontsize=titlesize)
Expand Down Expand Up @@ -1909,7 +1909,7 @@ def average_sensitivity_grid(self,
msg = " Unable to plot {sensitivity}_average_grid. {sensitivity}_average of {feature} does not exist."
logger.warning(msg.format(sensitivity=sensitivity,
feature=features[i]))
ax.axis(False)
ax.set_axis_off()
continue

prettyBar(self.data[features[i]][sensitivity + "_average"],
Expand All @@ -1929,7 +1929,7 @@ def average_sensitivity_grid(self,
# ax.set_xticklabels(xlabels, fontsize=labelsize, rotation=0)
ax.tick_params(labelsize=fontsize)
else:
ax.axis(False)
ax.set_axis_off()

title = "Average of " + title
plt.suptitle(title, fontsize=titlesize)
Expand Down
2 changes: 1 addition & 1 deletion src/uncertainpy/plotting/prettyplot/prettyplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def set_grid(ax, bgcolor="#EAEAF2", linecolor="w", linestyle="-", linewidth=1.3)
Default is 1.3
"""
ax.set_axis_bgcolor(bgcolor)
ax.set_axisbelow("True")
ax.set_axisbelow(True)
ax.grid(True, color=linecolor, linestyle=linestyle, linewidth=linewidth,
zorder=-10)

Expand Down

0 comments on commit 533b56b

Please sign in to comment.