EarthPoints

class gdt.core.plot.plot.EarthPoints(lat, lon, proj, color='black', alpha=1.0, sizes=10, **kwargs)[source]

Bases: PlotElement

Plot a point or set of points on the Earth.

Parameters:
  • lat (np.array) – The latitude values

  • lon (np.array) – The longitude values

  • proj (GeoAxesSubplot) – The Cartopy projection

  • color (str, optional) – The color of the line

  • alpha (float, optional) – The alpha opacity of the line

  • sizes (list, optional) – The sizes of the plot points. Default is 10.

  • **kwargs – Other plotting options

Attributes Summary

alpha

The alpha opacity value, between 0 and 1.

artists

The object references to the individual matplotlib elements

color

The color of the plot element

coordinates

The formatted coordinate list of the points

num_points

Number of plotted points

sizes

The size of each plotted point

visible

True if the element is shown on the plot, False otherwise

zorder

The plot element zorder

Methods Summary

hide()

Hide the plot element

remove()

Remove the plot element

show()

Show the plot element

toggle()

Toggle the visibility of the plot element

Attributes Documentation

alpha

The alpha opacity value, between 0 and 1.

Type:

(float)

artists

The object references to the individual matplotlib elements

Type:

(list)

color

The color of the plot element

Type:

(str)

coordinates

The formatted coordinate list of the points

Type:

(list of str)

num_points

Number of plotted points

Type:

(int)

sizes

The size of each plotted point

Type:

(list)

visible

True if the element is shown on the plot, False otherwise

Type:

(bool)

zorder

The plot element zorder

Type:

(int)

Methods Documentation

hide()

Hide the plot element

remove()

Remove the plot element

show()

Show the plot element

toggle()

Toggle the visibility of the plot element