Getting Started
Installation
Requirements: Windows only. The viewer ships as a Windows DLL.
1. Julia
Install Julia — Julia 1.10 is strongly recommended — and make sure it is on your PATH. Follow the Windows install guide.
2. GMT.jl
If not already installed, from the Julia REPL package mode (press ]):
] add GMTMake sure you have at least GMT.jl version 1.41.2 (to update GMT.jl do on the Julia console ] up GMT)
3. InteractiveGMT
using GMT
iGMTinstall()4. The i'GMT
You have now a new icon on your desktop i'GMT. Use it as a normal Graphical Program.
Drag and drop files on the icon or an empty iGMT display. Or use the normal File -> Open ...
Quick Start from Julia
using InteractiveGMT, GMT
# View a grid
G = GMT.peaks()
fig = iview(G)
# View points
D = GMT.mat2ds(rand(100,3))
fig = iview(D; color="red")
# X,Y plot
t = 0:0.1:10
y = sin.(t)
fig = xyplot([t y])The window opens immediately. The REPL stays usable.
Basic Concepts
Handles
Every viewer function returns a handle:
QtFigure— 3-D grid/image windowQtPoints— Point cloud windowQtFV— Solid/mesh windowQtXYPlot— X,Y plot window
Use these handles to add data, check status, or save.
Non-Blocking Calls
All viewer calls return immediately. A Julia Timer pumps the Qt event loop at ~50 Hz.
In scripts without a REPL, end with wait_windows() to keep the process alive:
fig = iview(G)
wait_windows() # Blocks until all windows closeIn-Window Julia Console
Every 3-D viewer has a Julia Console dock at the bottom. Type Julia commands directly:
# In the console
add!(fig, [1 2 3; 4 5 6]; mode=:lines)The fig handle is pre-bound to that window.
Next Steps
- Grid Viewer — Display grids with hillshade, draping, overlays
- Point Clouds — View and select points
- Solids and Meshes — GMTfv and named solids
- X,Y Plot Tool — 2-D plotting with analysis
- API Reference — Full function listing