plotting module¶
-
class
apsg.plotting.
StereoNet
(*args, **kwargs)¶ Bases:
object
StereoNet
class for Schmidt net plotting.A stereonet is a lower hemisphere Schmidt net on to which a variety of geological data can be plotted.
If args are provided plot is immediately shown. If no args are provided, following methods and properties could be used for additional operations.
Parameters: plottable APSG class (any) –
Keyword Arguments: - fol_plot – default method for
Fol
instances. [‘plane’ or ‘pole’] Default ‘plane’ - title – figure title. Default ‘’
- figsize – Figure size. Default from settings ()
- ncols – number of subplot columns. Default 1
- ticks – show ticks. Default True
- grid – show grid lines. Default False
- gridlw – grid lines width. Default 1
- grid_style – grid lines style. Default ‘k:’
- cbpad – colorbar padding. Default 0.1
- keyword arguments are passed to matplotlib plot. (Other) –
Example
# Immediate plot >>> StereoNet(Fol(120, 30), Lin(36, 8)) # StereoNet API >>> s = StereoNet() >>> g = Group.randn_lin(mean=Lin(40, 20)) >>> s.contourf(g, 8, legend=True, sigma=2) >>> s.line(g, ‘g.’, label=’My data’) >>> s.show()
-
animate
(**kwargs)¶ Return artist animation
-
arc
(f1, f2, *args, **kwargs)¶ Draw great circle segment between two points
-
arrow
(pos_lin, dir_lin=None, sense=1, **kwargs)¶ Draw arrow at given position in given direction
-
axtitle
(title)¶ Add axes title
-
cla
()¶ Clear axes and draw empty projection
-
close
()¶
-
cone
(obj, alpha, *args, **kwargs)¶ Draw small circle
-
contour
(obj, *args, **kwargs)¶ Plot contour lines
-
contourf
(obj, *args, **kwargs)¶ Plot filled contours
-
draw
()¶
-
fault
(obj, *arg, **kwargs)¶ Draw a fault-and-striae as in Angelier plot
-
format_coord
(x, y)¶
-
getfol
()¶ get Fol by mouse click
-
getfols
()¶ get Group of Fol by mouse
-
getlin
()¶ get Lin by mouse click
-
getlins
()¶ get Group of Lin by mouse
-
hoeppner
(obj, *arg, **kwargs)¶ Draw a fault-and-striae as in tangent lineation plot - Hoeppner plot
-
line
(obj, *args, **kwargs)¶ Draw Lin as point
-
new
()¶ Re-initialize existing StereoNet figure
-
pair
(obj, *arg, **kwargs)¶ Draw Pair as great circle with small point
-
plane
(obj, *args, **kwargs)¶ Draw Fol as great circle
-
pole
(obj, *args, **kwargs)¶ Draw Fol as pole
-
savefig
(filename='apsg_stereonet.pdf', **kwargs)¶ Save figure to file
-
show
()¶ Call matplotlib show
-
tensor
(obj, *arg, **kwargs)¶ Draw tensor pricipal planes as great circles
-
vector
(obj, *args, **kwargs)¶ This mimics plotting on lower and upper hemisphere using full and hollow symbols
-
closed
¶
- fol_plot – default method for
-
class
apsg.plotting.
VollmerPlot
(*args, **kwargs)¶ Bases:
apsg.plotting._FabricPlot
Represents the triangular fabric plot (Vollmer, 1989).
-
cla
()¶ Clear projection.
-
format_coord
(x, y)¶
-
path
(objs, *args, **kwargs)¶
-
plot
(obj, *args, **kwargs)¶
-
triplot
(a, b, c, *args, **kwargs)¶
-
-
class
apsg.plotting.
RamsayPlot
(*args, **kwargs)¶ Bases:
apsg.plotting._FabricPlot
Represents the Ramsay deformation plot.
-
cla
()¶ Clear projection.
-
format_coord
(x, y)¶
-
path
(objs, *args, **kwargs)¶
-
plot
(obj, *args, **kwargs)¶
-
show
()¶
-
-
class
apsg.plotting.
FlinnPlot
(*args, **kwargs)¶ Bases:
apsg.plotting._FabricPlot
Represents the Ramsay deformation plot.
-
cla
()¶ Clear projection.
-
format_coord
(x, y)¶
-
path
(objs, *args, **kwargs)¶
-
plot
(obj, *args, **kwargs)¶
-
show
()¶
-
-
class
apsg.plotting.
HsuPlot
(*args, **kwargs)¶ Bases:
apsg.plotting._FabricPlot
Represents the Hsu fabric plot.
-
cla
()¶ Clear projection.
-
format_coord
(x, y)¶
-
path
(objs, *args, **kwargs)¶
-
plot
(obj, *args, **kwargs)¶
-
-
apsg.plotting.
rose
(a, bins=13, **kwargs)¶ Plot the rose diagram.