Skip to content
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

Interpolate x value for plotting #64

Merged
merged 5 commits into from
Nov 20, 2023
Merged

Interpolate x value for plotting #64

merged 5 commits into from
Nov 20, 2023

Conversation

JoshuaLampert
Copy link
Owner

@JoshuaLampert JoshuaLampert commented Nov 7, 2023

I was hoping to improve the plots by not using the constant interpolation at a position x, but using higher order interpolation, in particular I was hoping to have a smaller phase shift in some plots, where we plot the solution at certain x values that are not on the grid. Unfortunately, the plots did not really improve, also not for cubic interpolation.

@codecov-commenter
Copy link

codecov-commenter commented Nov 7, 2023

Codecov Report

Merging #64 (c947853) into main (0c544cb) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@            Coverage Diff             @@
##             main      #64      +/-   ##
==========================================
- Coverage   96.09%   96.08%   -0.01%     
==========================================
  Files          13       13              
  Lines         972      971       -1     
==========================================
- Hits          934      933       -1     
  Misses         38       38              
Files Coverage Δ
src/visualization.jl 91.72% <100.00%> (-0.06%) ⬇️

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

@ranocha
Copy link
Collaborator

ranocha commented Nov 8, 2023

Nice idea. You could check how it looks like in a scatter plot of the numerical data overlayed on the reference data. If you don't see an improvement of the phase shift there, there is no chance to get better results using intrpolations.

@JoshuaLampert
Copy link
Owner Author

A scatter plot does not really change much, but there is also a slight difference in the frequency, such that the phase shift becomes smaller over time. Looks like the results are closer to the solution from Svärd and Kalisch (at their finest grid) than to the experimental data.

@JoshuaLampert
Copy link
Owner Author

I would like to merge this anyway since linear interpolation should be more appropriate than constant. Technically, I would call this a breaking change since it changes the output of a plot. Since #69 was also breaking already, I will bump the minor version after merging this PR.

@JoshuaLampert JoshuaLampert merged commit 0182e0a into main Nov 20, 2023
10 of 11 checks passed
@JoshuaLampert JoshuaLampert deleted the interpolate-x-plot branch November 20, 2023 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants