Issue #1337: annotate_scale does not work for non-unity aspect ratio (yt_analysis/yt)

March 21, 2017
6:09 p.m.
New issue 1337: annotate_scale does not work for non-unity aspect ratio https://bitbucket.org/yt_analysis/yt/issues/1337/annotate_scale-does-not-wor... Hsi-Yu Schive: The annotate_scale() function does not work when the aspect ratio is not unity. Example code: ``` #!python import yt from yt.units import kpc ds = yt.load("IsolatedGalaxy/galaxy0030/galaxy0030") slc = yt.SlicePlot(ds, 'z', 'density', center=[0.5, 0.5, 0.5], width=(15*kpc,20*kpc)) slc.annotate_scale(coeff=2.0, unit='kpc', pos=(0.1,0.1)) slc.save() ``` The code works fine when changing the width to (20\*kpc,20\*kpc).
2896
Age (days ago)
2896
Last active (days ago)
0 comments
1 participants
participants (1)
-
Hsi-Yu Schive