Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heatmap: missing check that Z is 2D array #486

Open
LebedevRI opened this issue Sep 9, 2024 · 1 comment
Open

Heatmap: missing check that Z is 2D array #486

LebedevRI opened this issue Sep 9, 2024 · 1 comment

Comments

@LebedevRI
Copy link

Describe the bug

repro
using Plots

plotlyjs()

struct BenchmarkResult
    AUTHORITATIVE_TIME::Float64
    ITERATION_COUNT_MULTIPLIER::Float64
    TIME_FUDJE::Float64
    time_overspent::Float64
end

R = BenchmarkResult[BenchmarkResult(0.01, 2.0, 1.4, 1.3782051282051282),
 BenchmarkResult(0.01, 3.0, 1.4, 1.4449307075127646),
 BenchmarkResult(0.01, 4.0, 1.4, 1.4066666666666667),
 BenchmarkResult(0.01, 5.0, 1.4, 1.422534148366161),
 BenchmarkResult(0.01, 6.0, 1.4, 1.431501846366108),
 BenchmarkResult(0.01, 7.0, 1.4, 1.4705882352941178),
 BenchmarkResult(0.01, 8.0, 1.4, 1.4108297259909948),
 BenchmarkResult(0.01, 9.0, 1.4, 1.4759165366614666),
 BenchmarkResult(0.01, 10.0, 1.4, 1.4861111111111112),
 BenchmarkResult(0.01, 11.0, 1.4, 1.53),
 BenchmarkResult(0.01, 12.0, 1.4, 1.4564300773014758),
 BenchmarkResult(0.01, 13.0, 1.4, 1.5711252653927814),
 BenchmarkResult(0.01, 14.0, 1.4, 1.473006792992492),
 BenchmarkResult(0.01, 15.0, 1.4, 1.5302506482281764),
 BenchmarkResult(0.01, 16.0, 1.4, 1.4250302860870374),
 BenchmarkResult(0.01, 17.0, 1.4, 1.630952380952381),
 BenchmarkResult(0.01, 18.0, 1.4, 1.4654088050314464),
 BenchmarkResult(0.01, 19.0, 1.4, 1.4217593941159337),
 BenchmarkResult(0.01, 20.0, 1.4, 1.574865201161344),
 BenchmarkResult(0.02, 2.0, 1.4, 1.3333333333333333),
 BenchmarkResult(0.02, 3.0, 1.4, 1.4487353821049767),
 BenchmarkResult(0.02, 4.0, 1.4, 1.4373459500807435),
 BenchmarkResult(0.02, 5.0, 1.4, 1.470469155094648),
 BenchmarkResult(0.02, 6.0, 1.4, 1.5402334144604208),
 BenchmarkResult(0.02, 7.0, 1.4, 1.4848484848484849),
 BenchmarkResult(0.02, 8.0, 1.4, 1.642857142857143),
 BenchmarkResult(0.02, 9.0, 1.4, 1.4602941176470587),
 BenchmarkResult(0.02, 10.0, 1.4, 1.4869565217391303),
 BenchmarkResult(0.02, 11.0, 1.4, 1.4451612903225806),
 BenchmarkResult(0.02, 12.0, 1.4, 1.6360808709175738),
 BenchmarkResult(0.02, 13.0, 1.4, 1.603414313854235),
 BenchmarkResult(0.02, 14.0, 1.4, 1.5544554455445545),
 BenchmarkResult(0.02, 15.0, 1.4, 1.528169014084507),
 BenchmarkResult(0.02, 16.0, 1.4, 1.4733333333333332),
 BenchmarkResult(0.02, 17.0, 1.4, 1.4318181818181819),
 BenchmarkResult(0.02, 18.0, 1.4, 1.6179775280898874),
 BenchmarkResult(0.02, 19.0, 1.4, 1.3333333333333333),
 BenchmarkResult(0.02, 20.0, 1.4, 1.5325044180762435),
 BenchmarkResult(0.03, 2.0, 1.4, 1.5053705692803439),
 BenchmarkResult(0.03, 3.0, 1.4, 1.4826175869120655),
 BenchmarkResult(0.03, 4.0, 1.4, 1.5278969957081545),
 BenchmarkResult(0.03, 5.0, 1.4, 1.4830298943582827),
 BenchmarkResult(0.03, 6.0, 1.4, 1.5444444444444445),
 BenchmarkResult(0.03, 7.0, 1.4, 1.6607929515418505),
 BenchmarkResult(0.03, 8.0, 1.4, 1.5126050420168067),
 BenchmarkResult(0.03, 9.0, 1.4, 1.4947698744769877),
 BenchmarkResult(0.03, 10.0, 1.4, 1.5136986301369861),
 BenchmarkResult(0.03, 11.0, 1.4, 1.4911785462244176),
 BenchmarkResult(0.03, 12.0, 1.4, 1.6446065659197497),
 BenchmarkResult(0.03, 13.0, 1.4, 1.371900826446281),
 BenchmarkResult(0.03, 14.0, 1.4, 1.5476973684210524),
 BenchmarkResult(0.03, 15.0, 1.4, 1.4391006842619747),
 BenchmarkResult(0.03, 16.0, 1.4, 1.6151368760064413),
 BenchmarkResult(0.03, 17.0, 1.4, 1.6),
 BenchmarkResult(0.03, 18.0, 1.4, 1.5969201460549296),
 BenchmarkResult(0.03, 19.0, 1.4, 1.5848101265822785),
 BenchmarkResult(0.03, 20.0, 1.4, 1.4324324324324325),
 BenchmarkResult(0.04, 2.0, 1.4, 1.5065123010130248),
 BenchmarkResult(0.04, 3.0, 1.4, 1.5546875),
 BenchmarkResult(0.04, 4.0, 1.4, 1.528497409326425),
 BenchmarkResult(0.04, 5.0, 1.4, 1.512295081967213),
 BenchmarkResult(0.04, 6.0, 1.4, 1.6526080034539516),
 BenchmarkResult(0.04, 7.0, 1.4, 1.4782692307692307),
 BenchmarkResult(0.04, 8.0, 1.4, 1.4545454545454546),
 BenchmarkResult(0.04, 9.0, 1.4, 1.6431116389548692),
 BenchmarkResult(0.04, 10.0, 1.4, 1.6697285707324203),
 BenchmarkResult(0.04, 11.0, 1.4, 1.472647702407002),
 BenchmarkResult(0.04, 12.0, 1.4, 1.4932668329177055),
 BenchmarkResult(0.04, 13.0, 1.4, 1.552330694810906),
 BenchmarkResult(0.04, 14.0, 1.4, 1.465201465201465),
 BenchmarkResult(0.04, 15.0, 1.4, 1.5703125000000002),
 BenchmarkResult(0.04, 16.0, 1.4, 1.5964896037617802),
 BenchmarkResult(0.04, 17.0, 1.4, 1.5462962962962963),
 BenchmarkResult(0.04, 18.0, 1.4, 1.937597503900156),
 BenchmarkResult(0.04, 19.0, 1.4, 1.8298779765430635),
 BenchmarkResult(0.04, 20.0, 1.4, 1.7026447462473193),
 BenchmarkResult(0.05, 2.0, 1.4, 1.5754716981132075),
 BenchmarkResult(0.05, 3.0, 1.4, 1.55),
 BenchmarkResult(0.05, 4.0, 1.4, 1.5862068965517242),
 BenchmarkResult(0.05, 5.0, 1.4, 1.4285714285714286),
 BenchmarkResult(0.05, 6.0, 1.4, 1.6490713587487782),
 BenchmarkResult(0.05, 7.0, 1.4, 1.5536847767617),
 BenchmarkResult(0.05, 8.0, 1.4, 1.5301508225440013),
 BenchmarkResult(0.05, 9.0, 1.4, 1.606989853438557),
 BenchmarkResult(0.05, 10.0, 1.4, 1.4936953597848015),
 BenchmarkResult(0.05, 11.0, 1.4, 1.5825545171339566),
 BenchmarkResult(0.05, 12.0, 1.4, 1.5514018691588785),
 BenchmarkResult(0.05, 13.0, 1.4, 1.5723684210526319),
 BenchmarkResult(0.05, 14.0, 1.4, 1.467117988394584),
 BenchmarkResult(0.05, 15.0, 1.4, 1.452641599238458),
 BenchmarkResult(0.05, 16.0, 1.4, 1.5553797468354431),
 BenchmarkResult(0.05, 17.0, 1.4, 1.5826771653543308),
 BenchmarkResult(0.05, 18.0, 1.4, 2.245098039215686),
 BenchmarkResult(0.05, 19.0, 1.4, 1.8337129840546693),
 BenchmarkResult(0.05, 20.0, 1.4, 1.53125),
 BenchmarkResult(0.06, 2.0, 1.4, 1.543451652386781),
 BenchmarkResult(0.06, 3.0, 1.4, 1.5121951219512197),
 BenchmarkResult(0.06, 4.0, 1.4, 1.5766283524904214),
 BenchmarkResult(0.06, 5.0, 1.4, 1.7605854197349042),
 BenchmarkResult(0.06, 6.0, 1.4, 1.4811085538933642),
 BenchmarkResult(0.06, 7.0, 1.4, 1.6801428919845631),
 BenchmarkResult(0.06, 8.0, 1.4, 1.6143018782529983),
 BenchmarkResult(0.06, 9.0, 1.4, 1.6666666666666667),
 BenchmarkResult(0.06, 10.0, 1.4, 1.6756756756756757),
 BenchmarkResult(0.06, 11.0, 1.4, 1.746031746031746),
 BenchmarkResult(0.06, 12.0, 1.4, 1.375),
 BenchmarkResult(0.06, 13.0, 1.4, 2.1042095967029737),
 BenchmarkResult(0.06, 14.0, 1.4, 1.5469613259668509),
 BenchmarkResult(0.06, 15.0, 1.4, 1.60015497869043),
 BenchmarkResult(0.06, 16.0, 1.4, 1.6787564766839376),
 BenchmarkResult(0.06, 17.0, 1.4, 1.4240000000000002),
 BenchmarkResult(0.06, 18.0, 1.4, 1.6144179894179895),
 BenchmarkResult(0.06, 19.0, 1.4, 1.534012487676635),
 BenchmarkResult(0.06, 20.0, 1.4, 1.874922425952045),
 BenchmarkResult(0.07, 2.0, 1.4, 1.6705508474576272),
 BenchmarkResult(0.07, 3.0, 1.4, 1.7191558441558439),
 BenchmarkResult(0.07, 4.0, 1.4, 1.6496722505462489),
 BenchmarkResult(0.07, 5.0, 1.4, 1.4915730337078652),
 BenchmarkResult(0.07, 6.0, 1.4, 1.7456848655455959),
 BenchmarkResult(0.07, 7.0, 1.4, 1.55),
 BenchmarkResult(0.07, 8.0, 1.4, 1.4099999999999997),
 BenchmarkResult(0.07, 9.0, 1.4, 1.5052631578947369),
 BenchmarkResult(0.07, 10.0, 1.4, 1.7586206896551726),
 BenchmarkResult(0.07, 11.0, 1.4, 1.5409836065573768),
 BenchmarkResult(0.07, 12.0, 1.4, 1.5348330914368649),
 BenchmarkResult(0.07, 13.0, 1.4, 1.6981132075471699),
 BenchmarkResult(0.07, 14.0, 1.4, 1.9230769230769234),
 BenchmarkResult(0.07, 15.0, 1.4, 1.5158836950798573),
 BenchmarkResult(0.07, 16.0, 1.4, 1.6055833929849677),
 BenchmarkResult(0.07, 17.0, 1.4, 2.184880239520958),
 BenchmarkResult(0.07, 18.0, 1.4, 1.938682948102922),
 BenchmarkResult(0.07, 19.0, 1.4, 1.7103559870550165),
 BenchmarkResult(0.07, 20.0, 1.4, 1.5688906435057246),
 BenchmarkResult(0.08, 2.0, 1.4, 1.6918654785858003),
 BenchmarkResult(0.08, 3.0, 1.4, 1.6794117647058822),
 BenchmarkResult(0.08, 4.0, 1.4, 1.5310344827586206),
 BenchmarkResult(0.08, 5.0, 1.4, 1.6775956284153004),
 BenchmarkResult(0.08, 6.0, 1.4, 1.6666666666666667),
 BenchmarkResult(0.08, 7.0, 1.4, 1.686695278969957),
 BenchmarkResult(0.08, 8.0, 1.4, 1.7105674128058304),
 BenchmarkResult(0.08, 9.0, 1.4, 1.4444444444444446),
 BenchmarkResult(0.08, 10.0, 1.4, 1.5605331867527827),
 BenchmarkResult(0.08, 11.0, 1.4, 2.0656565656565657),
 BenchmarkResult(0.08, 12.0, 1.4, 2.13836682844207),
 BenchmarkResult(0.08, 13.0, 1.4, 1.6460616084349806),
 BenchmarkResult(0.08, 14.0, 1.4, 2.0650112866817154),
 BenchmarkResult(0.08, 15.0, 1.4, 1.6363636363636365),
 BenchmarkResult(0.08, 16.0, 1.4, 1.4780219780219783),
 BenchmarkResult(0.08, 17.0, 1.4, 1.5),
 BenchmarkResult(0.08, 18.0, 1.4, 1.588888888888889),
 BenchmarkResult(0.08, 19.0, 1.4, 1.5423302930178262),
 BenchmarkResult(0.08, 20.0, 1.4, 1.7244274809160303),
 BenchmarkResult(0.09, 2.0, 1.4, 1.6131708854111961),
 BenchmarkResult(0.09, 3.0, 1.4, 1.7109375),
 BenchmarkResult(0.09, 4.0, 1.4, 1.7029520295202951),
 BenchmarkResult(0.09, 5.0, 1.4, 1.5789473684210524),
 BenchmarkResult(0.09, 6.0, 1.4, 1.723170731707317),
 BenchmarkResult(0.09, 7.0, 1.4, 1.70386858596513),
 BenchmarkResult(0.09, 8.0, 1.4, 1.576271186440678),
 BenchmarkResult(0.09, 9.0, 1.4, 1.5816733067729085),
 BenchmarkResult(0.09, 10.0, 1.4, 1.5866900175131349),
 BenchmarkResult(0.09, 11.0, 1.4, 1.7273544616767813),
 BenchmarkResult(0.09, 12.0, 1.4, 1.5481335952848723),
 BenchmarkResult(0.09, 13.0, 1.4, 1.225289086012989),
 BenchmarkResult(0.09, 14.0, 1.4, 1.593220338983051),
 BenchmarkResult(0.09, 15.0, 1.4, 1.7139261308073765),
 BenchmarkResult(0.09, 16.0, 1.4, 1.4166666666666667),
 BenchmarkResult(0.09, 17.0, 1.4, 1.1717557251908395),
 BenchmarkResult(0.09, 18.0, 1.4, 1.813819834268912),
 BenchmarkResult(0.09, 19.0, 1.4, 1.4541984732824427),
 BenchmarkResult(0.09, 20.0, 1.4, 1.966577540106952),
 BenchmarkResult(0.1, 2.0, 1.4, 1.752577319587629),
 BenchmarkResult(0.1, 3.0, 1.4, 1.8081985708913122),
 BenchmarkResult(0.1, 4.0, 1.4, 1.652330435893416),
 BenchmarkResult(0.1, 5.0, 1.4, 1.7268649277288588),
 BenchmarkResult(0.1, 6.0, 1.4, 1.773109243697479),
 BenchmarkResult(0.1, 7.0, 1.4, 1.7247850143323782),
 BenchmarkResult(0.1, 8.0, 1.4, 1.6774193548387097),
 BenchmarkResult(0.1, 9.0, 1.4, 1.5889830508474576),
 BenchmarkResult(0.1, 10.0, 1.4, 1.5),
 BenchmarkResult(0.1, 11.0, 1.4, 2.2510561892691174),
 BenchmarkResult(0.1, 12.0, 1.4, 2.141287284144427),
 BenchmarkResult(0.1, 13.0, 1.4, 1.9979124383879385),
 BenchmarkResult(0.1, 14.0, 1.4, 2.347826086956522),
 BenchmarkResult(0.1, 15.0, 1.4, 2.1714285714285713),
 BenchmarkResult(0.1, 16.0, 1.4, 1.852941176470588),
 BenchmarkResult(0.1, 17.0, 1.4, 1.631029405202802),
 BenchmarkResult(0.1, 18.0, 1.4, 2.108163265306122),
 BenchmarkResult(0.1, 19.0, 1.4, 1.7357142857142858),
 BenchmarkResult(0.1, 20.0, 1.4, 1.3841222879684418),
 BenchmarkResult(0.11, 2.0, 1.4, 1.7096285064442762),
 BenchmarkResult(0.11, 3.0, 1.4, 1.6305418719211822),
 BenchmarkResult(0.11, 4.0, 1.4, 1.9138972809667676),
 BenchmarkResult(0.11, 5.0, 1.4, 1.6903962390866354),
 BenchmarkResult(0.11, 6.0, 1.4, 1.9451240824886404),
 BenchmarkResult(0.11, 7.0, 1.4, 1.7445322084347283),
 BenchmarkResult(0.11, 8.0, 1.4, 1.7422257414339188),
 BenchmarkResult(0.11, 9.0, 1.4, 2.155140758873929),
 BenchmarkResult(0.11, 10.0, 1.4, 1.5547520225114317),
 BenchmarkResult(0.11, 11.0, 1.4, 1.777777777777778),
 BenchmarkResult(0.11, 12.0, 1.4, 1.7948717948717947),
 BenchmarkResult(0.11, 13.0, 1.4, 1.657142857142857),
 BenchmarkResult(0.11, 14.0, 1.4, 1.8626609442060087),
 BenchmarkResult(0.11, 15.0, 1.4, 1.7857142857142856),
 BenchmarkResult(0.11, 16.0, 1.4, 1.9955947136563876),
 BenchmarkResult(0.11, 17.0, 1.4, 1.3053263315828956),
 BenchmarkResult(0.11, 18.0, 1.4, 2.1162494204914233),
 BenchmarkResult(0.11, 19.0, 1.4, 1.6944251582601593),
 BenchmarkResult(0.11, 20.0, 1.4, 1.967439665633005),
 BenchmarkResult(0.12, 2.0, 1.4, 1.8191060260125087),
 BenchmarkResult(0.12, 3.0, 1.4, 1.5999999999999999),
 BenchmarkResult(0.12, 4.0, 1.4, 1.608017817371938),
 BenchmarkResult(0.12, 5.0, 1.4, 1.855072463768116),
 BenchmarkResult(0.12, 6.0, 1.4, 1.8729874776386406),
 BenchmarkResult(0.12, 7.0, 1.4, 2.1754716981132076),
 BenchmarkResult(0.12, 8.0, 1.4, 1.558458783738975),
 BenchmarkResult(0.12, 9.0, 1.4, 1.6000461573967228),
 BenchmarkResult(0.12, 10.0, 1.4, 2.0358565737051793),
 BenchmarkResult(0.12, 11.0, 1.4, 1.7631578947368418),
 BenchmarkResult(0.12, 12.0, 1.4, 1.2388280394304492),
 BenchmarkResult(0.12, 13.0, 1.4, 1.5646312450436162),
 BenchmarkResult(0.12, 14.0, 1.4, 1.2499999999999998),
 BenchmarkResult(0.12, 15.0, 1.4, 1.0807174887892375),
 BenchmarkResult(0.12, 16.0, 1.4, 1.637946040034813),
 BenchmarkResult(0.12, 17.0, 1.4, 1.1245421245421245),
 BenchmarkResult(0.12, 18.0, 1.4, 2.4210526315789473),
 BenchmarkResult(0.12, 19.0, 1.4, 1.6678344888626642),
 BenchmarkResult(0.12, 20.0, 1.4, 1.6403002309468824),
 BenchmarkResult(0.13, 2.0, 1.4, 1.7628865979381443),
 BenchmarkResult(0.13, 3.0, 1.4, 1.727272727272727),
 BenchmarkResult(0.13, 4.0, 1.4, 1.7445903807993952),
 BenchmarkResult(0.13, 5.0, 1.4, 1.7783251231527095),
 BenchmarkResult(0.13, 6.0, 1.4, 1.669651741293532),
 BenchmarkResult(0.13, 7.0, 1.4, 1.6688385269121815),
 BenchmarkResult(0.13, 8.0, 1.4, 1.7022153529108708),
 BenchmarkResult(0.13, 9.0, 1.4, 2.1359999999999997),
 BenchmarkResult(0.13, 10.0, 1.4, 1.136551570350731),
 BenchmarkResult(0.13, 11.0, 1.4, 1.5744949494949496),
 BenchmarkResult(0.13, 12.0, 1.4, 1.9009287925696596),
 BenchmarkResult(0.13, 13.0, 1.4, 1.2620689655172415),
 BenchmarkResult(0.13, 14.0, 1.4, 2.3607305936073057),
 BenchmarkResult(0.13, 15.0, 1.4, 1.2073455759599332),
 BenchmarkResult(0.13, 16.0, 1.4, 1.7142857142857146),
 BenchmarkResult(0.13, 17.0, 1.4, 1.9576713935387569),
 BenchmarkResult(0.13, 18.0, 1.4, 1.5606270881521458),
 BenchmarkResult(0.13, 19.0, 1.4, 1.7511442085444444),
 BenchmarkResult(0.13, 20.0, 1.4, 2.0294117647058822),
 BenchmarkResult(0.14, 2.0, 1.4, 1.7970353477765106),
 BenchmarkResult(0.14, 3.0, 1.4, 1.6264367816091956),
 BenchmarkResult(0.14, 4.0, 1.4, 1.6901408450704223),
 BenchmarkResult(0.14, 5.0, 1.4, 2.0408163265306123),
 BenchmarkResult(0.14, 6.0, 1.4, 1.670807453416149),
 BenchmarkResult(0.14, 7.0, 1.4, 1.8425026968716292),
 BenchmarkResult(0.14, 8.0, 1.4, 1.5633802816901408),
 BenchmarkResult(0.14, 9.0, 1.4, 1.8329022245214692),
 BenchmarkResult(0.14, 10.0, 1.4, 1.725313137197786),
 BenchmarkResult(0.14, 11.0, 1.4, 1.6018440905280804),
 BenchmarkResult(0.14, 12.0, 1.4, 2.1224177505738333),
 BenchmarkResult(0.14, 13.0, 1.4, 1.7774458551157581),
 BenchmarkResult(0.14, 14.0, 1.4, 1.551470588235294),
 BenchmarkResult(0.14, 15.0, 1.4, 1.870182555780933),
 BenchmarkResult(0.14, 16.0, 1.4, 1.7),
 BenchmarkResult(0.14, 17.0, 1.4, 1.5857874519846349),
 BenchmarkResult(0.14, 18.0, 1.4, 1.7579617834394903),
 BenchmarkResult(0.14, 19.0, 1.4, 1.5782312925170068),
 BenchmarkResult(0.14, 20.0, 1.4, 1.976323119777159),
 BenchmarkResult(0.15, 2.0, 1.4, 1.8059210526315792),
 BenchmarkResult(0.15, 3.0, 1.4, 1.6347563605002156),
 BenchmarkResult(0.15, 4.0, 1.4, 1.641509433962264),
 BenchmarkResult(0.15, 5.0, 1.4, 2.0638297872340425),
 BenchmarkResult(0.15, 6.0, 1.4, 1.8069677419354842),
 BenchmarkResult(0.15, 7.0, 1.4, 1.617055084745763),
 BenchmarkResult(0.15, 8.0, 1.4, 1.8906233616441228),
 BenchmarkResult(0.15, 9.0, 1.4, 2.379310344827586),
 BenchmarkResult(0.15, 10.0, 1.4, 1.6259377477788848),
 BenchmarkResult(0.15, 11.0, 1.4, 1.537313432835821),
 BenchmarkResult(0.15, 12.0, 1.4, 1.7708374776208473),
 BenchmarkResult(0.15, 13.0, 1.4, 1.5688800792864221),
 BenchmarkResult(0.15, 14.0, 1.4, 1.227589685766001),
 BenchmarkResult(0.15, 15.0, 1.4, 1.6195652173913047),
 BenchmarkResult(0.15, 16.0, 1.4, 1.372173366834171),
 BenchmarkResult(0.15, 17.0, 1.4, 2.331306990881459),
 BenchmarkResult(0.15, 18.0, 1.4, 2.241830065359477),
 BenchmarkResult(0.15, 19.0, 1.4, 2.702127659574468),
 BenchmarkResult(0.15, 20.0, 1.4, 2.2908052230685527),
 BenchmarkResult(0.16, 2.0, 1.4, 1.8125),
 BenchmarkResult(0.16, 3.0, 1.4, 1.6771535580524344),
 BenchmarkResult(0.16, 4.0, 1.4, 1.8524229987978278),
 BenchmarkResult(0.16, 5.0, 1.4, 1.6415094339622642),
 BenchmarkResult(0.16, 6.0, 1.4, 2.11864406779661),
 BenchmarkResult(0.16, 7.0, 1.4, 1.770648283176455),
 BenchmarkResult(0.16, 8.0, 1.4, 2.506641366223909),
 BenchmarkResult(0.16, 9.0, 1.4, 1.7531305903398928),
 BenchmarkResult(0.16, 10.0, 1.4, 1.6455498550078071),
 BenchmarkResult(0.16, 11.0, 1.4, 1.688032532920217),
 BenchmarkResult(0.16, 12.0, 1.4, 2.220245658619229),
 BenchmarkResult(0.16, 13.0, 1.4, 1.5394566623544632),
 BenchmarkResult(0.16, 14.0, 1.4, 2.375),
 BenchmarkResult(0.16, 15.0, 1.4, 1.6428571428571428),
 BenchmarkResult(0.16, 16.0, 1.4, 1.6801619433198378),
 BenchmarkResult(0.16, 17.0, 1.4, 1.7236981934112647),
 BenchmarkResult(0.16, 18.0, 1.4, 1.6532200990799717),
 BenchmarkResult(0.16, 19.0, 1.4, 2.7214285714285715),
 BenchmarkResult(0.16, 20.0, 1.4, 1.6018382361731787),
 BenchmarkResult(0.17, 2.0, 1.4, 2.034706154558075),
 BenchmarkResult(0.17, 3.0, 1.4, 2.0485282418456645),
 BenchmarkResult(0.17, 4.0, 1.4, 2.297847872515196),
 BenchmarkResult(0.17, 5.0, 1.4, 1.764120848189154),
 BenchmarkResult(0.17, 6.0, 1.4, 2.495798319327731),
 BenchmarkResult(0.17, 7.0, 1.4, 2.2727272727272725),
 BenchmarkResult(0.17, 8.0, 1.4, 1.64),
 BenchmarkResult(0.17, 9.0, 1.4, 1.815450643776824),
 BenchmarkResult(0.17, 10.0, 1.4, 2.0),
 BenchmarkResult(0.17, 11.0, 1.4, 1.2547169811320753),
 BenchmarkResult(0.17, 12.0, 1.4, 1.611017803157541),
 BenchmarkResult(0.17, 13.0, 1.4, 1.261867862969005),
 BenchmarkResult(0.17, 14.0, 1.4, 2.470097861544038),
 BenchmarkResult(0.17, 15.0, 1.4, 2.563829787234042),
 BenchmarkResult(0.17, 16.0, 1.4, 2.399231191652938),
 BenchmarkResult(0.17, 17.0, 1.4, 2.42),
 BenchmarkResult(0.17, 18.0, 1.4, 2.029585798816568),
 BenchmarkResult(0.17, 19.0, 1.4, 1.1545454545454545),
 BenchmarkResult(0.17, 20.0, 1.4, 1.262897420515897),
 BenchmarkResult(0.18, 2.0, 1.4, 2.1257309941520464),
 BenchmarkResult(0.18, 3.0, 1.4, 1.9662629757785466),
 BenchmarkResult(0.18, 4.0, 1.4, 1.4),
 BenchmarkResult(0.18, 5.0, 1.4, 2.1588785046728973),
 BenchmarkResult(0.18, 6.0, 1.4, 2.229032258064516),
 BenchmarkResult(0.18, 7.0, 1.4, 1.969177383139416),
 BenchmarkResult(0.18, 8.0, 1.4, 2.0),
 BenchmarkResult(0.18, 9.0, 1.4, 1.6314277506463661),
 BenchmarkResult(0.18, 10.0, 1.4, 1.7619606412838367),
 BenchmarkResult(0.18, 11.0, 1.4, 2.0104515050167224),
 BenchmarkResult(0.18, 12.0, 1.4, 1.961672473867596),
 BenchmarkResult(0.18, 13.0, 1.4, 1.6695985322685085),
 BenchmarkResult(0.18, 14.0, 1.4, 2.1868652288029216),
 BenchmarkResult(0.18, 15.0, 1.4, 2.1023255813953488),
 BenchmarkResult(0.18, 16.0, 1.4, 1.3340458015267176),
 BenchmarkResult(0.18, 17.0, 1.4, 1.1743532058492687),
 BenchmarkResult(0.18, 18.0, 1.4, 1.9251908396946564),
 BenchmarkResult(0.18, 19.0, 1.4, 2.0621682618968564),
 BenchmarkResult(0.18, 20.0, 1.4, 2.2399999999999998),
 BenchmarkResult(0.19, 2.0, 1.4, 2.022670025188917),
 BenchmarkResult(0.19, 3.0, 1.4, 2.101694915254237),
 BenchmarkResult(0.19, 4.0, 1.4, 1.7949308755760371),
 BenchmarkResult(0.19, 5.0, 1.4, 2.337349397590361),
 BenchmarkResult(0.19, 6.0, 1.4, 1.7167919799498745),
 BenchmarkResult(0.19, 7.0, 1.4, 1.8137600540437842),
 BenchmarkResult(0.19, 8.0, 1.4, 2.0),
 BenchmarkResult(0.19, 9.0, 1.4, 2.166666666666667),
 BenchmarkResult(0.19, 10.0, 1.4, 2.0582232893157264),
 BenchmarkResult(0.19, 11.0, 1.4, 1.618573797678275),
 BenchmarkResult(0.19, 12.0, 1.4, 1.0956071099917664),
 BenchmarkResult(0.19, 13.0, 1.4, 1.7169329931516046),
 BenchmarkResult(0.19, 14.0, 1.4, 2.7930056710775046),
 BenchmarkResult(0.19, 15.0, 1.4, 2.8951160928742996),
 BenchmarkResult(0.19, 16.0, 1.4, 2.1395690499510285),
 BenchmarkResult(0.19, 17.0, 1.4, 1.0856905158069883),
 BenchmarkResult(0.19, 18.0, 1.4, 1.7400000000000002),
 BenchmarkResult(0.19, 19.0, 1.4, 1.1475903614457832),
 BenchmarkResult(0.19, 20.0, 1.4, 1.5),
 BenchmarkResult(0.2, 2.0, 1.4, 1.8044164037854888),
 BenchmarkResult(0.2, 3.0, 1.4, 1.8475836431226766),
 BenchmarkResult(0.2, 4.0, 1.4, 2.178409090909091),
 BenchmarkResult(0.2, 5.0, 1.4, 2.214538490361797),
 BenchmarkResult(0.2, 6.0, 1.4, 1.8103727714748785),
 BenchmarkResult(0.2, 7.0, 1.4, 1.1954758856167307),
 BenchmarkResult(0.2, 8.0, 1.4, 1.875),
 BenchmarkResult(0.2, 9.0, 1.4, 1.5689655172413794),
 BenchmarkResult(0.2, 10.0, 1.4, 1.5826650523466992),
 BenchmarkResult(0.2, 11.0, 1.4, 2.25974025974026),
 BenchmarkResult(0.2, 12.0, 1.4, 1.8911867964819573),
 BenchmarkResult(0.2, 13.0, 1.4, 2.2107409925220938),
 BenchmarkResult(0.2, 14.0, 1.4, 1.4859154929577465),
 BenchmarkResult(0.2, 15.0, 1.4, 1.15712),
 BenchmarkResult(0.2, 16.0, 1.4, 1.6576164279616807),
 BenchmarkResult(0.2, 17.0, 1.4, 3.585164835164835),
 BenchmarkResult(0.2, 18.0, 1.4, 1.6215698787492026),
 BenchmarkResult(0.2, 19.0, 1.4, 1.9168762123715786),
 BenchmarkResult(0.2, 20.0, 1.4, 1.650931934690491)]

X = [r.ITERATION_COUNT_MULTIPLIER for r in R]
Y = [r.AUTHORITATIVE_TIME for r in R]
Z = [r.time_overspent for r in R]

heatmap(X,Y,Z; size=(800,600))

results in:
newplot
and that can't be right, because for the bad column in the middle (at x=11),
it's y's are somehow offset by +0.05. As it can be seen from the repro, all y's are multiples of 0.1

Strangely, this does not work at all with GR/PythonPlot.

Version info

Please provide the following:

  1. output of julia command versioninfo()
julia> versioninfo()
Julia Version 1.10.5
Commit 613e91e85c (2024-09-06 18:17 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: 32 × AMD Ryzen 9 5950X 16-Core Processor
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, znver3)
Threads: 32 default, 0 interactive, 16 GC (on 32 virtual cores)
Environment:
  JULIA_NUM_THREADS = 32

  1. Output running the following in Julia 0.7 or greater: using Pkg; pkg"status" (if you are on Julia 0.6 or earlier run Pkg.status())
julia> using Pkg; pkg"status"
Status `~/.julia/environments/v1.10/Project.toml`
  [8f4d0f93] Conda v1.10.2
  [31c24e10] Distributions v0.25.111
  [f6369f11] ForwardDiff v0.10.36
  [7073ff75] IJulia v1.25.0
  [b6b21f68] Ipopt v1.6.6
  [4076af6c] JuMP v1.23.1
  [2fda8390] LsqFit v0.15.0
  [eff96d63] Measurements v2.11.0
  [961ee093] ModelingToolkit v9.37.1
  [7f7a1694] Optimization v3.28.0
  [3e6eede4] OptimizationBBO v0.3.0
  [36348300] OptimizationOptimJL v0.3.2
  [58dd65bb] Plotly v0.4.1
  [a03496cd] PlotlyBase v0.8.19
  [f0f68f2c] PlotlyJS v0.18.13
  [f2990250] PlotlyKaleido v2.2.4
  [91a5bcdd] Plots v1.40.8
  [92933f4c] ProgressMeter v1.10.2
  [276daf66] SpecialFunctions v2.4.0
  [1986cc42] Unitful v1.21.0

@LebedevRI
Copy link
Author

Hm, looking closer at the GR failure, this works:

heatmap(1:10, 1:10, rand(10,10))

but this fails:

julia> heatmap(1:10, 1:10, 1:10)
Error showing value of type Plots.Plot{Plots.GRBackend}:
ERROR: MethodError: no method matching heatmap_edges(::UnitRange{Int64}, ::Symbol, ::UnitRange{Int64}, ::Symbol, ::Tuple{Int64}, ::Bool)

Closest candidates are:
  heatmap_edges(::AbstractVector, ::Symbol, ::AbstractVector, ::Symbol, ::Tuple{Int64, Int64}, ::Bool)
   @ Plots ~/.julia/packages/Plots/kLeqV/src/utils.jl:265
  heatmap_edges(::AbstractVector, ::Symbol, ::AbstractVector, ::Symbol, ::Tuple{Int64, Int64})
   @ Plots ~/.julia/packages/Plots/kLeqV/src/utils.jl:265
  heatmap_edges(::AbstractVector, ::Symbol, ::Bool, ::Bool)
   @ Plots ~/.julia/packages/Plots/kLeqV/src/utils.jl:258
  ...


but sometimes it fails with

julia> heatmap(1:10, 1:10, 1:10)
ERROR: expected 2-D array
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] heatmap(x::UnitRange{Int64}, y::UnitRange{Int64}, z::UnitRange{Int64}, plt::GR.jlgr.PlotObject; kv::@Kwargs{})
   @ GR.jlgr ~/.julia/packages/GR/nDZgF/src/jlgr.jl:2285
 [3] heatmap(x::UnitRange{Int64}, y::UnitRange{Int64}, z::UnitRange{Int64}, plt::GR.jlgr.PlotObject)
   @ GR.jlgr ~/.julia/packages/GR/nDZgF/src/jlgr.jl:2273
 [4] top-level scope
   @ REPL[7]:1

So the issue is that plotly does not verify that Z is 2D.

@LebedevRI LebedevRI changed the title Heatmap graphical display bug Heatmap: missing check that Z is 2D array Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant