pygmi.bholes.graphs#
Methods to plot borehole data via the context menu.
Classes#
Matplotlib canvas widget for the actual plot. |
|
Class to plot the borehole log. |
Functions#
|
Get hatching from an SVG file, to be used on the log. |
|
Create the correct case for a string and inserts carriage returns. |
|
Check a filename for illegal characters. |
Module Contents#
- class pygmi.bholes.graphs.MyMplCanvas(parent=None)#
Bases:
matplotlib.backends.backend_qtagg.FigureCanvasQTAgg
Matplotlib canvas widget for the actual plot.
- Parameters:
parent (parent, optional) – Reference to the parent routine. The default is None.
- update_legend(data1)#
Update the plot legend.
- Parameters:
data1 (dictionary) – Dictionary containing the data.
- Return type:
None.
- update_log(data1)#
Update the borehole log plot.
- Parameters:
data1 (dictionary.) – PyGMI log dataset to be used.
- Return type:
None.
- class pygmi.bholes.graphs.PlotLog(parent=None)#
Bases:
pygmi.misc.ContextModule
Class to plot the borehole log.
- Parameters:
parent (parent, optional) – Reference to the parent routine. The default is None.
- change_band()#
Combo box to choose the borehole to display.
- Return type:
None.
- run()#
Entry point into the routine, used to run context menu item.
- Return type:
None.
- pygmi.bholes.graphs.gethatch(svgfile)#
Get hatching from an SVG file, to be used on the log.
- Parameters:
svgfile (str) – SVG filename.
- Return type:
None.
- pygmi.bholes.graphs.commentprep(mystring, slen=50)#
Create the correct case for a string and inserts carriage returns.
- Parameters:
mystring (str) – String to correct.
slen (int, optional) – String length. The default is 50.
- Returns:
finstring – Output string.
- Return type:
str
- pygmi.bholes.graphs.chkname(iname)#
Check a filename for illegal characters.
- Parameters:
iname (str) – Input filename.
- Returns:
iname – Corrected filename.
- Return type:
str