Pastebin
Paste #2825: No description
< previous paste - next paste>
Pasted by Anonymous Coward
TypeError Traceback (most recent call last) <ipython-input-100-9e152535d13b> in <module>() 2 'Density','VelocityMagnitude','AngularVelocity', 3 'MachNumber', 'Temperature', 'RadialVelocity', ----> 4 'AzVel','KepVelDiff'], x_log = False, x_bins=int(2.*R/(resolution)), y_log=False, y_bins=int(2.*H/resolution)) /home1/10000/comp/lib/yt-x86_64/src/yt-hg/yt/visualization/plot_collection.pyc in add_phase_sphere(self, radius, unit, fields, center, cmap, weight, accumulation, x_bins, x_log, x_bounds, y_bins, y_log, y_bounds, lazy_reader, id, axes, figure, fractional) 1280 x_bins, x_log, x_bounds, 1281 y_bins, y_log, y_bounds, -> 1282 lazy_reader, id, axes=axes, figure=figure, fractional=fractional) 1283 p["Width"] = radius 1284 p["Unit"] = unit /home1/10000/comp/lib/yt-x86_64/src/yt-hg/yt/visualization/plot_collection.pyc in add_phase_object(self, data_source, fields, cmap, weight, accumulation, x_bins, x_log, x_bounds, y_bins, y_log, y_bounds, lazy_reader, id, axes, figure, fractional) 1172 p = self._add_plot(PhasePlot(profile, fields, 1173 id, cmap=cmap, -> 1174 figure=figure, axes=axes)) 1175 return p 1176 /home1/10000/comp/lib/yt-x86_64/src/yt-hg/yt/visualization/plot_types.pyc in __init__(self, data, fields, id, ticker, cmap, figure, axes) 803 self._log_y = self.data._y_log 804 self._log_z = self.setup_bins(self.fields[2]) --> 805 self.__init_colorbar() 806 807 def _run_callbacks(self): /home1/10000/comp/lib/yt-x86_64/src/yt-hg/yt/visualization/plot_types.pyc in __init_colorbar(self) 819 temparray, shading='flat', 820 norm=self.norm, cmap=self.cmap, --> 821 rasterized=True) 822 self.colorbar = self._figure.colorbar(self.image, 823 extend='neither', shrink=0.95, /home1/10000/comp/lib/yt-x86_64/lib/python2.7/site-packages/matplotlib-1.3.0-py2.7-linux-x86_64.egg/matplotlib/axes.pyc in pcolormesh(self, *args, **kwargs) 7732 allmatch = (shading == 'gouraud') 7733 -> 7734 X, Y, C = self._pcolorargs('pcolormesh', *args, allmatch=allmatch) 7735 Ny, Nx = X.shape 7736 /home1/10000/comp/lib/yt-x86_64/lib/python2.7/site-packages/matplotlib-1.3.0-py2.7-linux-x86_64.egg/matplotlib/axes.pyc in _pcolorargs(funcname, *args, **kw) 7374 raise TypeError('Dimensions of C %s are incompatible with' 7375 ' X (%d) and/or Y (%d); see help(%s)' % ( -> 7376 C.shape, Nx, Ny, funcname)) 7377 C = C[:Ny-1, :Nx-1] 7378 return X, Y, C TypeError: Dimensions of C (110, 37) are incompatible with X (110) and/or Y (37); see help(pcolormesh)
New Paste
Go to most recent paste.