Visualisation problems
Hey, I have two question about visualisation options: (1) Is there a way of changing the colour of the contour, when it's used as a plot modification? I've tried: p.modify['contour']('NumberDensity', ncont=1, clim=[90,110], plot_args=dict(color='white', linewidths=3)) But no matter what I set 'color' all I get is purple! (2) When yt is used to create a grid of images via: p = pc.add_projection("Density", 2, center=na.array([x[i],y[i],16.]), figure=fig, axes=axes[0][i], use_colorbar=False) is there a way to add a space or a thicker border between the images? Currently, the images are quite dark and the border is black, so they run into each other a bit. Thanks! Elizabeth
Hi Elizabeth, Sorry your email passed by! I've replied inline. On Tue, Mar 19, 2013 at 8:29 PM, Elizabeth Tasker <tasker@astro1.sci.hokudai.ac.jp> wrote:
Hey,
I have two question about visualisation options:
(1) Is there a way of changing the colour of the contour, when it's used as a plot modification? I've tried:
p.modify['contour']('NumberDensity', ncont=1, clim=[90,110], plot_args=dict(color='white', linewidths=3))
But no matter what I set 'color' all I get is purple!
Hmm. The arguments to plot_args get sent directly to matplotlib's contour command: http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.contour I think it might be "colors" and not "color".
(2) When yt is used to create a grid of images via:
p = pc.add_projection("Density", 2, center=na.array([x[i],y[i],16.]), figure=fig, axes=axes[0][i], use_colorbar=False)
is there a way to add a space or a thicker border between the images? Currently, the images are quite dark and the border is black, so they run into each other a bit.
Yes, but you need to do that manually when you create the axes[i][j] objects you're feeding in. If you're doing it via the multiplot commands in yt, it's probably not going to happen. But if you do it manually via something like axes_grid, or jjust by manually creating the axes inside a figure, it will be easier to adjust. -Matt
Thanks!
Elizabeth _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (2)
-
Elizabeth Tasker
-
Matthew Turk