Skip to content

Commit

Permalink
Merge pull request yt-project#3982 from chrishavlin/docs_particle_fix
Browse files Browse the repository at this point in the history
[BUG] Fix broken annotate_particles example
  • Loading branch information
matthewturk authored and neutrinoceros committed Aug 8, 2022
1 parent 25d7303 commit 6b149ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/source/visualizing/callbacks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ To plot only the central particles

ds = yt.load("Enzo_64/DD0043/data0043")
p = yt.ProjectionPlot(ds, "x", ("gas", "density"), center="m", width=(10, "Mpc"))
sp = ds.sphere([0.5, 0.5, 0.5], ds.quan(1, "Mpc"))
sp = ds.sphere(p.data_source.center, ds.quan(1, "Mpc"))
p.annotate_particles((10, "Mpc"), data_source=sp)
p.save()

Expand Down

0 comments on commit 6b149ae

Please sign in to comment.