Heatmap does not display
Opened this issue · 3 comments
tallakt commented
The following code produces a blank image
using Plots
using KittyTerminalImages
heatmap(rand(10,10))
Packages
(@v1.5) pkg> status
Status `~/.julia/environments/v1.5/Project.toml`
[336ed68f] CSV v0.7.7
[3abffc1c] ControlSystemIdentification v0.1.4
[a6e380b2] ControlSystems v0.6.0
[717857b8] DSP v0.6.7
[a93c6f00] DataFrames v0.21.6
[0c46a032] DifferentialEquations v6.15.0
[7a1cc6ca] FFTW v1.2.2
[cd3eb016] HTTP v0.8.17
[82e4d734] ImageIO v0.3.0
[6218d12a] ImageMagick v1.1.5
[41391dba] InfluxDB v0.1.0 `git@github.com:tallakt/InfluxDB.jl.git#master`
[a98d9a8b] Interpolations v0.12.10
[682c06a0] JSON v0.21.0
[6aa33ec8] KiteDesignOptimizer v0.1.0 `/Users/tallakt/Documents/forsøk/design_optimizer/KiteDesignOptimizer#master`
[b7fa5abe] KittyTerminalImages v0.2.0 `https://github.com/simonschoelly/KittyTerminalImages.jl#master`
[b964fa9f] LaTeXStrings v1.1.0
[23992714] MAT v0.8.0
[429524aa] Optim v0.22.0
[91a5bcdd] Plots v1.5.8
[295af30f] Revise v2.7.3
[6038ab10] Rotations v1.0.1
[84bd532e] STM32Parser v0.1.4 `/Users/tallakt/Documents/GitHub/STM32Parser.jl#master`
[066c0967] STMParser2 v0.1.0 `/Users/tallakt/Documents/GitHub/STMParser2#master`
[3ff8a2d4] StackedPlot v0.1.0 `https://github.com/tallakt/StackedPlot.git#master`
[2913bbd2] StatsBase v0.33.0
[e5494a8a] TetherNumerical v0.1.12 `/Users/tallakt/Documents/GitHub/TetherNumerical.jl#master`
[ade2ca70] Dates
Julia version 1.5
simonschoelly commented
Thanks for reporting.
The problem seems to be that svg rendering somehow does not work correctly -- png rendering works. Unfortunately, KittyTerminalImages prefers to display svgs if it is indicated that an object can be displayed as an svg.
I will have to investige if that is an issue with this package or with Plots.jl
or GR.jl
.
tallakt commented
At least now I have a workaround.
simonschoelly commented
The issue seems somehow have to with rendering the svg with Rsvg.jl but I still have not been able to figure it out. I the meantime I changed this package so that the it prefers PNGs to SVGs by default - the disadvantage is, that PNGs that get scaled may appear a bit blurry.