sfstoolbox/sfs-python

Monofrequent dipole source example plot

hagenw opened this issue · 2 comments

The plot of the mono-frequent dipole source has a (normalization?) issue in the current version.

frequency-domain-9_new

http://python.sfstoolbox.org/en/latest/frequency-domain.html#sfs.mono.source.point_dipole

Before it was

frequency-domain-9_old

http://python.sfstoolbox.org/en/0.3.1/#sfs.mono.source.point_dipole

This is a strange one and seems to originate in matplotlib or numpy. The calculated sound fields are identical besides deviations in the order of e-26.

Plotting the field calculated by the master branch with numpy==1.14.0 and matplotlib==2.1.2 results in the first figure. Doing the same with numpy==1.13.1 and matplotlib==2.0.2 results in the second figure.

The difference between sfs 0.3.1 and its master branch comes from slightly different doc/requirements.txt files, which I used to install the packages.

It seems to be a matplotlib 2.1 issue, I just asked over there.
matplotlib/matplotlib#10567