[Matplotlib-users] Display a scalar as color over a surface

2015-01-17 Thread Philippe Piot
Hello All, I have a scalar function (a potential) defined on a 3-dimensional cartesian space V(x,y,z) and an arbitrary surface (a boundary) set by the function f(x,y,z)=a. I would like to paint the value of V(x,y,z) on the surface defined by f in the (x,y,z) domain. Specifically I was thinking

[Matplotlib-users] manipulating histogram data from hist function

2010-12-27 Thread Philippe Piot
Hello All, I am trying to produce a 2D density plot of a distribution and would like to show the associated projection computed as histogram. I need to perform an operation on the histogram to offset them. Right now I am doing this: # plot my 2D distribution hexbin(x,y, cmap=cm.jet, bins='l