Skip to content

Commit 3090ca9

Browse files
made hopject plotting a litte prettier
1 parent 2fb3c63 commit 3090ca9

File tree

1 file changed

+4
-34
lines changed

1 file changed

+4
-34
lines changed

src/lightcurves/LC.py

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,40 +1057,6 @@ def plot_hop(
10571057
**kwargs,
10581058
)
10591059

1060-
""" OLD:
1061-
if i == 0:
1062-
ax.fill_between(
1063-
x,
1064-
y,
1065-
y1,
1066-
step="mid",
1067-
color="lightsalmon",
1068-
alpha=0.2,
1069-
label="hop",
1070-
zorder=0,
1071-
)
1072-
if i == 1:
1073-
ax.fill_between(
1074-
x,
1075-
y,
1076-
y1,
1077-
step="mid",
1078-
color="orchid",
1079-
alpha=0.2,
1080-
label="hop",
1081-
zorder=0,
1082-
)
1083-
elif i % 2:
1084-
ax.fill_between(
1085-
x, y, y1, step="mid", color="orchid", alpha=0.2, zorder=0
1086-
)
1087-
elif i != 0:
1088-
ax.fill_between(
1089-
x, y, y1, step="mid", color="lightsalmon", alpha=0.2,
1090-
zorder=0
1091-
)
1092-
"""
1093-
10941060
# -------------------------------------------------------------------------
10951061
def plot_all_hop(self) -> None:
10961062
"""
@@ -1107,24 +1073,28 @@ def plot_all_hop(self) -> None:
11071073
ax0 = fig.add_subplot(511)
11081074
self.find_hop("baseline")
11091075
self.plot_bblocks()
1076+
self.plot_lc()
11101077
self.plot_hop()
11111078
plt.ylabel("baseline")
11121079

11131080
ax1 = fig.add_subplot(512)
11141081
self.find_hop("half")
11151082
self.plot_bblocks()
1083+
self.plot_lc()
11161084
self.plot_hop()
11171085
plt.ylabel("half")
11181086

11191087
ax2 = fig.add_subplot(513)
11201088
self.find_hop("flip")
11211089
self.plot_bblocks()
1090+
self.plot_lc()
11221091
self.plot_hop()
11231092
plt.ylabel("flip")
11241093

11251094
ax3 = fig.add_subplot(514)
11261095
self.find_hop("sharp")
11271096
self.plot_bblocks()
1097+
self.plot_lc()
11281098
self.plot_hop()
11291099
plt.ylabel("sharp")
11301100
fig.subplots_adjust(hspace=0)

0 commit comments

Comments
 (0)