pygmi.mt.graphs#
Plot MT data using Matplotlib.
Classes#
Matplotlib canvas widget for the actual plot. |
|
Plot points class. |
|
Plot phase tensor. |
Module Contents#
- class pygmi.mt.graphs.MyMplCanvas(width=8, height=6, dpi=100)#
Bases:
matplotlib.backends.backend_qtagg.FigureCanvasQTAggMatplotlib canvas widget for the actual plot.
This routine will also allow the picking and movement of nodes of data.
- Parameters:
parent – Reference to the parent routine. The default is None.
width (float) – Canvas width.
height (float) – Canvas height.
dpi (int) – Canvas dpi.
- button_release_callback(event)#
Mouse button release callback.
- Parameters:
event (matplotlib.backend_bases.MouseEvent) – event variable.
- motion_notify_callback(event)#
Move mouse callback.
- Parameters:
event (matplotlib.backend_bases.MouseEvent) – event variable.
- onpick(event)#
Picker event.
- Parameters:
event (matplotlib.backend_bases.PickEvent) – event variable.
- Returns:
True if successful, False otherwise.
- Return type:
bool
- update_line(data, ival, itype)#
Update the plot from point data.
- Parameters:
data (dict) – Dictionary of EDI data.
ival (str) – EDI data dictionary key.
itype (str) – Graph type.
- update_phase(edi_list, plot_freq, plot_tipper, ellipse_colorby, ellipse_size, asize, ahwidth, ahlength)#
Update phase.
- Parameters:
edi_list (list[str]) – list of EDI files.
plot_freq (float) – Frequency to plot.
plot_tipper (str) – ‘y’ + ‘r’ and/or ‘i’ to plot.
ellipse_colorby (str) – Colour by “skew”, “phimin”, “phimax”
ellipse_size (float) – Scaling factor for the ellipses.
asize (float) – arrow size.
ahwidth (float) – arrow head width.
ahlength (float) – arrow head length.
- class pygmi.mt.graphs.PlotPoints(parent=None)#
Bases:
pygmi.misc.ContextModulePlot points class.
- Parameters:
parent – Reference to the parent routine. The default is None.
- change_band()#
Combo to choose band.
- run()#
Entry point into the routine, used to run context menu item.
- class pygmi.mt.graphs.PlotPhaseTensor(parent=None)#
Bases:
pygmi.misc.ContextModulePlot phase tensor.
- Parameters:
parent – Reference to the parent routine. The default is None.
- reset_data()#
Reset data.
- change_band()#
Combo to change band.
- export()#
Export to shapefile.
- run()#
Entry point into the routine, used to run context menu item.
- saveproj()#
Save project data from class.