Skip to content

Commit

Permalink
[#1002] Final fix of color cycling
Browse files Browse the repository at this point in the history
  • Loading branch information
dvezinet committed Jan 12, 2025
1 parent f4061dc commit ab2af6c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tofu/data/_class8_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1314,6 +1314,8 @@ def _add_camera_vlines_marker(
suffix=None,
):

ncolx = len(color_dict['x'])
ncoly = len(color_dict['y'])
if suffix is None:
suffix = ''

Expand All @@ -1324,7 +1326,7 @@ def _add_camera_vlines_marker(
ddatay[k0][0:1],
marker='s',
ms=6,
markeredgecolor=color_dict['x'][ii%len(color_dict['x'])],
markeredgecolor=color_dict['x'][ii%ncolx],
markerfacecolor='None',
)

Expand All @@ -1350,7 +1352,7 @@ def _add_camera_vlines_marker(

for ii in range(nlos):
lv = ax.axvline(
ddatax[k0][0], c=color_dict['y'][ii], lw=1., ls='-',
ddatax[k0][0], c=color_dict['y'][ii%ncoly], lw=1., ls='-',
)
kv = f'{k0}_v{ii:02.0f}{suffix}'
coll2.add_mobile(
Expand Down

0 comments on commit ab2af6c

Please sign in to comment.