I’ve been generating phase plot data and overlaying other lines using matplotlib and I noticed that passing the profile data as is into pcolormesh results in a flipped plot. In order to get the correct image, I find that I need to
do a transpose to the 2-d array before passing it to pcolormesh.
Is this the desired behavior?
Just a snippet of what I’m doing.
p2d = sph.profile(['density','magnetic_field_magnitude’],['cell_mass'],weight_field=None)
C = p2d['cell_mass'].in_units('Msun’)
#C = p2d['cell_mass'].in_units('Msun’).transpose()
<- I have to do this to get it right
fig = plt.figure(figsize=(8,6))
ax = fig.add_subplot(111)