Skip to content

Commit b881af1

Browse files
committed
markersize for orbital period plots
1 parent c71f126 commit b881af1

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

v2dl5/light_curves/binary_plotting.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def plot_flux_vs_time(
4141
figure_dir="./figures/",
4242
axes=None,
4343
fontsize=None,
44+
markersize=None,
4445
):
4546
"""
4647
Plot flux vs time (MJD or orbital phase).
@@ -55,6 +56,14 @@ def plot_flux_vs_time(
5556
Maximum MJD value.
5657
file_type: str
5758
File type for plots (e.g., '.pdf', '.png').
59+
figure_dir: str
60+
Directory for saving figures.
61+
axes: matplotlib.axes.Axes
62+
Axes object to plot on.
63+
fontsize: int
64+
Font size for labels.
65+
markersize: int
66+
Marker size for points.
5867
"""
5968
self._logger.info(
6069
f"Plotting flux vs {time_axis}" f"(MJD {mjd_min}, {mjd_max}, orbit id {orbit_number})"
@@ -86,7 +95,9 @@ def plot_flux_vs_time(
8695
linestyle="none",
8796
fillstyle="none",
8897
linewidth=plotting_utilities.get_line_width(),
89-
markersize=plotting_utilities.get_marker_size(),
98+
markersize=(
99+
plotting_utilities.get_marker_size() if markersize is None else markersize
100+
),
90101
)
91102
if len(y_ul) > 0:
92103
plt.errorbar(
@@ -156,6 +167,7 @@ def plot_flux_vs_phase_for_individual_orbits(
156167
orbit_number=orbit_id,
157168
axes=axes,
158169
fontsize=fontsize,
170+
markersize=plotting_utilities.get_marker_size() * 0.5,
159171
)
160172
plt.rc("xtick", labelsize=fontsize)
161173
plt.rc("ytick", labelsize=fontsize)

0 commit comments

Comments
 (0)