Skip to content

Commit

Permalink
Minor fix to box plots
Browse files Browse the repository at this point in the history
If there are less than 100 cells, box plots rather than violins are used, but there were problems in the formatting of these plots.
  • Loading branch information
quantixed committed Dec 14, 2018
1 parent 8bcb371 commit 5383537
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CellMigration.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -1867,11 +1867,13 @@ STATIC Function BuildBoxOrViolinPlot(matA,plotName,ii)
Variable nTracks = DimSize(matA,0)
if(nTracks < 100)
AppendBoxPlot/W=$plotName matA vs condWave
ModifyBoxPlot/W=$plotName trace=$wName,markers={19,-1,19},markerSizes={2,2,2}
ModifyBoxPlot/W=$plotName trace=$wName,whiskerMethod=4
else
AppendViolinPlot/W=$plotName matA vs condWave
ModifyViolinPlot/W=$plotName trace=$wName,ShowMean,MeanMarker=19,CloseOutline
ModifyViolinPlot/W=$plotName trace=$wName,DataMarker=19
endif
ModifyViolinPlot/W=$plotName trace=$wName,ShowMean,MeanMarker=19,CloseOutline
ModifyViolinPlot/W=$plotName trace=$wName,DataMarker=19
Variable alphaLevel = DecideOpacity(nTracks)
ModifyGraph/W=$plotName rgb($wName)=(colorWave[ii][0],colorWave[ii][1],colorWave[ii][2],alphaLevel)
End
Expand Down

0 comments on commit 5383537

Please sign in to comment.