Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ def parallel_coordinate_plot(
group1_name: violin_colors[0],
group2_name: violin_colors[1],
},
cut=0,
)

# Line or marker
Expand Down Expand Up @@ -549,6 +550,13 @@ def _data_transform(
ymeds = np.nanmedian(ys, axis=0) # median
ymean = np.nanmean(ys, axis=0) # mean

# Convert to float type for further calculations
ymaxs = ymaxs.astype(float)
ymins = ymins.astype(float)
ymeds = ymeds.astype(float)
ymean = ymean.astype(float)

# Adjust vertical axis range to set center as median/mean/given number
if vertical_center is not None:
if vertical_center == "median":
ymids = ymeds
Expand Down
Loading