Skip to content

Commit

Permalink
plot reverse VGPs on same axis as normal ones rather than create new …
Browse files Browse the repository at this point in the history
…plot_map which obscures the already plotted normal points
  • Loading branch information
Swanson-Hysell committed Apr 13, 2022
1 parent 9a486bd commit e2a7b00
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pmagpy/ipmag.py
Original file line number Diff line number Diff line change
Expand Up @@ -14122,8 +14122,12 @@ def vgpmap_magic(dir_path=".", results_file="sites.txt", crd="",
if len(rlats) > 0:
Opts['sym'] = rsym
Opts['symsize'] = rsize
# add the lats and lons of the poles
pmagplotlib.plot_map(FIG['map'], rlats, rlons, Opts)
if len(lats) > 0:
color, symbol = Opts['sym'][0], Opts['sym'][1]
plt.gca().scatter(rlons, rlats, s=Opts['symsize'], c=color, marker=symbol,
transform=ccrs.PlateCarree(), edgecolors=Opts['edgecolor'])
else:
pmagplotlib.plot_map(FIG['map'], rlats, rlons, Opts)
if not save_plots and not set_env.IS_WIN:
pmagplotlib.draw_figs(FIG)
if ell == 1: # add ellipses if desired.
Expand Down

0 comments on commit e2a7b00

Please sign in to comment.