Replies: 5 comments 7 replies
-
|
I have answered my own question regards (2). The values can be extracted from the axes object using axes.get_children()[index].get_xdata() Regards (1), I have not found a way of using mixed axes directly using pyleoclim, and would still be interested, but now I can get all the values out I can work around this. |
Beta Was this translation helpful? Give feedback.
-
|
Hello @Swan-chip and welcome to Pyleoclim! These are good questions and I need to make a note of adding that to a tutorial at some point. It's always easier with some code to demonstrate, so let's start from the docstring from the PSD.signif_test() method:
Assuming you want to use the frequency axis for this instead of period: You can also hack the source code for the plot method for inspiration (though it is admittedly not for the faint of heart!).
You will find them in The key here is that the Please let us know if you have other questions! Your solution of pulling the data from the figure axes is resourceful, but a tad more cumbersome. It's rare to have to dig down to those values, but if that becomes more commonplace we can find ways to better expose them. Note also that the PSD object does a few things besides plotting, and in that case you did not need to plot to access the values. If you were looping over many/long series, these differences would become meaningful. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for another helpful reply 😊 Yes it is the RedConf you found. I guess to get the underlying noise I can use: pyleo.utils.tsmodel.ar1_sim Which I could then presumably add into the PSD.signif_qs by some means. You might wonder why I do not simply use qs = 0.5 and compare the pyleoclim with matlab confidence levels. However, I already know these diverge and I wonder whether the difference comes in the original fitting of noise or the calculation of chi-squared confidence levels. The pyleo asymptotic confidence levels are MUCH lower than the direct simulation (AR1sim). They place just about every peak >> 99% significance, which I think I can probably just discard as unhelpful. Interestingly, the overall amplitudes of the two plots are quite different, despite having identical peaks and trough wavelengths and relative amplitudes. I wonder whether this is a clue, but I am clutching at straws. I have attached the pyleo and matlab plots of the same data purportedly with comparable analysis. To answer your question, I don’t think I can give much useful feedback on the significance as I am only dabbling in this to test reproducibility. I am reviewing a manuscript for which there are other important aspects on which I do actually have some expertise! It has been fascinating, slight struggle but possibly relevant to postdoc I'm starting in May. Pyleoclim is excellently supported with tutorials and docs and of course this forum! Any further thoughts on the comparison welcome. I am still stuck with a problem of WHY I am reproducing such lower significance with pyleo. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
We had a development meeting today and I confirm that |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
Hello all
Real beginner with pyleoclim but really enjoying. Struggling with plots though.
Using the pyleoclim.core.psds.PSD.plot() is there a way of using linear on the x-axis bu log-scale on the Y-axis?
On a related question, is there a way of extracting the numeric values from the PSD.signif_test() method?
I can find the PSD.signif_qs attribute, which is a MultiplePSD object that displays the confidence level graphically when called, but I have found no way to get to the underlying values. I have found some of the formatting features associated with the plots frustratingly unpredictable (problem with my install?) so it would be great to be able to extract all the data to plot using more familiar modules that I can tailor more precisely.
Many thanks in advance :-)
Beta Was this translation helpful? Give feedback.
All reactions