Browse Source

fk_analyse: fix bar plot mpl ver >3

master
braunfuss 12 months ago
parent
commit
3b0575de50
  1. 5
      obspy_fk_analyse_polar.py

5
obspy_fk_analyse_polar.py

@ -195,9 +195,10 @@ class FK(Snuffling):
# circle through backazimuth
for i, row in enumerate(hist):
ax.bar(left=(pi / 2 - (i + 1) * dw) * num.ones(N),
ax.bar((pi / 2 - (i + 1) * dw) * num.ones(N),
height=dh * num.ones(N), width=dw,
bottom=dh * num.arange(N), color=cmap(row / hist.max()))
bottom=dh * num.arange(N), color=cmap(row / hist.max()),
align="edge")
ax.set_xticks([pi / 2, 0, 3. / 2 * pi, pi])
ax.set_xticklabels(['N', 'E', 'S', 'W'])

Loading…
Cancel
Save