Commit daab818a authored by NUNEZ Arturo's avatar NUNEZ Arturo

Automatic commit vendredi 29 juin 2018, 16:30:02 (UTC+0200)

parent 6d18476e
......@@ -2726,44 +2726,44 @@
}
],
"source": [
" fig, ax = plt.subplots(2,1,gridspec_kw = {'height_ratios':[3.5, 1,3.5,1]},figsize=[6,11],sharex=True)\n",
" length=17\n",
" ax[0].set_ylim([-length,length]);ax[0].set_xlim([-length,length])\n",
" ax[1].set_ylim([-length,length]);ax[1].set_xlim([-length,length])\n",
"fig, ax = plt.subplots(2,1,gridspec_kw = {'height_ratios':[3.5, 1,3.5,1]},figsize=[6,11],sharex=True)\n",
"length=17\n",
"ax[0].set_ylim([-length,length]);ax[0].set_xlim([-length,length])\n",
"ax[1].set_ylim([-length,length]);ax[1].set_xlim([-length,length])\n",
"\n",
" SF1140_faceOn,edges= face_on_gs(myhalo,[-length,length],150,thikness=0.2)#H.T \n",
" print SF1140_faceOn.max()\n",
" mass_2 = ax[0].imshow(SF1140_faceOn+0.001, interpolation='nearest', origin='low',cmap='viridis',\n",
" extent=[edges[0], edges[-1], edges[0], edges[-1]],\n",
" norm=LogNorm(vmin=1e5,vmax=5e8)\n",
" )\n",
" \"\"\"\n",
" divider = make_axes_locatable(ax)\n",
" cax = divider.append_axes(\"right\", size=\"5%\", pad=0.05)\n",
" cbar = plt.colorbar(mass_2,cax=cax,label=r'mass [M$_{\\odot}$]')\n",
" \"\"\"\n",
" ax[0].text(-15,12,\"SF1\",fontsize=25,color='w')\n",
"SF1140_faceOn,edges= face_on_gs(myhalo,[-length,length],150,thikness=0.2)#H.T \n",
"print SF1140_faceOn.max()\n",
"mass_2 = ax[0].imshow(SF1140_faceOn+0.001, interpolation='nearest', origin='low',cmap='viridis',\n",
" extent=[edges[0], edges[-1], edges[0], edges[-1]],\n",
" norm=LogNorm(vmin=1e5,vmax=5e8)\n",
" )\n",
"\"\"\"\n",
"divider = make_axes_locatable(ax)\n",
"cax = divider.append_axes(\"right\", size=\"5%\", pad=0.05)\n",
"cbar = plt.colorbar(mass_2,cax=cax,label=r'mass [M$_{\\odot}$]')\n",
"\"\"\"\n",
"ax[0].text(-15,12,\"SF1\",fontsize=25,color='w')\n",
"\n",
"\n",
"\n",
"\n",
" SF1140_faceOn,edges= edge_on_gs(myhalo,[-length,length],150)#H.T \n",
" print SF1140_faceOn.max()\n",
" mass_2 = ax[1].imshow(SF1140_faceOn+0.001, interpolation='nearest', origin='low',cmap='viridis',\n",
" extent=[edges[0], edges[-1], edges[0], edges[-1]],\n",
" norm=LogNorm(vmin=1e5,vmax=5e8)\n",
" )\n",
"SF1140_faceOn,edges= edge_on_gs(myhalo,[-length,length],150)#H.T \n",
"print SF1140_faceOn.max()\n",
"mass_2 = ax[1].imshow(SF1140_faceOn+0.001, interpolation='nearest', origin='low',cmap='viridis',\n",
" extent=[edges[0], edges[-1], edges[0], edges[-1]],\n",
" norm=LogNorm(vmin=1e5,vmax=5e8)\n",
" )\n",
"\n",
" ax[0].set_ylabel(\"Kpc\",fontsize=15)\n",
" ax[1].set_xlabel(\"Kpc\",fontsize=15)\n",
" #divider = make_axes_locatable(fig)\n",
" #cax = divider.append_axes(\"right\", size=\"5%\", pad=0.05)\n",
" #cbar = plt.colorbar(mass_2,cax=cax,label=r'mass [M$_{\\odot}$]')\n",
" fig.tight_layout(h_pad=-1,w_pad=5,)\n",
" fig.colorbar(mass_2, ax=ax.ravel().tolist(),label=r'mass [M$_{\\odot}$]')\n",
"ax[0].set_ylabel(\"Kpc\",fontsize=15)\n",
"ax[1].set_xlabel(\"Kpc\",fontsize=15)\n",
"#divider = make_axes_locatable(fig)\n",
"#cax = divider.append_axes(\"right\", size=\"5%\", pad=0.05)\n",
"#cbar = plt.colorbar(mass_2,cax=cax,label=r'mass [M$_{\\odot}$]')\n",
"fig.tight_layout(h_pad=-1,w_pad=5,)\n",
"fig.colorbar(mass_2, ax=ax.ravel().tolist(),label=r'mass [M$_{\\odot}$]')\n",
"\n",
" #cbar_ax = fig.add_axes([0.85, 0.15, 0.05, 0.7])\n",
" #fig.colorbar(mass_2, cax=cbar_ax)"
"#cbar_ax = fig.add_axes([0.85, 0.15, 0.05, 0.7])\n",
"#fig.colorbar(mass_2, cax=cbar_ax)"
]
},
{
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment