From 1cbfc7230def453093717737f03738a26e89b3ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Sun, 23 Jul 2023 18:07:36 +0200 Subject: [PATCH] Backport PR #4592: Docs fixes --- doc/source/cookbook/fits_xray_images.ipynb | 1 + doc/source/examining/Loading_Generic_Particle_Data.ipynb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/source/cookbook/fits_xray_images.ipynb b/doc/source/cookbook/fits_xray_images.ipynb index 9124658317d..edcc7c52951 100644 --- a/doc/source/cookbook/fits_xray_images.ipynb +++ b/doc/source/cookbook/fits_xray_images.ipynb @@ -157,6 +157,7 @@ " field_parameters={\"exposure_time\": exposure_time},\n", ")\n", "slc.set_log((\"fits\", \"flux\"), True)\n", + "slc.set_zlim((\"fits\", \"flux\"), 1e-5)\n", "slc.set_log((\"gas\", \"pseudo_pressure\"), False)\n", "slc.set_log((\"gas\", \"pseudo_entropy\"), False)\n", "slc.set_width(250.0)\n", diff --git a/doc/source/examining/Loading_Generic_Particle_Data.ipynb b/doc/source/examining/Loading_Generic_Particle_Data.ipynb index fbde73d8c9d..2212c69fff4 100644 --- a/doc/source/examining/Loading_Generic_Particle_Data.ipynb +++ b/doc/source/examining/Loading_Generic_Particle_Data.ipynb @@ -78,7 +78,7 @@ " [[min(ppx), max(ppx)], [min(ppy), max(ppy)], [min(ppz), max(ppz)]]\n", ")\n", "\n", - "ds = yt.load_particles(data, length_unit=parsec, mass_unit=1e8 * Msun, bbox=bbox)" + "ds = yt.load_particles(data, length_unit=1.0 * parsec, mass_unit=1e8 * Msun, bbox=bbox)" ] }, { @@ -184,7 +184,7 @@ "}\n", "\n", "ds2 = yt.load_particles(\n", - " data2, length_unit=parsec, mass_unit=1e8 * Msun, n_ref=256, bbox=bbox\n", + " data2, length_unit=1.0 * parsec, mass_unit=1e8 * Msun, n_ref=256, bbox=bbox\n", ")" ] },