@@ -126,11 +126,11 @@ function scatter_gplot(X; marker = nothing, ms = 4, plotOrder = :normal, c = :vi
126126 if size (marker) == (N,) || size (marker) == (N, 1 )
127127 marker = marker[:] # reshape N x 1 matrix to a vector of length N
128128 else
129- error (" marker only accepts a vector of length N or an N x 1 matrix,
130- where N is the total number of points." )
129+ error (" marker only accepts a vector of length N or an N x 1 matrix, where N is the total number of points." )
131130 end
132- idx = 1 : N
133- if plotOrder == :s2l
131+ if plotOrder == :normal
132+ idx = 1 : N
133+ elseif plotOrder == :s2l
134134 idx = sortperm (marker)
135135 elseif plotOrder == :l2s
136136 idx = sortperm (marker, rev = true )
@@ -162,11 +162,11 @@ function scatter_gplot!(X; marker = nothing, ms = 4, plotOrder = :normal, c = :v
162162 if size (marker) == (N,) || size (marker) == (N, 1 )
163163 marker = marker[:] # reshape N x 1 matrix to a vector of length N
164164 else
165- error (" marker only accepts a vector of length N or an N x 1 matrix,
166- where N is the total number of points." )
165+ error (" marker only accepts a vector of length N or an N x 1 matrix, where N is the total number of points." )
167166 end
168- idx = 1 : N
169- if plotOrder == :s2l
167+ if plotOrder == :normal
168+ idx = 1 : N
169+ elseif plotOrder == :s2l
170170 idx = sortperm (marker)
171171 elseif plotOrder == :l2s
172172 idx = sortperm (marker, rev = true )
0 commit comments