GXCHIMERA class

class geosoft.gx.GXCHIMERA
CHIMERA GX function library.
static atomic_weight((GXContext)ctx, (str)arg1) → float:
Return the atomic weight of a particular element.
Parameters:
  • ctx (geosoft.gx.GXContext) – The GX execution context
  • arg1 (str) – element name (case insensitive)
Returns:

The atomic weight of the given element.

Return type:

float

New in version 6.4.2.

Note:

If the input string is not an element symbol (elements in the range
1-92, "H" to "U"), then returns a dummy (GS_R8DM).
static bar_plot((GXContext)ctx, (GXMVIEW)arg1, (str)arg2, (str)arg3, (GXVV)arg4, (GXVV)arg5, (GXVV)arg6, (GXVV)arg7, (int)arg8, (int)arg9, (float)arg10, (float)arg11) → None:
Plot a Bar plot of up to 8 channels.
Parameters:
  • ctx (geosoft.gx.GXContext) – The GX execution context
  • arg1 (geosoft.gx.GXMVIEW) – View object to plot to
  • arg2 (str) – Data group name
  • arg3 (str) – Offset group name
  • arg4 (geosoft.gx.GXVV) – X locations
  • arg5 (geosoft.gx.GXVV) – Y locations
  • arg6 (geosoft.gx.GXVV) – Data handles, stored as INT values
  • arg7 (geosoft.gx.GXVV) – Colours
  • arg8 (int) – Colour for edges
  • arg9 (int) – Offset symbols (0: No, 1: Yes)
  • arg10 (float) – Offset symbol size
  • arg11 (float) – Single bar width in data units.
Returns:

Nothing

Return type:

None

New in version 5.0.7.

Note:

The number of channels is taken from the Data handles VV.
Plots a bar plot with the center of the "X" axis at the symbol location.
See the note on offset symbols in geosoft.gx.GXCHIMERA.rose_plot()
static categorize_by_value((GXContext)ctx, (GXVV)arg1, (GXVV)arg2, (GXVV)arg3) → None:
Transform values to the index of input data ranges.
Parameters:
Returns:

Nothing

Return type:

None

New in version 6.1.0.

Note:

A list of minima (e.g.  M1, M2, M3, M4, M5) is input.
A list of values V is input and transformed to outputs N in the following manner:

if(V) >= M5) N = 5
else if(V) >= M4) N = 4
...
...
else if(V) >= M1) N = 1
else N = 0
static categorize_by_value_det_limit((GXContext)ctx, (GXVV)arg1, (GXVV)arg2, (float)arg3, (GXVV)arg4) → None:
Transform values to the index of input data ranges, with detection limit.
Parameters:
Returns:

Nothing

Return type:

None

New in version 6.2.0.

Note:

Same as geosoft.gx.GXCHIMERA.categorize_by_value(), but if the
input value is less than the detection limit,
the output value is set to zero.
static clip_to_detect_limit((GXContext)ctx, (GXVV)arg1, (float)arg2, (int)arg3) → None:
Apply detection limit clipping of data.
Parameters:
  • ctx (geosoft.gx.GXContext) – The GX execution context
  • arg1 (geosoft.gx.GXVV) – Input data vv (altered).
  • arg2 (float) – Detection limit
  • arg3 (int) – Auto-convert negatives?
Returns:

Nothing

Return type:

None

New in version 5.0.8.

Note:

Flow:

1. If auto-converting negatives, then all negative values
    are replaced by -0.5*value, and detection limit is ignored.

2. If not auto-converting negatives, and the detection limit is not
   rDUMMY, then values less than the detection limit are converted to
   one-half the detection limit.
static draw_circle_offset_markers((GXContext)ctx, (GXMVIEW)arg1, (GXVV)arg2, (GXVV)arg3, (GXVV)arg4, (GXVV)arg5, (float)arg6) → None:
Plots location marker and joining line for circle offset symbols
Parameters:
Return type:

None

New in version 5.0.7.

Note:

Draws black filled circle (symbols.gfn #7) and a joining line.
static draw_rectangle_offset_markers((GXContext)ctx, (GXMVIEW)arg1, (GXVV)arg2, (GXVV)arg3, (GXVV)arg4, (GXVV)arg5, (float)arg6, (float)arg7, (float)arg8) → None:
Plots location marker and joining line for rectangle offset symbols
Parameters:
Return type:

None

New in version 5.0.7.

Note:

Draws black filled circle (symbols.gfn #7) and a joining line.
static duplicate_chem((GXContext)ctx, (GXMVIEW)arg1, (GXVV)arg2, (int)arg3, (float)arg4, (int)arg5, (GXVV)arg6, (str)arg7, (str)arg8, (float)arg9, (float)arg10, (float)arg11, (float)arg12) → None:
Plot an ASSAY Duplicate result in a graph window.
Parameters:
  • ctx (geosoft.gx.GXContext) – The GX execution context
  • arg1 (geosoft.gx.GXMVIEW) – View
  • arg2 (geosoft.gx.GXVV) – Duplicate data
  • arg3 (int) – log-transform: 0 - linear, 1 - log
  • arg4 (float) – Detect Limit
  • arg5 (int) – number of old samples in the VV
  • arg6 (geosoft.gx.GXVV) – tolerances (1-5 values)
  • arg7 (str) – Title
  • arg8 (str) – Unit
  • arg9 (float) – X location (bottom left corner of graph)
  • arg10 (float) – Y location
  • arg11 (float) – graph width
  • arg12 (float) – graph height
Returns:

Nothing

Return type:

None

New in version 5.0.7.

static duplicate_chem_view((GXContext)ctx, (GXMAP)arg1, (str)arg2, (str)arg3, (GXIPJ)arg4, (GXVV)arg5, (int)arg6, (float)arg7, (int)arg8, (GXVV)arg9, (str)arg10, (str)arg11, (GXVV)arg12, (GXVV)arg13, (GXVV)arg14, (GXDB)arg15, (float_ref)arg16, (float_ref)arg17) → None:
Plot an ASSAY Duplicate result in a new view.
Parameters:
Returns:

Nothing

Return type:

None

New in version 8.3.0.

static fixed_symbol_scatter_plot((GXContext)ctx, (GXMVIEW)arg1, (str)arg2, (float)arg3, (float)arg4, (float)arg5, (float)arg6, (GXVV)arg7, (GXVV)arg8, (GXVV)arg9, (int)arg10, (str)arg11, (int)arg12, (float)arg13, (float)arg14, (int)arg15, (int)arg16, (GXDB)arg17, (GXVV)arg18, (GXVV)arg19, (int)arg20, (str)arg21, (str)arg22, (str)arg23, (str)arg24, (float)arg25, (float)arg26, (float)arg27, (float)arg28, (int)arg29, (int)arg30, (str)arg31) → None:
Plot a scatter plot using a single fixed symbol.
Optional data masking with masking colour.
Optioinal database linking.
Parameters:
  • ctx (geosoft.gx.GXContext) – The GX execution context
  • arg1 (geosoft.gx.GXMVIEW) – View
  • arg2 (str) – Title
  • arg3 (float) – X location (bottom left corner of box)
  • arg4 (float) – Y location
  • arg5 (float) – box width
  • arg6 (float) – box height
  • arg7 (geosoft.gx.GXVV) – Horizontal channel data
  • arg8 (geosoft.gx.GXVV) – Vertical channel data
  • arg9 (geosoft.gx.GXVV) – Mask channel data (can be NULL)
  • arg10 (int) – Mask colour; overrides symbol colour where mask data is not dummy. Set to iColor_MVIEW(“”) to not plot.
  • arg11 (str) – decorated font name, “” for default symbol font (normally symbols.gfn)
  • arg12 (int) – Symbol number (>=0)
  • arg13 (float) – Symbol size ( >=0)
  • arg14 (float) – Symbol angle (-360 to 360)
  • arg15 (int) – Symbol colour
  • arg16 (int) – Symbol fill colour
  • arg17 (geosoft.gx.GXDB) – Database (source of data)
  • arg18 (geosoft.gx.GXVV) – Line handles for data
  • arg19 (geosoft.gx.GXVV) – Fid values for data
  • arg20 (int) – Annotation style 0 - outside, 1 - inside
  • arg21 (str) – Horizontal channel name
  • arg22 (str) – Vertical channel name
  • arg23 (str) – Horizontal channel units
  • arg24 (str) – Vertical channel units
  • arg25 (float) – Min. Horizontal value, rDUMMY for default
  • arg26 (float) – Max. Horizontal value
  • arg27 (float) – Min. Vertical value
  • arg28 (float) – Max. Vertical value
  • arg29 (int) – horizontal axis scaling: 0 - linear, 1 - log
  • arg30 (int) – vertical axis scaling
  • arg31 (str) – plot overlay (“” for none)
Returns:

Nothing

Return type:

None

New in version 8.0.1.

Note:

Plot a scatter plot using a single fixed symbol.
static fixed_symbol_tri_plot((GXContext)ctx, (GXMVIEW)arg1, (str)arg2, (float)arg3, (float)arg4, (float)arg5, (GXVV)arg6, (GXVV)arg7, (GXVV)arg8, (GXVV)arg9, (int)arg10, (str)arg11, (int)arg12, (float)arg13, (float)arg14, (int)arg15, (int)arg16, (GXDB)arg17, (GXVV)arg18, (GXVV)arg19, (str)arg20, (str)arg21, (str)arg22, (int)arg23, (float)arg24, (float)arg25, (str)arg26) → None:
Plot a tri-plot using a single fixed symbol.
Optional data masking with masking colour.
Optioinal database linking.
Parameters:
  • ctx (geosoft.gx.GXContext) – The GX execution context
  • arg1 (geosoft.gx.GXMVIEW) – View
  • arg2 (str) – Title
  • arg3 (float) – X location (bottom left corner of box)
  • arg4 (float) – Y location
  • arg5 (float) – Triangle side length
  • arg6 (geosoft.gx.GXVV) – X channel data
  • arg7 (geosoft.gx.GXVV) – Y channel data
  • arg8 (geosoft.gx.GXVV) – Z channel data
  • arg9 (geosoft.gx.GXVV) – Mask channel data
  • arg10 (int) – Mask colour; overrides symbol colour where mask data is not dummy. Set to iColor_MVIEW(“”) to not plot.
  • arg11 (str) – decorated font name, “” for default symbol font (normally symbols.gfn)
  • arg12 (int) – Symbol number (>=0)
  • arg13 (float) – Symbol size ( >=0)
  • arg14 (float) – Symbol angle (-360 to 360)
  • arg15 (int) – Symbol colour
  • arg16 (int) – Symbol fill colour
  • arg17 (geosoft.gx.GXDB) – Database (source of data)
  • arg18 (geosoft.gx.GXVV) – Line handles for data
  • arg19 (geosoft.gx.GXVV) – Fid values for data
  • arg20 (str) – X channel name
  • arg21 (str) – Y channel name
  • arg22 (str) – Z channel name
  • arg23 (int) – Plot Grid lines? (0: Just outside edge tics, 1: Grid lines).
  • arg24 (float) – Tic Increment (in percent)
  • arg25 (float) – Grid increment (in percent)
  • arg26 (str) – plot overlay (“” for none)
Returns:

Nothing

Return type:

None

New in version 8.0.1.

Note:

Plot a tri plot using a single fixed symbol.
static get_expression_data_vv((GXContext)ctx, (GXDB)arg1, (int)arg2, (str)arg3, (str)arg4, (str)arg5, (GXVV)arg6) → None:
Get data from a line using a channel expression.
Parameters:
  • ctx (geosoft.gx.GXContext) – The GX execution context
  • arg1 (geosoft.gx.GXDB) – Database
  • arg2 (int) – Line to read
  • arg3 (str) – geochem stage (just “raw data stage” for now).
  • arg4 (str) – channel expression
  • arg5 (str) – INI file name with required units (e.g. PARAMETER.CU=”ppm”) (optional)
  • arg6 (geosoft.gx.GXVV) – Returned data
Returns:

Nothing

Return type:

None

New in version 6.4.0.

Note:

Input a channel expression. Units for individual channels
are stored in the input INI. Returns a VV for the given line
with the calculated expression values.
static get_lithogeochem_data((GXContext)ctx, (GXDB)arg1, (GXLST)arg2, (int)arg3, (GXVV)arg4, (int)arg5, (GXVV)arg6, (int)arg7, (GXVV)arg8, (GXVV)arg9, (GXVV)arg10, (GXVV)arg11, (GXVV)arg12, (GXVV)arg13, (GXVV)arg14) → None:
Get all rows of non-dummy data in a database.
Parameters:
  • ctx (geosoft.gx.GXContext) – The GX execution context
  • arg1 (geosoft.gx.GXDB) – [i] database handle
  • arg2 (geosoft.gx.GXLST) – [i] channels of data to get
  • arg3 (int) – [i] mask channel (can be NULLSYMB)
  • arg4 (geosoft.gx.GXVV) – [i] transforms to apply
  • arg5 (int) – [i] remove dummy rows?
  • arg6 (geosoft.gx.GXVV) – [i] dummy row if this channel value is dummy (0:No, 1:Yes)? Effective only if “remove dummy rows” value is TRUE
  • arg7 (int) – [i] warn if rows removed because of dummy data items?
  • arg8 (geosoft.gx.GXVV) – [o] (INT) returned data - one VV handle per channel
  • arg9 (geosoft.gx.GXVV) – [o] line symbols selected
  • arg10 (geosoft.gx.GXVV) – [o] number of original data items in each line
  • arg11 (geosoft.gx.GXVV) – [o] number of non-dummy rows
  • arg12 (geosoft.gx.GXVV) – [o] indices into original data
  • arg13 (geosoft.gx.GXVV) – [o] Fid Starts (REAL)
  • arg14 (geosoft.gx.GXVV) – [o] Fid Increments (REAL)
Returns:

Nothing

Return type:

None

New in version 6.2.0.

Note:

This function is a quick way to get all rows
of data, guaranteeing no dummy items.
Book-keeping VVs returned let you easily
write back results to new channels in the
correct locations.
Set the "Dummy Row" VV to 1 if you wish to
remove any row where a value for the corresponding
channel is a dummy.

Transforms to apply:

-1 - Channel default (will be either raw or log)
0 - Raw Transform
1 - Log transform: base e with log min = CHIMERA_LOG_MIN
2 - Lambda transform
static get_transform((GXContext)ctx, (GXDB)arg1, (str)arg2, (int)arg3, (int_ref)arg4, (float_ref)arg5) → None:
Get channel transform options and lambda values.
Parameters:
Returns:

Nothing

Return type:

None

New in version 6.2.0.

Note:

If the lambda transform is requested, the channel
must have the lambda value defined.

Input Transform options

-1 - Channel default (will be either raw or log)
0 - Raw Transform
1 - Log transform: base e with log min = CHIMERA_LOG_MIN
2 - Lambda transform
static is_acquire_chan((GXContext)ctx, (str)arg1, (str_ref)arg2, (str_ref)arg3, (float_ref)arg4, (bool_ref)arg5) → bool:
Is this channel in acQuire format (e.g. "Ag_ppm_4AWR")
Parameters:
Returns:

bool

Return type:

bool

New in version 7.2.0.

Note:

Expressions can take acQuire-type named channels
if the exact element/oxide is not found. This function
extracts the channel name, and units from an acQuire-formatted
channel name.
static is_element((GXContext)ctx, (str)arg1, (int)arg2) → bool:
Tests a string to see if it is an element symbol
Parameters:
Returns:

bool

Return type:

bool

New in version 5.0.7.

Note:

Suggested use - testing to see if a channel name is an
element so that the "ASSAY" class can be set.
static launch_histogram((GXContext)ctx, (str)arg1, (str)arg2) → None:
Launch histogram tool on a database.
Parameters:
  • ctx (geosoft.gx.GXContext) – The GX execution context
  • arg1 (str) – Database name
  • arg2 (str) – First chan name
Returns:

Nothing

Return type:

None

New in version 5.0.6.

Note:

The database should be a currently open database.
This function supercedes geosoft.gx.GXEDB.launch_histogram(), (which now
just gets the name of the EDB and calls this function).
static launch_probability((GXContext)ctx, (str)arg1, (str)arg2) → None:
Launch probability tool on a database.
Parameters:
  • ctx (geosoft.gx.GXContext) – The GX execution context
  • arg1 (str) – Database name
  • arg2 (str) – First chan name
Returns:

Nothing

Return type:

None

New in version 5.1.8.

Note:

The database should be a currently open database.
static launch_scatter((GXContext)ctx, (str)arg1) → None:
Launch scatter tool on a database.
Parameters:
Returns:

Nothing

Return type:

None

New in version 5.0.6.

Note:

The scatter tool uses the following INI parameters

SCATTER.STM       name of the scatter template,"none" for none
SCATTER.STM_NAME  name of last template section, "" for none.
SCATTER.X         name of channel to display in X
SCATTER.Y         name of channel to display in Y
SCATTER.MASK      name of channel to use for mask

The database should be a currently open database.
This function supercedes geosoft.gx.GXEDB.launch_scatter(), (which now
just gets the name of the EDB and calls this function).
static launch_triplot((GXContext)ctx, (str)arg1) → None:
Launch Triplot tool on a database.
Parameters:
Returns:

Nothing

Return type:

None

New in version 5.0.7.

Note:

The Triplot tool uses the following INI parameters

         TRIPLOT.TTM       name of the triplot template,"none" for none
         TRIPLOT.TTM_NAME  name of last template section, "" for none.
         TRIPLOT.X         name of channel to display in X
         TRIPLOT.Y         name of channel to display in Y
         TRIPLOT.Z         name of channel to display in Z
         TRIPLOT.MASK      name of channel to use for mask

The database should be a currently open database.
static mask_chan_lst((GXContext)ctx, (GXDB)arg1, (GXLST)arg2) → None:
Load a LST with mask channels.
Parameters:
Returns:

Nothing

Return type:

None

New in version 5.0.7.

Note:

Loads a LST with all channels with CLASS "MASK", as well
as all channels containing the string "MASK", as long
as the CLASS for these channels is not set to something
other than "" or "MASK".

This function has been duplicated by geosoft.gx.GXDB.mask_chan_lst(), which
is safe to use in applications which do not have CHIMERA loaded.
static ordered_channel_lst((GXContext)ctx, (GXDB)arg1, (GXLST)arg2) → None:
Fill a list with the channels in the preferred order.
Parameters:
Returns:

Nothing

Return type:

None

New in version 5.1.8.

Note:

Loads a LST with all channels in the preferred order:

First:  Sample, E, N, assay channels,
Middle: Data from survey (other channels),
Last:   Duplicate, Standard, Chemmask (and other masks), weight, lab, batch

If the input LST object has values, it is used as the channel LST,
otherwise, get all the database channels. (This allows you to pass in
the currently displayed channels and only reload those).
static pie_plot((GXContext)ctx, (GXMVIEW)arg1, (str)arg2, (str)arg3, (GXVV)arg4, (GXVV)arg5, (GXVV)arg6, (GXVV)arg7, (int)arg8, (int)arg9, (float)arg10, (float)arg11) → None:
Plot a Pie plot of up to 8 channels.
Parameters:
  • ctx (geosoft.gx.GXContext) – The GX execution context
  • arg1 (geosoft.gx.GXMVIEW) – View object to plot to
  • arg2 (str) – Data group name
  • arg3 (str) – Offset group name
  • arg4 (geosoft.gx.GXVV) – X locations
  • arg5 (geosoft.gx.GXVV) – Y locations
  • arg6 (geosoft.gx.GXVV) – Data handles, stored as INT values
  • arg7 (geosoft.gx.GXVV) – Colours
  • arg8 (int) – Colour for edges
  • arg9 (int) – Offset symbols (0: No, 1: Yes)
  • arg10 (float) – Offset symbol size
  • arg11 (float) – Pie plot radius in data units.
Returns:

Nothing

Return type:

None

New in version 5.0.7.

Note:

The number of channels is taken from the Data handles VV.
The values in each data VV are summed and the pie arc is
is given by the percent contribution of each consituent.
See the note on offset symbols in geosoft.gx.GXCHIMERA.rose_plot()
static pie_plot2((GXContext)ctx, (GXMVIEW)arg1, (str)arg2, (str)arg3, (GXVV)arg4, (GXVV)arg5, (GXVV)arg6, (GXVV)arg7, (int)arg8, (int)arg9, (float)arg10, (float)arg11, (float)arg12) → None:
Same as geosoft.gx.GXCHIMERA.pie_plot(), with a starting angle.
Parameters:
  • ctx (geosoft.gx.GXContext) – The GX execution context
  • arg1 (geosoft.gx.GXMVIEW) – View object to plot to
  • arg2 (str) – Data group name
  • arg3 (str) – Offset group name
  • arg4 (geosoft.gx.GXVV) – X locations
  • arg5 (geosoft.gx.GXVV) – Y locations
  • arg6 (geosoft.gx.GXVV) – Data handles, stored as INT values
  • arg7 (geosoft.gx.GXVV) – Colours
  • arg8 (int) – Colour for edges
  • arg9 (int) – Offset symbols (0: No, 1: Yes)
  • arg10 (float) – Offset symbol size
  • arg11 (float) – Pie plot radius in data units.
  • arg12 (float) – Starting angle in degrees CCW from horizontal (rDUMMY gives 0.0)
Returns:

Nothing

Return type:

None

New in version 5.1.5.

Note:

The starting angle is the location of the edge of the first pie
slice, counted in degrees counter-clockwise from horizontal
(3 o'clock). Zero degrees gives the same plot as geosoft.gx.GXCHIMERA.pie_plot().
static plot_string_classified_symbols_legend_from_class_file((GXContext)ctx, (GXMVIEW)arg1, (str)arg2, (float)arg3, (float)arg4, (float)arg5, (str)arg6, (GXVV)arg7) → None:
Plot legend for the string classified symbols
Parameters:
  • ctx (geosoft.gx.GXContext) – The GX execution context
  • arg1 (geosoft.gx.GXMVIEW) – Map view object
  • arg2 (str) – title
  • arg3 (float) – left side X location
  • arg4 (float) – bottom Y bound
  • arg5 (float) – top Y bound
  • arg6 (str) – Class file name (TPAT)
  • arg7 (geosoft.gx.GXVV) – Class indices (INT VV)
Returns:

Nothing

Return type:

None

New in version 8.0.1.

Note:

Plot in a legend the classes in the class file found in the input class indices.
static rose_plot((GXContext)ctx, (GXMVIEW)arg1, (str)arg2, (str)arg3, (GXVV)arg4, (GXVV)arg5, (GXVV)arg6, (GXVV)arg7, (int)arg8, (int)arg9, (float)arg10) → None:
Plot a Rose plot of up to 8 channels.
Parameters:
Returns:

Nothing

Return type:

None

New in version 5.0.7.

Note:

The number of channels is taken from the Data handles VV.
The values in each data VV give the radius, in view units,
of the sector arc to plots. Values <=0 or dummies are not
plotted.

Offset symbols: When selected, the symbols plot without
overlap, away from the original locations. The original
location is marked with a small symbol and a line joins the
original position and the relocated symbol.
Care should be taken when choosing the symbol size, because
if the point density is too high, all the points will get
pushed to the outside edge and your plot will look like a
hedgehog (it also takes a lot longer!).
static rose_plot2((GXContext)ctx, (GXMVIEW)arg1, (str)arg2, (str)arg3, (GXVV)arg4, (GXVV)arg5, (GXVV)arg6, (GXVV)arg7, (int)arg8, (int)arg9, (float)arg10, (float)arg11) → None:
Same as geosoft.gx.GXCHIMERA.rose_plot(), with a starting angle.
Parameters:
  • ctx (geosoft.gx.GXContext) – The GX execution context
  • arg1 (geosoft.gx.GXMVIEW) – View object to plot to
  • arg2 (str) – Data group name
  • arg3 (str) – Offset group name
  • arg4 (geosoft.gx.GXVV) – X locations
  • arg5 (geosoft.gx.GXVV) – Y locations
  • arg6 (geosoft.gx.GXVV) – Data handles, stored as INT values
  • arg7 (geosoft.gx.GXVV) – Colours
  • arg8 (int) – Colour for edges
  • arg9 (int) – Offset symbols (0: No, 1: Yes)
  • arg10 (float) – Offset symbol size
  • arg11 (float) – Starting angle in degrees CCW from horizontal (rDUMMY gives 0.0)
Returns:

Nothing

Return type:

None

New in version 5.1.5.

Note:

The starting angle is the location of the edge of the first pie
slice, counted in degrees counter-clockwise from horizontal
(3 o'clock). Zero degrees gives the same plot as geosoft.gx.GXCHIMERA.rose_plot().
static scatter2((GXContext)ctx, (GXMVIEW)arg1, (str)arg2, (float)arg3, (float)arg4, (float)arg5, (float)arg6, (GXVV)arg7, (GXVV)arg8, (str)arg9, (GXVV)arg10, (GXVV)arg11, (GXVV)arg12, (int)arg13, (str)arg14, (str)arg15, (str)arg16, (str)arg17, (float)arg18, (float)arg19, (float)arg20, (float)arg21, (float)arg22, (float)arg23, (float)arg24, (float)arg25, (int)arg26, (int)arg27, (int)arg28, (int)arg29, (int)arg30, (int)arg31) → None:
Plot the scatter plot on a map using symbol number, size and color VVs.
Parameters:
  • ctx (geosoft.gx.GXContext) – The GX execution context
  • arg1 (geosoft.gx.GXMVIEW) – View
  • arg2 (str) – Title
  • arg3 (float) – X location (bottom left corner of box)
  • arg4 (float) – Y location
  • arg5 (float) – box width
  • arg6 (float) – box height
  • arg7 (geosoft.gx.GXVV) – Horizontal channel
  • arg8 (geosoft.gx.GXVV) – Vertical channel
  • arg9 (str) – decorated font name, “” for default symbol font (normally symbols.gfn)
  • arg10 (geosoft.gx.GXVV) – Symbol numbers
  • arg11 (geosoft.gx.GXVV) – Symbol sizes
  • arg12 (geosoft.gx.GXVV) – Colours if symbol number or colour == 0, do not plot
  • arg13 (int) – Annotation style 0 - outside, 1 - inside
  • arg14 (str) – Horizontal channel name
  • arg15 (str) – Vertical channel name
  • arg16 (str) – Horizontal channel units
  • arg17 (str) – Vertical channel units
  • arg18 (float) – Min. Horizontal value, rDUMMY for default
  • arg19 (float) – Max. Horizontal value
  • arg20 (float) – Min. Vertical value
  • arg21 (float) – Max. Vertical value
  • arg22 (float) – Min. Horizontal range value
  • arg23 (float) – Max. Horizontal range value
  • arg24 (float) – Min. Vertical range value
  • arg25 (float) – Max. Vertical range value
  • arg26 (int) – Use Min Horz. Range selection?
  • arg27 (int) – Use Max Horz. Range selection?
  • arg28 (int) – Use Min Vert. Range selection?
  • arg29 (int) – Use Max Vert. Range selection?
  • arg30 (int) – horizontal axis scaling: 0 - linear, 1 - log
  • arg31 (int) – vertical axis scaling
Returns:

Nothing

Return type:

None

New in version 5.0.7.

Note:

The view scaling is not altered with any projection. The base view
is best as the input.
static set_lithogeochem_data((GXContext)ctx, (GXDB)arg1, (GXLST)arg2, (GXVV)arg3, (GXVV)arg4, (GXVV)arg5, (GXVV)arg6, (GXVV)arg7, (GXVV)arg8, (GXVV)arg9, (GXVV)arg10) → None:
Set data back into a database.
Parameters:
Returns:

Nothing

Return type:

None

New in version 6.2.0.

Note:

This function would normally be called after
AAGetLithogeochemData_CHIMERA to write processed values
back into a database, in the correct lines,
and in the correct fiducial locations wrt the
other data. The book-keeping VVs would all be
set up in AAGetLithogeochemData_CHIMERA.

Values NOT in the data (missing indices) will
be initialized to dummy if the channel is new,
or if the value in the last VV below is set to 1.

New channel types will be set using the data VV type.
Any meta data (CLASS, display formats) should be set separately.
static stacked_bar_plot((GXContext)ctx, (GXMVIEW)arg1, (str)arg2, (str)arg3, (GXVV)arg4, (GXVV)arg5, (GXVV)arg6, (GXVV)arg7, (int)arg8, (int)arg9, (float)arg10, (float)arg11) → None:
Plot a Bar plot of up to 8 channels, bars stacked on each other
Parameters:
  • ctx (geosoft.gx.GXContext) – The GX execution context
  • arg1 (geosoft.gx.GXMVIEW) – View object to plot to
  • arg2 (str) – Data group name
  • arg3 (str) – Offset group name
  • arg4 (geosoft.gx.GXVV) – X locations
  • arg5 (geosoft.gx.GXVV) – Y locations
  • arg6 (geosoft.gx.GXVV) – Data handles, stored as INT values
  • arg7 (geosoft.gx.GXVV) – Colours
  • arg8 (int) – Colour for edges
  • arg9 (int) – Offset symbols (0: No, 1: Yes)
  • arg10 (float) – Offset symbol size
  • arg11 (float) – Single bar width in data units.
Returns:

Nothing

Return type:

None

New in version 5.1.8.

Note:

The number of channels is taken from the Data handles VV.
Plots a bar plot with the center of the "X" axis at the symbol location.
See the note on offset symbols in geosoft.gx.GXCHIMERA.rose_plot()
static standard((GXContext)ctx, (GXMVIEW)arg1, (GXVV)arg2, (int)arg3, (float)arg4, (float)arg5, (float)arg6, (str)arg7, (str)arg8, (float)arg9, (float)arg10, (float)arg11, (float)arg12) → None:
Plot ASSAY Standard result in a graph window.
Parameters:
  • ctx (geosoft.gx.GXContext) – The GX execution context
  • arg1 (geosoft.gx.GXMVIEW) – View
  • arg2 (geosoft.gx.GXVV) – standard data
  • arg3 (int) – number of old samples in the VV
  • arg4 (float) – tolerance as a function of std dev
  • arg5 (float) – minimum acceptable value
  • arg6 (float) – maximum acceptable value
  • arg7 (str) – Title
  • arg8 (str) – Unit
  • arg9 (float) – X location (bottom left corner of graph)
  • arg10 (float) – Y location
  • arg11 (float) – graph width
  • arg12 (float) – graph height
Returns:

Nothing

Return type:

None

New in version 5.0.7.

Note:

If the tolerance is rDUMMY, then the minimum and maximum
values are used, and must be specified.
static standard_view((GXContext)ctx, (GXMAP)arg1, (str)arg2, (str)arg3, (GXIPJ)arg4, (GXVV)arg5, (int)arg6, (float)arg7, (float)arg8, (float)arg9, (str)arg10, (str)arg11, (float)arg12, (GXVV)arg13, (GXVV)arg14, (GXVV)arg15, (GXDB)arg16, (float_ref)arg17, (float_ref)arg18) → None:
Plot ASSAY Standard result in a graph window.
Parameters:
Returns:

Nothing

Return type:

None

New in version 8.3.0.

Note:

Same as geosoft.gx.GXCHIMERA.standard() but plot in a new view.
static string_classified_scatter_plot((GXContext)ctx, (GXMVIEW)arg1, (str)arg2, (float)arg3, (float)arg4, (float)arg5, (float)arg6, (GXVV)arg7, (GXVV)arg8, (GXVV)arg9, (int)arg10, (GXVV)arg11, (str)arg12, (float)arg13, (GXDB)arg14, (GXVV)arg15, (GXVV)arg16, (int)arg17, (str)arg18, (str)arg19, (str)arg20, (str)arg21, (float)arg22, (float)arg23, (float)arg24, (float)arg25, (int)arg26, (int)arg27, (str)arg28) → None:
Plot a scatter plot using symbols based on a symbol class file.
Optional data masking with masking colour.
Optioinal database linking.
Parameters:
  • ctx (geosoft.gx.GXContext) – The GX execution context
  • arg1 (geosoft.gx.GXMVIEW) – View
  • arg2 (str) – Title
  • arg3 (float) – X location (bottom left corner of box)
  • arg4 (float) – Y location
  • arg5 (float) – box width
  • arg6 (float) – box height
  • arg7 (geosoft.gx.GXVV) – Horizontal channel data
  • arg8 (geosoft.gx.GXVV) – Vertical channel data
  • arg9 (geosoft.gx.GXVV) – Mask channel data
  • arg10 (int) – Mask colour; overrides symbol colour. Set to iColor_MVIEW(“”) to not plot.
  • arg11 (geosoft.gx.GXVV) – Class channel data
  • arg12 (str) – Class file (TPAT) name.
  • arg13 (float) – Symbol size override. Set to 0.0 to use class file symbol sizes.
  • arg14 (geosoft.gx.GXDB) – Database (source of data)
  • arg15 (geosoft.gx.GXVV) – Line handles for data
  • arg16 (geosoft.gx.GXVV) – Fid values for data
  • arg17 (int) – Annotation style 0 - outside, 1 - inside
  • arg18 (str) – Horizontal channel name
  • arg19 (str) – Vertical channel name
  • arg20 (str) – Horizontal channel units
  • arg21 (str) – Vertical channel units
  • arg22 (float) – Min. Horizontal value, rDUMMY for default
  • arg23 (float) – Max. Horizontal value
  • arg24 (float) – Min. Vertical value
  • arg25 (float) – Max. Vertical value
  • arg26 (int) – horizontal axis scaling: 0 - linear, 1 - log
  • arg27 (int) – vertical axis scaling
  • arg28 (str) – plot overlay (“” for none)
Returns:

Nothing

Return type:

None

New in version 8.0.1.

Note:

Plot a scatter plot using symbols based on a symbol class file.
static string_classified_tri_plot((GXContext)ctx, (GXMVIEW)arg1, (str)arg2, (float)arg3, (float)arg4, (float)arg5, (GXVV)arg6, (GXVV)arg7, (GXVV)arg8, (GXVV)arg9, (int)arg10, (GXVV)arg11, (str)arg12, (float)arg13, (GXDB)arg14, (GXVV)arg15, (GXVV)arg16, (str)arg17, (str)arg18, (str)arg19, (int)arg20, (float)arg21, (float)arg22, (str)arg23) → None:
Plot a tri-plot using symbols based on a symbol class file.
Optional data masking with masking colour.
Optioinal database linking.
Parameters:
  • ctx (geosoft.gx.GXContext) – The GX execution context
  • arg1 (geosoft.gx.GXMVIEW) – View
  • arg2 (str) – Title
  • arg3 (float) – X location (bottom left corner of box)
  • arg4 (float) – Y location
  • arg5 (float) – Triangle side length
  • arg6 (geosoft.gx.GXVV) – X channel data
  • arg7 (geosoft.gx.GXVV) – Y channel data
  • arg8 (geosoft.gx.GXVV) – Z channel data
  • arg9 (geosoft.gx.GXVV) – Mask channel data
  • arg10 (int) – Mask colour; overrides symbol colour. Set to iColor_MVIEW(“”) to not plot.
  • arg11 (geosoft.gx.GXVV) – Class channel data
  • arg12 (str) – Class file (TPAT) name.
  • arg13 (float) – Symbol size override. Set to 0.0 to use class file symbol sizes.
  • arg14 (geosoft.gx.GXDB) – Database (source of data)
  • arg15 (geosoft.gx.GXVV) – Line handles for data
  • arg16 (geosoft.gx.GXVV) – Fid values for data
  • arg17 (str) – X channel name
  • arg18 (str) – Y channel name
  • arg19 (str) – Z channel name
  • arg20 (int) – Plot Grid lines? (0: Just outside edge tics, 1: Grid lines).
  • arg21 (float) – Tic Increment (in percent)
  • arg22 (float) – Grid increment (in percent)
  • arg23 (str) – plot overlay (“” for none)
Returns:

Nothing

Return type:

None

New in version 8.0.1.

Note:

Plot a tri-plot using symbols based on a symbol class file.
static tri_plot2((GXContext)ctx, (GXMVIEW)arg1, (str)arg2, (float)arg3, (float)arg4, (float)arg5, (float)arg6, (GXVV)arg7, (GXVV)arg8, (GXVV)arg9, (GXVV)arg10, (str)arg11, (GXVV)arg12, (GXVV)arg13, (GXVV)arg14, (str)arg15, (str)arg16, (str)arg17, (float)arg18, (float)arg19, (float)arg20, (float)arg21, (float)arg22, (float)arg23, (int)arg24, (int)arg25, (int)arg26, (int)arg27, (int)arg28, (int)arg29, (int)arg30, (float)arg31, (float)arg32) → None:
Plot the TriPlot on a map using symbol number, size and color VVs.
Parameters:
  • ctx (geosoft.gx.GXContext) – The GX execution context
  • arg1 (geosoft.gx.GXMVIEW) – View
  • arg2 (str) – Title
  • arg3 (float) – X location (bottom left corner of box)
  • arg4 (float) – Y location
  • arg5 (float) – box width
  • arg6 (float) – box height
  • arg7 (geosoft.gx.GXVV) – X channel
  • arg8 (geosoft.gx.GXVV) – Y channel
  • arg9 (geosoft.gx.GXVV) – Z channel
  • arg10 (geosoft.gx.GXVV) – Mask channel
  • arg11 (str) – decorated font name, “” for default symbol font (normally symbols.gfn)
  • arg12 (geosoft.gx.GXVV) – Symbol numbers
  • arg13 (geosoft.gx.GXVV) – Symbol sizes
  • arg14 (geosoft.gx.GXVV) – Colours if symbol number or colour == 0, do not plot
  • arg15 (str) – X channel name
  • arg16 (str) – Y channel name
  • arg17 (str) – Z channel name
  • arg18 (float) – Min. X range value
  • arg19 (float) – Max. X range value
  • arg20 (float) – Min. Y range value
  • arg21 (float) – Max. Y range value
  • arg22 (float) – Min. Z range value
  • arg23 (float) – Max. Z range value
  • arg24 (int) – Use Min X Range selection?
  • arg25 (int) – Use Max X Range selection?
  • arg26 (int) – Use Min Y Range selection?
  • arg27 (int) – Use Max Y Range selection?
  • arg28 (int) – Use Min Z Range selection?
  • arg29 (int) – Use Max Z Range selection?
  • arg30 (int) – Plot Grid lines? (0: Just outside edge tics, 1: Grid lines).
  • arg31 (float) – Tic Increment (in percent)
  • arg32 (float) – Grid increment (in percent)
Returns:

Nothing

Return type:

None

New in version 5.1.6.

Note:

The mask channel VV is used for plotting precedence; those points with
mask = dummy are plotted first, then overwritten with the non-masked
values, so you don't get "good" points being covered up by masked values.
The view scaling is not altered with any projection. The base view
is best as the input.
static zone_coloured_scatter_plot((GXContext)ctx, (GXMVIEW)arg1, (str)arg2, (float)arg3, (float)arg4, (float)arg5, (float)arg6, (GXVV)arg7, (GXVV)arg8, (GXVV)arg9, (int)arg10, (GXVV)arg11, (str)arg12, (str)arg13, (int)arg14, (float)arg15, (float)arg16, (int)arg17, (int)arg18, (int)arg19, (GXDB)arg20, (GXVV)arg21, (GXVV)arg22, (int)arg23, (str)arg24, (str)arg25, (str)arg26, (str)arg27, (float)arg28, (float)arg29, (float)arg30, (float)arg31, (int)arg32, (int)arg33, (str)arg34) → None:
Plot a scatter plot using colours based on a zone file.
Optional data masking with masking colour.
Optioinal database linking.
Parameters:
  • ctx (geosoft.gx.GXContext) – The GX execution context
  • arg1 (geosoft.gx.GXMVIEW) – View
  • arg2 (str) – Title
  • arg3 (float) – X location (bottom left corner of box)
  • arg4 (float) – Y location
  • arg5 (float) – box width
  • arg6 (float) – box height
  • arg7 (geosoft.gx.GXVV) – Horizontal channel data
  • arg8 (geosoft.gx.GXVV) – Vertical channel data
  • arg9 (geosoft.gx.GXVV) – Mask channel data (can be NULL)
  • arg10 (int) – Mask colour; overrides symbol colour where mask data is not dummy. Set to iColor_MVIEW(“”) to not plot.
  • arg11 (geosoft.gx.GXVV) – Zone channel data
  • arg12 (str) – Zone file name
  • arg13 (str) – decorated font name, “” for default symbol font (normally symbols.gfn)
  • arg14 (int) – Symbol number (>=0)
  • arg15 (float) – Symbol size ( >=0)
  • arg16 (float) – Symbol angle (-360 to 360)
  • arg17 (int) – Symbol colour
  • arg18 (int) – Symbol fill colour
  • arg19 (int) – Fix symbol edge colour?
  • arg20 (geosoft.gx.GXDB) – Database (source of data)
  • arg21 (geosoft.gx.GXVV) – Line handles for data
  • arg22 (geosoft.gx.GXVV) – Fid values for data
  • arg23 (int) – Annotation style 0 - outside, 1 - inside
  • arg24 (str) – Horizontal channel name
  • arg25 (str) – Vertical channel name
  • arg26 (str) – Horizontal channel units
  • arg27 (str) – Vertical channel units
  • arg28 (float) – Min. Horizontal value, rDUMMY for default
  • arg29 (float) – Max. Horizontal value
  • arg30 (float) – Min. Vertical value
  • arg31 (float) – Max. Vertical value
  • arg32 (int) – horizontal axis scaling: 0 - linear, 1 - log
  • arg33 (int) – vertical axis scaling
  • arg34 (str) – plot overlay (“” for none)
Returns:

Nothing

Return type:

None

New in version 8.0.1.

Note:

Plot a scatter plot using colours based on a zone file.
static zone_coloured_tri_plot((GXContext)ctx, (GXMVIEW)arg1, (str)arg2, (float)arg3, (float)arg4, (float)arg5, (GXVV)arg6, (GXVV)arg7, (GXVV)arg8, (GXVV)arg9, (int)arg10, (GXVV)arg11, (str)arg12, (str)arg13, (int)arg14, (float)arg15, (float)arg16, (int)arg17, (int)arg18, (int)arg19, (GXDB)arg20, (GXVV)arg21, (GXVV)arg22, (str)arg23, (str)arg24, (str)arg25, (int)arg26, (float)arg27, (float)arg28, (str)arg29) → None:
Plot a tri-plot using colours based on a zone file.
Optional data masking with masking colour.
Optioinal database linking.
Parameters:
  • ctx (geosoft.gx.GXContext) – The GX execution context
  • arg1 (geosoft.gx.GXMVIEW) – View
  • arg2 (str) – Title
  • arg3 (float) – X location (bottom left corner of box)
  • arg4 (float) – Y location
  • arg5 (float) – Triangle side length
  • arg6 (geosoft.gx.GXVV) – X channel data
  • arg7 (geosoft.gx.GXVV) – Y channel data
  • arg8 (geosoft.gx.GXVV) – Z channel data
  • arg9 (geosoft.gx.GXVV) – Mask channel data
  • arg10 (int) – Mask colour; overrides symbol colour where mask data is not dummy. Set to iColor_MVIEW(“”) to not plot.
  • arg11 (geosoft.gx.GXVV) – Zone channel data
  • arg12 (str) – Zone file name
  • arg13 (str) – decorated font name, “” for default symbol font (normally symbols.gfn)
  • arg14 (int) – Symbol number (>=0)
  • arg15 (float) – Symbol size ( >=0)
  • arg16 (float) – Symbol angle (-360 to 360)
  • arg17 (int) – Symbol colour
  • arg18 (int) – Symbol fill colour
  • arg19 (int) – Fix symbol edge colour?
  • arg20 (geosoft.gx.GXDB) – Database (source of data)
  • arg21 (geosoft.gx.GXVV) – Line handles for data
  • arg22 (geosoft.gx.GXVV) – Fid values for data
  • arg23 (str) – X channel name
  • arg24 (str) – Y channel name
  • arg25 (str) – Z channel name
  • arg26 (int) – Plot Grid lines? (0: Just outside edge tics, 1: Grid lines).
  • arg27 (float) – Tic Increment (in percent)
  • arg28 (float) – Grid increment (in percent)
  • arg29 (str) – plot overlay (“” for none)
Returns:

Nothing

Return type:

None

New in version 8.0.1.

Note:

Plot a tri plot using colours based on a zone file.

CHIMERA_MAX_CHAN constant

gx.CHIMERA_MAX_CHAN = 128
Maximum channels in Chimera database

CHIMERA_PLOT constants

Chimera plot type
gx.CHIMERA_PLOT_ROSE = 0
gx.CHIMERA_PLOT_PIE = 1
gx.CHIMERA_PLOT_BAR = 2