Skip to content

Commit

Permalink
fix: Changed colorpalette for histograms
Browse files Browse the repository at this point in the history
  • Loading branch information
vinaynaman committed Oct 4, 2022
1 parent 52ac6c5 commit 2cea54d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions explainit/graphs/feature_stats_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ def plot_feature_stats(
if feature_type == "num":
if current_data is None:
trace1 = go.Histogram(
x=reference_data[feature_name], marker_color="#ed0400"
x=reference_data[feature_name], marker_color="#48DD2D"
)
trace2 = go.Histogram(
x=np.log10(
reference_data.loc[reference_data[feature_name] > 0, feature_name]
),
marker_color="#ed0400",
marker_color="#48DD2D",
visible=False,
)
data = [trace1, trace2]
Expand Down Expand Up @@ -95,14 +95,14 @@ def plot_feature_stats(
else:
trace1 = go.Histogram(
x=reference_data[feature_name],
marker_color="#4d4d4d",
marker_color="#48DD2D",
name="training",
)
trace2 = go.Histogram(
x=np.log10(
reference_data.loc[reference_data[feature_name] > 0, feature_name]
),
marker_color="#4d4d4d",
marker_color="#48DD2D",
visible=False,
name="traininig",
)
Expand Down Expand Up @@ -159,7 +159,7 @@ def plot_feature_stats(
fig.add_trace(
go.Histogram(
x=reference_data[feature_name],
marker_color="#4d4d4d",
marker_color="#48DD2D",
name="traininig",
)
)
Expand Down

0 comments on commit 2cea54d

Please sign in to comment.