Skip to content

Adding interpolated heatmaps to Plots.jl via a pcolor recipe

License

Notifications You must be signed in to change notification settings

mdmaas/PColorPlot.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PColorPlot.jl

Adding interpolated heatmaps to Plots.jl via a pcolor recipe

usage:

# All this works now
pcolor(x, y, data)
pcolor(x, y, data, interpolate = true)
pcolor(data, interpolate = true)
pcolor(data)

Example

This is the standard heatmap

data = rand(15,10)
pcolor(data)

pcolor_no_interp

Plotting the same data, using pcolor with interpolation:

pcolor(data, interpolate=:true)

pcolor_with_interp

TO DO:

  • Currently we interpolate the data to the size of the whole figure, not just the plotarea, including axis, labels, more subplots if this is a layout, etc. This is slightly inefficient and should be fixed in the future, however I don't know how to do it, sice the when plot recipe gets called I believe it doesn't have access to the layout information.
  • Either register package or merge into Plots.jl ?

About

Adding interpolated heatmaps to Plots.jl via a pcolor recipe

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages