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 does not display #4

Open
tallakt opened this issue Sep 1, 2020 · 3 comments
Open

Heatmap does not display #4

tallakt opened this issue Sep 1, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@tallakt
Copy link

tallakt commented Sep 1, 2020

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 simonschoelly added the bug Something isn't working label Sep 11, 2020
@simonschoelly
Copy link
Owner

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.

image

@tallakt
Copy link
Author

tallakt commented Sep 11, 2020

At least now I have a workaround.

@simonschoelly
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants