Skip to content

Commit

Permalink
code cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
erdogant committed May 28, 2023
1 parent 5fefbd0 commit 9c40a06
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions scatterd/scatterd.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,15 +346,10 @@ def jitter_func(x, jitter=0.01):

# %% Fontcolor
def _preprocessing(x, y, z, labels, jitter, norm=False):
# Add jitter
x = jitter_func(x, jitter=jitter)
y = jitter_func(y, jitter=jitter)
z = jitter_func(z, jitter=jitter)
# if jitter is None or jitter is False: jitter=0
# if jitter is True: jitter=0.01
# if jitter>0:
# x = x + np.random.normal(0, jitter, size=len(x))
# if y is not None: y = y + np.random.normal(0, jitter, size=len(y))
# if z is not None: z = z + np.random.normal(0, jitter, size=len(z))

# Combine into array
if z is not None:
Expand Down

0 comments on commit 9c40a06

Please sign in to comment.