change: remove basemap coast;add: light curve kwargs

This commit is contained in:
liuyihui 2022-07-20 13:12:47 +00:00
parent 95923512bc
commit 3aea28b6dc
2 changed files with 3 additions and 2 deletions

View File

@ -88,7 +88,7 @@ class EarthPlot(GbmPlot):
urcrnrlat=lat_range[1], llcrnrlon=lon_range[0],
urcrnrlon=lon_range[1], lat_ts=0, resolution='c',
ax=self._ax)
self._m.drawcoastlines()
# self._m.drawcoastlines()
self._m.drawparallels(np.arange(-90., 91., 30.), labels=[1, 0, 0, 0],
fontsize=12)
self._m.drawmeridians(np.arange(-180., 181., 30.), labels=[0, 0, 0, 1],

View File

@ -103,7 +103,7 @@ class Lightcurve(GbmPlot):
def selections(self):
return self._selections
def set_data(self, data):
def set_data(self, data, **kwargs):
"""Set the lightcurve plotting data. If a lightcurve already exists,
this triggers a replot of the lightcurve.
@ -112,6 +112,7 @@ class Lightcurve(GbmPlot):
The lightcurve data to plot
"""
lc_color, lc_alpha, lc_kwargs = self._lc_settings()
lc_kwargs.update(kwargs)
self._lc = Histo(data, self._ax, color=lc_color, alpha=lc_alpha,
**lc_kwargs)
eb_color, eb_alpha, eb_kwargs = self._eb_settings()