Add plot recipe for pks#18
Conversation
(roughly in order of importance) - Change prominence/width lines to be kwarg flag based - For prominence lines only connect horizontal line to minima/maxima used for prominence calc - Autodetect maxima vs minima - Reorder series to change stacking of lines (prefer scatter points to be on top) - Reuse NaN arrays - Tweak visual characteristics of series
b2c6e4a to
c8842b0
Compare
|
Thanks for the PR! I rebased on master and made some tweaks to the interface and presentation. The tests will need to be updated but I think that is all that is needed to merge. I plan on updating the tests tomorrow unless you get to them first! 😁 |
|
Nice! 🙂 |
|
@halleysfifthinc I updated the test, but the horizontal prominence lines are broken in the plot. If you don't agree with the changes, feel free to revert them, or you can tell me what to do 🙂 |
halleysfifthinc
left a comment
There was a problem hiding this comment.
Any ideas how we could avoid unnecessarily duplicating series when making the extrema figure?
|
ah ok I understand 😅 |
|
One last question: I'm not familiar with the Plots ecosystem (I use PlotlyJS directly). Is a subject-verb phrasing (e.g. |
|
I would say it’s the more common order, seeStatsPlots.jl or GraphRecipes.jl But I have no strong opinion on this. |
|
Hmm I think a key difference compared to plots in StatsPlots or GraphRecipes is that those are well-known named kinds of plots with proper names, whereas in this case I don't think that a "peaks" plot is a distinct/common named plot format. I'll switch it to FYI There are another couple of updates I have planned before tagging v0.5.0, so I won't be tagging/releasing immediately. |
|
Ok, no hurry from my side! Thanks for the review!!! 😀 |

Hi,
I don't know if this is desirable, but I added a plot-recipe for peaks, to be used as
Only
RecipesBaseis added as a (very lightweight) dependency,Plots.jlmust be installed by the user, or will be installed when running the unit tests.Heavily inspired by JuliaNLSolvers/LsqFit.jl#180
PS: Thanks for this great package, it has served me extensively in the past :)