Browse Source

fk_analyse: fix bar plot mpl ver >3

master
braunfuss 4 months ago
parent
commit
3b0575de50
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      obspy_fk_analyse_polar.py

+ 3
- 2
obspy_fk_analyse_polar.py View File

@@ -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