[yt-users] data_source=region

Shankar Agarwal agarwalshankar at gmail.com
Thu Aug 6 06:38:38 PDT 2015


Hi,

http://yt-project.org/doc/cookbook/complex_plots.html#thin-slice-projections

Is it possible to create a thin slice projection of particles (instead of
density)?


I tried the following three methods but get errors:

1. p = yt.ParticlePlot(ds, 2, ['particle_mass'], data_source=region)

TypeError: __init__() got multiple values for keyword argument 'data_source'


2. p = yt.ParticleProjectionPlot(ds, 2, ['particle_mass'],
data_source=region)

finfo = self.ds._get_field_info("unknown", fname)


3. p = yt.ProjectionPlot(ds, 2, ['particle_mass'], data_source=region)

  File
"/home/sagarwal/codes/yt/yt-x86_64/src/yt-hg/yt/visualization/plot_window.py",
line 1429, in __init__
    field_parameters = field_parameters, method = method)
  File
"/home/sagarwal/codes/yt/yt-x86_64/src/yt-hg/yt/data_objects/construction_data_containers.py",
line 253, in __init__
    field = self._determine_fields(ensure_list(field))
  File
"/home/sagarwal/codes/yt/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py",
line 518, in _determine_fields
    finfo = self.ds._get_field_info("unknown", fname)


Shankar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20150806/6b60c228/attachment.htm>


More information about the yt-users mailing list