Compute temp/partial and compute temp/profile have nothing to do with each other.
Compute temp/profile is not doing anything special with the y dimension. It is using
all dimensions (x,y,z) which may not be what you want.
There is a Note on the compute temp/profile doc page about degrees of freedom within
each bin, which can affect the temperatures you measure. Also see that doc page comments
about subtracting out the center-of-mass velocity, which again may not be what you want
given that you are shearing and compressing.
Finally, you can dump all particles coords and velocities to a file. You can then post-process
them anyway you wish to compute a temperature profile, or verify that compute temp/profile
is computing what the doc page says it is.