-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename plotting functions #26
Comments
The function In fact I would vote for 2D/3D submodules. 3D plotting will always be a bit experimental. |
I'd vote for: some further thoughts on it: For the loudspeaker part with submodules 2D/3D I'd vote for |
Sounds good, but there is no need for shortening those function names! How should we call the 2D and 3D submodules?
I don't know if I understood correctly, but the result would be two different types of plot: in one case an image plot and in the other case a quiver plot, right? |
I'd prefer sfs.plot2D and sfs.plot3D as submodules making naming more consistent. I think one gets familiarised with calling plot2D() instead of plot() very fast. Or can we have a plot() that actually links to plot2D()?
I could start to implement this. For now we could preserve the old function names for legacy issues and linking them to the new ones? |
OK, No need to keep the old names for compatibility, either. Currently, we are re-structuring and re-naming many things, it's not feasible to keep any kind of backwards-compatibility. After this round of renaming, we may think about becoming a bit more conservative regarding backwards-compatibility. |
On 8. Mar 2019, at 10:37 AM, Matthias Geier ***@***.***> wrote:
OK, sfs.plot2d and sfs.plot3d sound good. No need to keep sfs.plot.
That sounds very meaningful to me.
No need to keep the old names for compatibility, either. Currently, we are re-structuring and re-naming many things, it's not feasible to keep any kind of backwards-compatibility.
This one as well.
…
After this round of renaming, we may think about becoming a bit more conservative regarding backwards-compatibility.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
To summarize, we will then have for plotting the sound fields: For For plotting the secondary sources the discussion was not finished as far as I understand it.
Additionally, there were other naming proposals for them: I would exclude |
I think I would prefer separate functions for plotting loudspeaker symbols (i.e. option (1) above). I don't know if "contour" makes much sense since we normally use discretized contours, right? |
#145 contains the re-naming discussed above, but it doesn't change any behavior, nor does it add the additional functions suggested above. |
Thank you for handling this!! |
Since we can plot different types of soundfields (pressure, velocity), the name
sfs.plot.soundfield()
is ambiguous.There is a function called
sfs.plot.level()
, which means we could probably use something likesfs.plot.amplitude()
instead.Or probably it should be something with "pressure" in its name?
The function
sfs.plot.loudspeaker_3d()
doesn't actually plot loudspeakers.Also, in most cases multiple loudspeakers will be plotted, so probably using the plural would be appropriate?
Plotting loudspeakers in 2D will probably be the default, therefore the name
loudspeaker_2d()
seems clumsy and should probably be renamed to simplyloudspeaker()
(or the plural of it).Another possibility would be that we make two separate submodules for 2D and 3D plotting, what about that?
The text was updated successfully, but these errors were encountered: