Hi Brian,
Hello everyone, could someone tell me how to plot a sphere in a color other than
black? I've got this much working: p.modify['sphere']((x,y,z), radius, ) to plot a sphere at x, y, z of radius radius, but I cannot seem to succeed in changing the color.
It's not obvious how to do this. You need to make a dict with the properties of
the circle you want, taken from here:
http://matplotlib.sourceforge.net/api/artist_api.html?highlight=circle#matpl...
(if broken above)
http://tinyurl.com/2vtbwqr
Here's example of a session where I made the attached image.
In [1]: pf = load("data0111")
In [2]: pc = PlotCollection(pf)
yt INFO 2010-09-18 21:04:13,555 Getting the binary hierarchy
yt INFO 2010-09-18 21:04:13,569 Finished with binary hierarchy
reading
yt.lagos INFO 2010-09-18 21:04:13,842 Max Value is 2.81423e-26 at
0.5100097656250000 0.4914550781250000 0.5051269531250000 in grid EnzoGrid_0060
at level 4 (8, 8, 10)
yt INFO 2010-09-18 21:04:13,842 Created plot collection with
default plot-center = [0.510009765625, 0.491455078125, 0.505126953125]
In [3]: pc.add_projection("Density", 0)
Out[3]: