pygmi.mt.graphs#

Plot Data using Matplotlib.

Classes#

MyMplCanvas

Matplotlib canvas widget for the actual plot.

PlotPoints

Plot points class.

Module Contents#

class pygmi.mt.graphs.MyMplCanvas(parent=None, width=8, height=6, dpi=100)#

Bases: matplotlib.backends.backend_qtagg.FigureCanvasQTAgg

Matplotlib canvas widget for the actual plot.

This routine will also allow the picking and movement of nodes of data.

Parameters:

parent (parent, optional) – Reference to the parent routine. The default is None.

button_release_callback(event)#

Mouse button release callback.

Parameters:

event (event) – event variable.

Return type:

None.

motion_notify_callback(event)#

Move mouse callback.

Parameters:

event (event) – event variable.

Return type:

None.

onpick(event)#

Picker event.

Parameters:

event (event) – event variable.

Returns:

True if successful, False otherwise.

Return type:

bool

update_line(data, ival, itype)#

Update the plot from point data.

Parameters:
  • data (EDI data object) – EDI data.

  • ival (str) – dictionary key.

  • itype (str) – dictionary key.

Return type:

None.

class pygmi.mt.graphs.PlotPoints(parent=None)#

Bases: pygmi.misc.ContextModule

Plot points class.

change_band()#

Combo to choose band.

Return type:

None.

run()#

Entry point into the routine, used to run context menu item.

Return type:

None.