GenericMappingTools / pygmt

A Python interface for the Generic Mapping Tools.
https://www.pygmt.org
BSD 3-Clause "New" or "Revised" License
758 stars 220 forks source link

plot and plot3d: Allow passing a numpy array as intensity #891

Closed seisman closed 3 years ago

seisman commented 3 years ago

If using intensity=True, we will instead read intens from the first data column after the symbols parameters.

As I understand it, there are at least three or four different ways to specify an intensity/intensities.

The format of the input file of plot is (https://docs.generic-mapping-tools.org/latest/plot.html#s):

x y [ z ] [ size ] [ symbol-parameters ] [ symbol ]

So, for the 3rd case, the format of the input file should be:

x y [ z ] [ size ] [ symbol-parameters ] intensity [ symbol ]

_Originally posted by @seisman in https://github.com/GenericMappingTools/pygmt/pull/881#discussion_r575829230_

core-man commented 3 years ago

I'd like to help with this issue.

seisman commented 3 years ago

Implemented in #1065 and #1109.