ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 09 Mar 2015 18:36:55 -0500List Density Plot?http://ask.sagemath.org/question/26121/list-density-plot/How can I make a 2-D density plot of a list of values in Sage?
I'd like to make something like this:
![Density map](http://pelican.rsvs.ulaval.ca/mediawiki/images/c/cf/Density_map.png)
([image source](http://pelican.rsvs.ulaval.ca/mediawiki/index.php/Making_density_maps_using_Gnuplot#Introduction))GeremiaMon, 09 Mar 2015 18:36:55 -0500http://ask.sagemath.org/question/26121/Overlaying plots in a specific orderhttp://ask.sagemath.org/question/8510/overlaying-plots-in-a-specific-order/I've got two plots: one is a density plot, one is a list plot. I'd like to combine the plots in such a way that the list plot is overlaid on top of the density plot, so the dots or visible. No matter what I do, it seems that the density plot is always in front and list plot is in back.
This isn't my code, but it appears to have the same behavior:
sage: x_coords = [cos(t)^3 for t in srange(0, 2*pi, 0.02)]
sage: y_coords = [sin(t)^3 for t in srange(0, 2*pi, 0.02)]
sage: h1 = list_plot(zip(x_coords, y_coords))
sage: x,y = var('x,y')
sage: h2 = density_plot(sin(x)*sin(y), (x, -2, 2), (y, -2, 2), cmap='jet')
sage: h1+h2
How can I make the list plot on top (or in general, specify the order of any combined plots)? JasonThu, 24 Nov 2011 11:51:40 -0600http://ask.sagemath.org/question/8510/