This example demonstrates how to use the auxiliary functions to create the PlateReconstruction and PlotTopologies objects quickly.¶
In [1]:
from gplately.auxiliary import get_gplot, get_plate_reconstruction
# use the auxiliary function to create a PlateReconstruction object
plate_reconstruction_obj = get_plate_reconstruction("Zahirovic2022")
print(plate_reconstruction_obj)
# use the auxiliary function to create a PlotTopologies object
plot_topologies_obj = get_gplot("Zahirovic2022", time=100)
print(plot_topologies_obj)
<gplately.reconstruction.PlateReconstruction object at 0x7f9a439ef6b0>
<gplately.plot.plot_topologies.PlotTopologies object at 0x7f9a439effe0>
There is a PlateReconstruction object inside the PlotTopologies object.
So, in most cases, a single get_gplot() call is enough.
You can retrieve the PlateReconstruction object from the PlotTopologies object later.
In [2]:
plate_reconstruction_obj_within_plot_topologies_obj = (
plot_topologies_obj.plate_reconstruction
)
print(plate_reconstruction_obj_within_plot_topologies_obj)
<gplately.reconstruction.PlateReconstruction object at 0x7f9a439ee420>