Hi Florian, There isn't yet a mechanism for this. You can add it, if you like, in the file yt/raven/Callbacks.py file, by modifying the edgecolors argument to the PolyCollection call inside the GridBoundaryCallback definition; you might be able to scale it using the plot.cmap attribute, but I'm not sure on that. If I get a chance, I'll try to take a look at adding it myself this weekend. Also, it might be a bit easier (if you're on 1.5 or above) to use this notation for adding this callback: p = pc.add_slice("Density", 1) p.modify["grids"]() which is a bit terser. :) You can see what callbacks are available by doing: "print p.modify.keys()" -Matt On Tue, Aug 18, 2009 at 9:15 AM, Florian Pajnik<fpajnik@physik.uni-wuerzburg.de> wrote:
Hallo Matt !
I use p = pc.add_slice("Density", 1) ; p.add_callback(GridBoundaryCallback()) to plot the gridstructure. Is there a way so that the grids a coloured according to their refinement level ? Thank's a lot,
Florian
participants (1)
-
Matthew Turk