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: seems to handle non-square maps poorly #487

Open
LebedevRI opened this issue Sep 10, 2024 · 0 comments
Open

Heatmap: seems to handle non-square maps poorly #487

LebedevRI opened this issue Sep 10, 2024 · 0 comments

Comments

@LebedevRI
Copy link

Describe the bug

repro
using Plots
X = [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
Y = [0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08, 0.09, 0.1]
Z = Any[1.684546606428003 1.6019863721854912 1.5311535611260816 1.4958706666881894 1.5496668046601456 1.6323724201129486 1.5834958326179036 1.5612945221190409 1.620878647109812 1.6389231376647313; 1.6185526080115862 1.5744134685825464 1.604266244857568 1.5069695775449572 1.5387460330673066 1.5512130384649678 1.5539697019377499 1.6089187867886188 1.72552344604062 1.7083534626669756; 1.6070885916817654 1.5759943427860943 1.4971683661960693 1.6277712651702074 1.6037305543768343 1.594010359054599 1.6932838080874473 1.717719890677844 1.7217683278141258 1.7784729582811065; 1.5988654997167473 1.5955243161580812 1.442519104465148 1.5368784328892235 1.522679724921123 1.6205946069666637 1.7274209711842792 1.7627255243612134 1.8461774591961435 1.8880102350381551; 1.660447720214129 1.511595178338966 1.5046177970629024 1.5642116204060363 1.6079958098876959 1.6691728876534708 1.7556749823088733 1.8038303839717165 1.9142692999912838 2.0301391827066695; 1.5400208385200567 1.549262985404913 1.540239470935162 1.6282525884669958 1.65963712310196 1.7633076462277206 1.8259307524993982 1.9682458747876557 2.0035682236068078 2.103288467105192; 1.5254846497854357 1.5515509524397217 1.6176329015298443 1.6305859959539146 1.7328056452240554 1.8064120368350771 1.8888175289283684 2.029194231399353 2.107537451210512 2.2294450790536353; 1.5661255912012306 1.5914097587144342 1.5505207883276038 1.7157380917206317 1.714823157435668 1.8730176188867071 1.9879101440054903 2.0928890440963075 2.2198834800987566 2.3497448680367197; 1.5840874538764755 1.5298912262640234 1.6382819763272964 1.717803102579833 1.8298753757751183 1.9395810049917637 2.032573103936236 2.181043044262758 2.2988606126342646 2.449500595123666; 1.6245092540469332 1.5727092717779603 1.6375393328585517 1.7290027547254927 1.8601383007879835 2.0079473242115893 2.1108546236302157 2.2704812452452434 2.403918289708982 2.4121596071467093; 1.663129856538585 1.616060758836459 1.6313301298832947 1.778846791835103 1.879463651824574 2.0612583649085523 2.1706474949734758 2.3123242305225364 2.4168840450821554 2.4067305719105003; 1.6250665178153656 1.6199504001471807 1.717485083218524 1.8013258116813107 1.9951839391212574 2.119610882748694 2.2817920439847446 2.3653291123516884 2.383188946927458 2.398080029754985; 1.5939025754157268 1.635616916277271 1.6479962730569755 1.883705358158919 2.0348718121505756 2.163655185740433 2.3576110246497013 2.3584867078791296 2.3392380841486933 2.392210304767542; 1.6173911142857642 1.6215667150952644 1.7245920488933073 1.8834067495982787 2.067307979978824 2.2337791791022017 2.410148531859091 2.404804868502919 2.3789472517372836 2.3820159360787865; 1.6105478639233561 1.6548745882149287 1.7500514451272107 1.8875498054857762 2.0786009730712363 2.3322466152082275 2.367395485215887 2.360032764621845 2.368240263364913 2.3483659288861594; 1.5934464983379768 1.6556148809642555 1.811678060452694 1.996439093439329 2.1851023959719464 2.354938126014114 2.3653689915966267 2.3579550986571585 2.3468028737347444 2.329145241038463; 1.6350499859651846 1.7015707571442529 1.8498976146683355 2.0282310233987597 2.215660943383953 2.332902397921121 2.3286475819836223 2.341782080419441 2.34042048703592 2.4169973445472723; 1.6320378066034358 1.6831620892324435 1.833883587673916 2.0473167566606114 2.2922938734950957 2.358555078110044 2.280784068654644 2.2981010736231626 2.3111369761227807 2.394620587389853; 1.6453309213103808 1.7077479534143394 1.8289667534926346 2.1319607497065274 2.2895898981868847 2.3095885851142013 2.2749808413767174 2.310046404672394 2.342175997215059 2.430262014337018]
plotlyjs()
heatmap(X,Y,Z; size=(2*800,800))

results in:
newplot
~Half of the map seems to not be drawn.

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
  [a93c6f00] DataFrames v1.6.1
  [31c24e10] Distributions v0.25.111
  [f6369f11] ForwardDiff v0.10.36
  [28b8d3ca] GR v0.73.7
  [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.38.0
  [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
  [274fc56d] PythonPlot v1.0.5
  [276daf66] SpecialFunctions v2.4.0
  [2913bbd2] StatsBase v0.34.3
  [1986cc42] Unitful v1.21.0
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