multidworlds / eigenspectra

Eigenspectra
MIT License
0 stars 5 forks source link

Fixed bug that plotted the wrong spectra for given points on the input map #59

Closed jlustigy closed 5 years ago

jlustigy commented 5 years ago

The bug came from how x and y designate rows and columns in matplotlib.pyplot.imshow vs. numpy.array. Here is an example that was previously failing, and now you can see that the blue point on the map corresponds to the blue spectrum, which has the highest flux. points_on_map_fix I also generalized what points/spectra can be shown in this plot. Users can now pass the keyword argument points_on_map to the function gen_lightcurves.create_lightcurves_with_starry. points_on_map is a list of (x,y) tuples for each point that will be plotted. The plot above was generated with the default values: points_on_map = [(-0.4, 0.4), (-0.4, -0.4), (0.4, 0.4), (0.4, -0.4), (0.0, 0.0)]. Note that (0,0) is the center of the planetary disk (substellar point) at secondary eclipse, with values given in units the planet radius.