Skip to content

Commit

Permalink
Fix x-axis ticks not showing up.
Browse files Browse the repository at this point in the history
  • Loading branch information
nealkruis committed Dec 18, 2023
1 parent d374ea6 commit 19fcd5f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions dimes/dimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,6 @@ def finalize_plot(self):
if not self.is_finalized:
at_least_one_subplot = False
number_of_subplots = len(self.subplots)
# if number_of_subplots > 1:
# self.figure = make_subplots(
# rows=number_of_subplots, shared_xaxes=True, vertical_spacing=0.05
# )
subplot_domains = get_subplot_domains(number_of_subplots)
absolute_axis_index = 0 # Used to track axes data in the plot
for subplot_index, subplot in enumerate(self.subplots):
Expand All @@ -136,15 +132,14 @@ def finalize_plot(self):
),
name=time_series.name,
yaxis=f"y{y_axis_id}",
xaxis=f"x{x_axis_id}",
mode="lines",
visible="legendonly" if not time_series.is_visible else True,
line={
"color": time_series.color,
"dash": time_series.line_type,
},
),
# row=None if number_of_subplots == 1 else subplot_number,
# col=None if number_of_subplots == 1 else 1,
)
is_base_y_axis = subplot_base_y_axis_id != y_axis_id
self.figure.layout[f"yaxis{y_axis_id}"] = {
Expand All @@ -167,7 +162,7 @@ def finalize_plot(self):
"matches": f"x{number_of_subplots}"
if subplot_number < number_of_subplots
else None,
"showticklabels": True if is_last_subplot else False,
"showticklabels": None if is_last_subplot else False,
}
else:
warnings.warn(f"Subplot {subplot_number} is unused.")
Expand Down

0 comments on commit 19fcd5f

Please sign in to comment.