<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Hi everyone
<div><br>
</div>
<div>I am trying to make a multi plot using data from Ramses. I have outputs from Ramses at 6 different times and I want to make projections at each time and place than in a multi plot to show evolution of the system. However when the code that I have written
gives the results below. </div>
<div><br>
</div>
<div><br>
</div>
<div><img height="211" width="320" apple-width="yes" apple-height="yes" apple-inline="yes" id="2C356412-7471-4C55-89F9-97FEB2867DD3" src="cid:F88B06FF-D341-4589-9FD2-C8BEF5BE7CE8@surrey.ac.uk"></div>
<div><br>
</div>
<div><br>
</div>
<div>Can anyone offer any suggestions as to wear my code is going wrong?</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>Kearn</div>
<div><br>
</div>
<div>The code I’m using ( the for dax lines have been commented out because every time they are included I get the error at the bottom) </div>
<div><br>
</div>
<div>
<div>from yt.mods import * # set up our namespace</div>
<div>import matplotlib.colorbar as cb</div>
<div>from matplotlib.colors import LogNorm</div>
<div><br>
</div>
<div>p1 = load("output_00001/info_00001.txt")</div>
<div>p2 = load("output_00002/info_00002.txt")</div>
<div>p3 = load("output_00003/info_00003.txt")</div>
<div>p4 = load("output_00004/info_00004.txt")</div>
<div>p5 = load("output_00005/info_00005.txt")</div>
<div>p6 = load("output_00006/info_00006.txt")</div>
<div><br>
</div>
<div>cen = [0,0,0]</div>
<div>orient = 'vertical'</div>
<div><br>
</div>
<div>fig, axes, colorbars = get_multi_plot(3, 2, colorbar=orient, bw = 4)</div>
<div>proj1 = p1.h.proj(2, "Density", center=cen)</div>
<div>proj2 = p2.h.proj(2, "Density", center=cen)</div>
<div>proj3 = p3.h.proj(2, "Density", center=cen)</div>
<div>proj4 = p4.h.proj(2, "Density", center=cen)</div>
<div>proj5 = p5.h.proj(2, "Density", center=cen)</div>
<div>proj6 = p6.h.proj(2, "Density", center=cen)</div>
<div><br>
</div>
<div>proj1_frb = proj1.to_frb((0.7,"cm"),512) </div>
<div>proj2_frb = proj2.to_frb((0.7,"cm"),512) </div>
<div>proj3_frb = proj3.to_frb((0.7,"cm"),512) </div>
<div>proj4_frb = proj4.to_frb((0.7,"cm"),512) </div>
<div>proj5_frb = proj5.to_frb((0.7,"cm"),512) </div>
<div>proj6_frb = proj6.to_frb((0.7,"cm"),512) </div>
<div><br>
</div>
<div>dens_axes = [axes[0][0], axes[1][0]]</div>
<div><br>
</div>
<div>#for dax in zip(dens_axes) :</div>
<div><br>
</div>
<div># dax.xaxis.set_visible(False)</div>
<div># dax.yaxis.set_visible(False)</div>
<div><br>
</div>
<div>plots = [dens_axes[0].imshow(proj1_frb["Density"],origin ='lower'), </div>
<div> dens_axes[0].imshow(proj2_frb["Density"],origin ='lower'),</div>
<div> dens_axes[0].imshow(proj3_frb["Density"],origin ='lower'),</div>
<div> dens_axes[0].imshow(proj4_frb["Density"],origin ='lower'),</div>
<div> dens_axes[0].imshow(proj5_frb["Density"],origin ='lower'),</div>
<div> dens_axes[0].imshow(proj6_frb["Density"],origin ='lower')]</div>
<div><br>
</div>
<div>plots[0].set_clim((0.0,0.34))</div>
<div>plots[0].set_cmap("YlOrRd")</div>
<div>plots[1].set_clim((0.0,0.345))</div>
<div>plots[1].set_cmap("YlOrRd")</div>
<div>plots[2].set_clim((0.0,0.34))</div>
<div>plots[2].set_cmap("YlOrRd")</div>
<div>plots[3].set_clim((0.0,0.34))</div>
<div>plots[3].set_cmap("YlOrRd")</div>
<div>plots[4].set_clim((0.0,0.34))</div>
<div>plots[4].set_cmap("YlOrRd")</div>
<div>plots[5].set_clim((0.0,0.34))</div>
<div>plots[5].set_cmap("YlOrRd")</div>
<div><br>
</div>
<div>fig.savefig("test”)</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>error: </div>
<div><br>
</div>
<div>Traceback (most recent call last):</div>
<div> File "plotterm2.py", line 34, in <module></div>
<div> dax.xaxis.set_visible(False)</div>
<div>AttributeError: 'tuple' object has no attribute 'xaxis'</div>
</body>
</html>