StatsPlots.jl icon indicating copy to clipboard operation
StatsPlots.jl copied to clipboard

Corrplot fails with certain matrices

Open moesphere opened this issue 6 years ago • 1 comments

I am trying to plot data with corrplot(). It works for certain data, but fails for other data, i.e. no error is thrown but the plotting does not finish either. See the following minimal example:

using StatsPlots
A = [3.1860855 3.2 3.2 263.15; 6.372171 1.6 1.6 263.15; 6.372171 1.6 1.6 263.15; 8.496228 1.2 1.2 263.15; 8.496228 1.2 1.2 263.15; 12.744342 0.8 0.8 263.15; 12.744342 0.8 0.8 263.15]
corrplot(A) # works fine
A2 = [6.372171 1.6 1.6 263.15; 6.372171 1.6 1.6 263.15; 8.496228 1.2 1.2 263.15; 8.496228 1.2 1.2 263.15; 12.744342 0.8 0.8 263.15; 16.992456 0.6 0.6 263.15; 16.992456 0.6 0.6 263.15]
corrplot(A2) # does not work

Points to PlotUtils/35TGG/src/ticks.jl:64 when stopping with ctrl+c.

See also here at julia discourse

moesphere avatar Sep 12 '19 09:09 moesphere

The order of the plotting is also not important. If plotting A2 first, the plotting still gets stuck while plotting A2.

Just to be sure if A2 might be the problem, I successfully corplotted A2 in matlab,

moesphere avatar Sep 20 '19 08:09 moesphere