# MethodError: no method matching heatmap\_edges(::RecipesPipeline.Surface{Matrix{Float64}}, ::Symbol)

**URL:** https://discourse.julialang.org/t/methoderror-no-method-matching-heatmap-edges-recipespipeline-surface-matrix-float64-symbol/111938
**Category:** Visualization
**Tags:** plots
**Created:** [March 21, 2024, 4:07pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-heatmap-edges-recipespipeline-surface-matrix-float64-symbol/111938 "2024-03-21T16:07:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![raman\_kumar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raman_kumar/32/26782_2.png) [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)
#### Post date: [March 21, 2024, 4:07pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-heatmap-edges-recipespipeline-surface-matrix-float64-symbol/111938/1 "2024-03-21T16:07:26Z")

</div>

I am getting `MethodError: no method matching heatmap_edges(::RecipesPipeline.Surface{Matrix{Float64}}, ::Symbol)`

 ![image](https://global.discourse-cdn.com/julialang/original/3X/1/2/1298723c74eeb6cc07d3918885a826aaeb6a3925.png)

My code is 🫤

```julia
begin
	# Create the plot
	plot()
	# Define colormap
	colormap = :jet
	# Define color range for density plot
	vmin = 1e-8
	vmax = 1e-2
	
	# Create density plot
	print(size(rho[1,:,:] .* v_p[1,:,:]))
	density2 = heatmap!(x,z,rho[1,:,:].* v_p[1,:,:] , clim=(log(vmin), log(vmax)), xlabel="X", ylabel="Z", title="Density vs X-Z")
	
	# Create contour plot
	cont = contour!(density2, linecolor=:red, linewidth=4)
	#cbr = colorbar(density, label=L"\mathbf{\rm{log}_{10}(\rho{\rm v_p})}", 
	   #ticks=[log10(vmin), 0, log10(vmax)], ticklabels=["$vmin", "1", "$vmax"])
	#savefig("plot.png")
	plot(cont)
end

```

 ![image](https://global.discourse-cdn.com/julialang/original/3X/1/7/17433fcc774310bd8f6dcabcde738ccd05572bb3.png)  
What can i do with `x,y` , it works fine in Python.
