### Development installation Source: https://github.com/joferkington/mplstereonet/blob/master/README.rst Sets up a development installation of mplstereonet. ```bash python setup.py develop ``` -------------------------------- ### Installation with pip Source: https://github.com/joferkington/mplstereonet/blob/master/README.rst Installs mplstereonet from PyPi using pip. ```bash pip install mplstereonet ``` -------------------------------- ### Local installation from source Source: https://github.com/joferkington/mplstereonet/blob/master/README.rst Installs mplstereonet locally from the source code. ```bash python setup.py install ``` -------------------------------- ### Density Contouring Example Source: https://github.com/joferkington/mplstereonet/blob/master/README.rst An example demonstrating density contouring of orientation data using mplstereonet. ```python import matplotlib.pyplot as plt import numpy as np import mplstereonet fig, ax = mplstereonet.subplots() strike, dip = 90, 80 num = 10 strikes = strike + 10 * np.random.randn(num) dips = dip + 10 * np.random.randn(num) cax = ax.density_contourf(strikes, dips, measurement='poles') ax.pole(strikes, dips) ax.grid(True) fig.colorbar(cax) plt.show() ``` -------------------------------- ### Basic Usage Example Source: https://github.com/joferkington/mplstereonet/blob/master/README.rst A basic example demonstrating how to plot a plane, pole to the plane, and rake using mplstereonet. ```python import matplotlib.pyplot as plt import mplstereonet fig = plt.figure() ax = fig.add_subplot(111, projection='stereonet') strike, dip = 315, 30 ax.plane(strike, dip, 'g-', linewidth=2) ax.pole(strike, dip, 'g^', markersize=18) ax.rake(strike, dip, -25) ax.grid() plt.show() ``` -------------------------------- ### Parsing Quadrant Strike/Dip Measurements Source: https://github.com/joferkington/mplstereonet/blob/master/README.rst Examples of parsing quadrant strike/dip measurements, ensuring they follow the right-hand-rule. ```python Parse quadrant strike/dip measurements. Note that the output follows the right-hand-rule. "215/10" --> Strike: 215.0, Dip: 10.0 "215/10E" --> Strike: 35.0, Dip: 10.0 "215/10NW" --> Strike: 215.0, Dip: 10.0 "N30E/45NW" --> Strike: 210.0, Dip: 45.0 "E10N 20 N" --> Strike: 260.0, Dip: 20.0 "W30N/46.7 S" --> Strike: 120.0, Dip: 46.7 ``` -------------------------------- ### Parsing Rake Measurements Source: https://github.com/joferkington/mplstereonet/blob/master/README.rst Examples of parsing rake measurements that do not necessarily follow the right-hand-rule. ```python Similarly, you can parse rake measurements that don't follow the RHR. "N30E/45NW 10NE" --> Strike: 210.0, Dip: 45.0, Rake: 170.0 "210 45 30N" --> Strike: 210.0, Dip: 45.0, Rake: 150.0 "N30E/45NW raking 10SW" --> Strike: 210.0, Dip: 45.0, Rake: 10.0 ``` -------------------------------- ### Parsing Quadrant Azimuth Measurements Source: https://github.com/joferkington/mplstereonet/blob/master/README.rst Examples of parsing quadrant azimuth measurements into degrees. ```python Parse quadrant azimuth measurements "N30E" --> 30.0 "E30N" --> 60.0 "W10S" --> 260.0 "N 10 W" --> 350.0 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.