PmagPy / 2016_Tauxe-et-al_PmagPy_Notebooks

Repository containing example Jupyter notebooks that were developed for the Tauxe et al., 2016 manuscript on the PmagPy project
0 stars 1 forks source link

apwp.py and plot_poles_colorbar example #1

Closed lfairchild closed 8 years ago

lfairchild commented 8 years ago

In the Examples notebook, I'm currently trying to demonstrate pulling out poles from the built-in 'apwp' function and plotting them using the plot_pole_colorbar function. I had to work with the formatting of the apwp output a little to get it into a pandas dataframe (maybe this is something that should eventually be implemented in the actual code), but, once I did this, the plotting function really does not like the values for some reason, and I can't figure out why. I feel like I've tried tweaking everything and comparing to the working APWP plot in the Slate Islands notebook, but nothing has worked so far. I feel like there's something obvious I'm missing with the data format, as the plot_pole_colorbar function is working fine with the Torsvik (2012) data in the Slate Islands notebook. (Another option would be to copy the APWP plot and Torsvik data from the Slate Islands notebook, but I figured I'd try to demonstrate the built-in apwp() function while I was at it.)

Swanson-Hysell commented 8 years ago

Are all of the numbers in the apwp.py output floats? That could be the issue.


Nicholas Swanson-Hysell Assistant Professor Department of Earth and Planetary Science University of California, Berkeley

mobile number: 510.542.4787 http://www.swanson-hysell.org

On Tue, Dec 22, 2015 at 4:23 PM, Luke Fairchild notifications@github.com wrote:

In the Examples notebook, I'm currently trying to demonstrate pulling out poles from the built-in 'apwp' function and plotting them using the plot_pole_colorbar function. I had to work with the formatting of the apwp output a little to get it into a pandas dataframe (maybe this is something that should eventually be implemented in the actual code), but, once I did this, the plotting function really does not like the values for some reason, and I can't figure out why. I feel like I've tried tweaking everything and comparing to the working APWP plot in the Slate Islands notebook, but nothing has worked so far. I feel like there's something obvious I'm missing with the data format, as the plot_pole_colorbar function is working fine with the Torsvik (2012) data in the Slate Islands notebook. (Another option would be to copy the APWP plot and Torsvik data from the Slate Islands notebook, but I figured I'd try to demonstrate the built-in apwp() function while I was at it.)

— Reply to this email directly or view it on GitHub https://github.com/Swanson-Hysell/2016_Tauxe-et-al_PmagPy_Notebooks/issues/1 .

lfairchild commented 8 years ago

I've added a simplified example of plotting VGPs to the notebook. I still thought it might be nice to also demonstrate plot_pole_colorbar(), so in lieu of apwp.py I just added the Torsvik (2012) APWP data to a folder in the main repo. I think it could be a nice demonstration, but I'm open to scrapping it too if it doesn't seem necessary. The figure (accompanied by some text) is in the notebook now.

Swanson-Hysell commented 8 years ago

I think that doing this plot_pole_colorbar() demonstration is the way to go in lieu of apwp.py as it is the implementation that we actually use. Looks good.