attitude.display package¶
Subpackages¶
Submodules¶
attitude.display.cartopy module¶
attitude.display.error_comparison module¶
attitude.display.hyperbola module¶
-
class
attitude.display.hyperbola.
HyperbolicErrors
(*args, **kwargs)[source]¶ Bases:
object
A class to simplify plotting and animation of hyperbolic error areas that are orthogonal to the fitted plane. ax.fill_between cannot be used for these (unless the plane is flat), because the coordinate system is rotated.
-
attitude.display.hyperbola.
apparent_dip_correction
(axes)[source]¶ Produces a two-dimensional rotation matrix that rotates a projected dataset to correct for apparent dip
-
attitude.display.hyperbola.
hyperbola_values
(hyp_axes, xvals)[source]¶ - kwargs:
- transformation rotation to apply to quadric prior to slicing
- (e.g. transformation into ‘world’ coordinates
axes axes on which to slice the data
-
attitude.display.hyperbola.
hyperbolic_errors
(hyp_axes, xvals, transformation=None, axes=None, means=None, correct_apparent_dip=True, reverse=False)[source]¶ Returns a function that can be used to create a view of the hyperbolic error ellipse from a specific direction.
This creates a hyperbolic quadric and slices it to form a conic on a 2d cartesian plane aligned with the requested direction.
A function is returned that takes x values (distance along nominal line) and returns y values (width of error hyperbola)
- kwargs:
- transformation rotation to apply to quadric prior to slicing
- (e.g. transformation into ‘world’ coordinates
axes axes on which to slice the data
attitude.display.nbextension module¶
-
attitude.display.nbextension.
init_notebook_mode
()[source]¶ Initialize attitude.js in the browser.
Based heavily on the plotly offline setup function (https://github.com/plotly/plotly.py/blob/master/plotly/offline/offline.py)
Also see https://github.com/paulgb/nbgraph/blob/master/nbgraph/client/prepare_notebook.html
attitude.display.parametric module¶
attitude.display.pca_aligned module¶
attitude.display.stereonet module¶
-
attitude.display.stereonet.
girdle_error
(ax, fit, **kwargs)[source]¶ Plot an attitude measurement on an mplstereonet axes object.
attitude.display.test_hyperbolic_errors module¶
Test module to make sure that simple representations of hyperbolic errors are equivalent to more generalized expressions.
attitude.display.util module¶
Module contents¶
Functions for displaying data using matplotlib, cartopy, and interactive javascript, both for static plotting and the IPython notebook.
Deprecated code for generating HTML reports is also included in this module.