JuliaPlots / InspectDR.jl

Fast, interactive Julia/GTK+ plots (+Smith charts +Gtk widget +Cairo-only images)
MIT License
68 stars 9 forks source link

support heatmap? #3

Closed AStupidBear closed 7 years ago

ma-laforge commented 7 years ago

Thanks for the interest.

At the moment, I am not planning on supporting heatmap. Most of my work involves processing large datasets where y=f(x) - like time-domain simulation data.

InspectDR was built because I found most other backends were too slow/not interactive enough for my own needs.

Most of my (rare) heatmap needs are actually satisfied with other backends: I don't need to display heatmap datasets that are particularly large - nor do I need to generate them that often. In those cases, I would resort to PyPlot or something similar.

Alternative

InspectDR.jl supports the :shape construct from Plots.jl, so it might be possible to implement a Plots.jl "recipe" to generate heatmaps on any backend that does not natively support them (including InspectDR)...

...The part I am unsure about is whether the recipe could successfully generate a legend...

ma-laforge commented 7 years ago

Just out of curiosity: Why would you want heatmaps with InspectDR?

Is there some other reason??

AStupidBear commented 7 years ago

Yes, I prefer the mouse/keyboard interactivity.

ma-laforge commented 4 years ago

Just added support for heatmaps on master branch.

See sample/demo14.jl for example.

Will be tagging a new release in the Julia registry soon.