[Thread Prev][Thread Next][Index]
Re: [ferret_users] irregular font sizes for legend
- To: William Kessler - NOAA Federal <william.s.kessler@xxxxxxxx>
- Subject: Re: [ferret_users] irregular font sizes for legend
- From: Ansley Manke <a.c.manke@xxxxxxxxx>
- Date: Thu, 25 Aug 2022 12:19:24 -0700
- Arc-authentication-results: i=4; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HmdwxSu8; arc=pass (i=2 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of a.c.manke@xxxxxxxxx designates 209.85.128.199 as permitted sender) smtp.mailfrom=a.c.manke@xxxxxxxxx
- Arc-authentication-results: i=3; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HmdwxSu8; arc=pass (i=2 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of a.c.manke@xxxxxxxxx designates 209.85.128.199 as permitted sender) smtp.mailfrom=a.c.manke@xxxxxxxxx
- Arc-authentication-results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HmdwxSu8; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of a.c.manke@xxxxxxxxx designates 209.85.220.41 as permitted sender) smtp.mailfrom=a.c.manke@xxxxxxxxx
- Arc-authentication-results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HmdwxSu8; spf=pass (google.com: domain of a.c.manke@xxxxxxxxx designates 209.85.220.41 as permitted sender) smtp.mailfrom=a.c.manke@xxxxxxxxx; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
- Arc-message-signature: i=4; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-archive:list-help:list-post:list-id:mailing-list:precedence :in-reply-to:content-language:references:cc:to:subject:from :user-agent:mime-version:date:message-id:sender:dkim-signature; bh=+BDrCMqQG4yggFtaku1NSRMSmBzx1yoddfOrRyd2NFA=; b=t7hwge3jjhiWc2y5wki6/TL1ysBstG3GBsHhPxD+NM+AZD7kYP5yTXQlCjpvLL2YwM Hi2LiTO3TK8Cupw1oQcNId7ruTXClAbbjAj7v0dcUrZ1z2UBuSRWah7VSfJfX54AbAPp +Mllpoju5G6mRcGaV1QhrN49TXPaui+p8oUTR1QmYyJx+e58+6V13iq7pXD0T/c1l68z 22GTHy6YiPgp7nH0xFsts3Gf/0xRpug5vPWKdcRgZbbIGrUwEk8u1kym+Q9GXONBGJrR 3mAe1ni/mA2akx3a+1IBJmwRuXEEQFzaMpSN8UlutOP0CToLJNzZuZCImade9ETEFfQM X3ng==
- Arc-message-signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-language:references:cc:to:subject:from :user-agent:mime-version:date:message-id:dkim-signature; bh=+BDrCMqQG4yggFtaku1NSRMSmBzx1yoddfOrRyd2NFA=; b=y2yqEJ/Kogj0eUmFtGVSIFrtT/kMoLIBvoPByYgR4Zx57axOdW8W+4AVixWjKa13Yp +jHHL/eKlVLcN1//+N9gkSzdz8O2TwNQPfp9S5QnxQKpEghMU8mR7CxjgEBEl/dzWquk yPz0lba4VQxocYy9t9hlqFuKzyMfpDYhgaqhaIBSlXSS76Q81JGIFw5OsUkWHjfz3Qqz q0CgtP9ztYvMaK0ufYOwsfsASZV2ZjUwfxEsarnw8Gw7iGbzz6BHUzr+skh5ApjbJV9g 4RIsCCshaRMaJdtd3tHSh1nKneVeqGQ8CPqzY1gHwtJpyUblsBMTMKqVD6WDJ85Y8EV6 VZNQ==
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-language:references:cc:to:subject:from :user-agent:mime-version:date:message-id:dkim-signature; bh=+BDrCMqQG4yggFtaku1NSRMSmBzx1yoddfOrRyd2NFA=; b=BQp5zT5r2tY9vxvIlsd/DBuYOaq8TNSsj4/onHJlFU90PuJGsmyfbPVFJYKicASnTy qJPbjwm20xiaBcLSd18N9o0LTh7ADXjJrjZk3VhLK5MuxEmIW0Stj61f9WQTVCEpcBDV ki3BHfmOvacwb+t3YTWtkuIrzMrEHj8w+Ibs6sfF2YfpYaAeSNzwXXkaoph9nog+UnG5 23nMLFgmMFgpbdj/qc18SrTRYsWxalPCIt8G041Sil7qSp6x7q8CG+WlX16JDa0asVuo o3QHXXR4ZwJI66FKAFKK2EPZBDOXJ6bUpVtxUIp9B/udy0Wr1ihjrZ+esntkQLD0IXh6 hbfg==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-language:references:cc:to:subject:from :user-agent:mime-version:date:message-id:dkim-signature; bh=+BDrCMqQG4yggFtaku1NSRMSmBzx1yoddfOrRyd2NFA=; b=uHJYbLEdWctxszzxPp7KKD9eIEO6LueX3pwNyqHBt9KJISs9gdN1nLvHgXmY89UHso 1UkSp7OUirTNLf6YDF8gPWXDZ7+EelY+a6eZpJMRyHho7pKHN1LYVEqf/hSaH+iL84Ne dkiF49sHNAItuNdMepR6B/uN25/BxsJ48HciJsTVEcuGxp34bsNE7WKP5YBTIgGaoTSM /ROR/0+3n8EJi/g/XmGRAJSEDgCfyinMTNaFbaBAMendPc+LWpcil44OQ43rd6b0gtqO FaRZigyVQjE8yr7ztrD4Pq6Ra/6gy/Eyco20DvIniMfqpZhXv6Nch0cuh04OV77aF+2n TB/A==
- Arc-seal: i=4; a=rsa-sha256; t=1661455176; cv=pass; d=google.com; s=arc-20160816; b=OVI0wbd0Q44ey3XkVYPJMWxv7TCakxhlQS/lZi8HLQoNOG+ZqoHgmcmIG3cAGA3vp2 FkfEKFObpZ0JrQlcVgSOHTY+teONnbj9GxqKHmTexv/MiqNaInYkRijhPk3NxXCw6Gru zYzmLRNi82mUB/d1VNCxdHAQTdIGSabbEHLoMChLHQchNUmC4jOFZJsPu4nv2lel0c9X m8WnqcniJ2QWNbPGAmghP5M/enI5a0tk3nASzJ3AZbAd+U0IRiM3FJqwqaG84qvx0uWf GlXyvutdeK6cu8lTooIN/MIlkn1meuHm4ND4HhhirFOtlpE+8ekWGGfKhc4w1tm2FPB5 OM6Q==
- Arc-seal: i=3; a=rsa-sha256; t=1661455174; cv=pass; d=google.com; s=arc-20160816; b=ky4+0jQz1qOxafDwnR7ZdrtR07zUhgTPdOeyrW3gZZpxd+ZpI1vsz047MjXkMMOZN/ NrH500o32vFmBqKnay7ppVogQC98w4VUZLV0nAIvC12cBv6EucGVMnlyjuSChUPFmRJH sE+dDjQOqZOwfyBZ5530Pxmrvfl24WV+mpAeco8wChaY8soo+FGOzEBaHOi08IG69Qc7 G2BDHHeVOMx3CC6plyq6mVtLmDhg+FJx23C5xFX18A7CZffN42hz1KV74aL3Duk0FQ/s M5IUKX+s3e+Lx3HO0PgZJ2cZbXmADvhuaZv9pTkOyF4HR3/VVfXFeYKDR4J5gyqLDg0b Sttg==
- Arc-seal: i=2; a=rsa-sha256; t=1661455171; cv=pass; d=google.com; s=arc-20160816; b=T8mkNvD6vDJqkD7g0d/1CGd4aJ3ubzfkMOlyOKPvWwzqYabFsy46st3kdIlI96sZ+8 lVADj1CiYvuI6BaEX6TztV0djPOfEhu8hYQ/TY+J4TkE+MaP06LEb/nvWJW+9qqrtxnI I4x3Gy1KDyEFVgiXE0vIQDa7e1Lm9c4Lho5/5iJf5jVIzopii42HNmUxNgKdSn2Ortu8 v86Av+8yS61OqxcAQhAmKZwTBHawPxxru3E0l8ZhcDkpSRvGVHyiHv5oxr4wV380j2No V+dnpdBzBw8KJ0l3/sRH8kzZQG9E/CKcj8lwGC0XfjWtq9eECrVQpqUN/6R5kzIp7UvW Wrxw==
- Arc-seal: i=1; a=rsa-sha256; t=1661455170; cv=none; d=google.com; s=arc-20160816; b=r7RGlPlaflLFuUx5QBMLdct82FreTkGdfxIqxMiIwaBDsChcEyFi/JqiEOESyhDIon D2dWLFFAgqVES9KxMViTg3on8nkkhOjF6iEkl1IbEP6sqtVHSVa6SrTVMEitodC9cigq /6qmpmY6Uz7N7+gPqp3S8wSl3K6rn5Z7tqdSUmv7tflAg3Xfp1nkcScQu/naySri92Dd gL2QJ5scDO9cx36PiWnEaCQR7WxYvtQnTUoMZo306W1tXJgrqCEirjp+SN+1jftio65D Spyxz8IsvRv5UhXPtddB86BBi9wVARV38XVFvsxsRkqsPTpdKHrjI45cOYqO9juRs0yl yG7A==
- Cc: Ferret <ferret_users@xxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=noaa.gov; s=google; h=list-archive:list-help:list-post:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:in-reply-to :content-language:references:cc:to:subject:from:user-agent :mime-version:date:message-id:sender:from:to:cc; bh=+BDrCMqQG4yggFtaku1NSRMSmBzx1yoddfOrRyd2NFA=; b=FZQjGolMni042YXebmg1F76Vc1Nfoti8Uik/AeDYm5hB71APCzXom21q1eJcjw1l6x 5F5KEUembmoytChaz0mr7lmxiYTCI26BqXvbxpVgVcSevRFTf3Wk+Z7wo4znIg3+iBO8 +gkwRJrxZf5LBBQED9rYy0GTArW6Kkx024PD+oixXAuyAtEswASxJVWYz7pP2FjERwag IXTkdXJ+oy64JH7fkvxmCVfzOFj77gwQswSykasTVSM9iIJMKb++6p3M0L2uzXq18qhm iwOjK4MFPs7EMdwWrv5qTH+3y07EECTdq0pNJ5Iag5EzHNalZXMnj6IFBaun/RBWblKy DPrw==
- In-reply-to: <CAK0Qe2PwBrqR6J8tT5--1V3F0DvnF-QL-Fa=Wwrz17vwLiYdSQ@mail.gmail.com>
- List-archive: <https://groups.google.com/a/noaa.gov/group/ferret_users/>
- List-help: <https://support.google.com/a/noaa.gov/bin/topic.py?topic=25838>, <mailto:ferret_users+help@noaa.gov>
- List-id: <ferret_users.noaa.gov>
- List-post: <https://groups.google.com/a/noaa.gov/group/ferret_users/post>, <mailto:ferret_users@noaa.gov>
- Mailing-list: list ferret_users@xxxxxxxx; contact ferret_users+owners@xxxxxxxx
- References: <CAEwQpaKM=hc+sQFuK8aczqz6p8W3E_WpCh7fK41yquCkjqQLYw@mail.gmail.com> <537a466a-6189-c382-7f0c-d0b086fa831e@gmail.com> <CAK0Qe2PwBrqR6J8tT5--1V3F0DvnF-QL-Fa=Wwrz17vwLiYdSQ@mail.gmail.com>
- Sender: owner-ferret_users@xxxxxxxx
- User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0
The legend.jnl script doesn't make any PPL LABSET calls. It looks
like this is not an issue with that script but instead is
something strange going on with "ppl labs". Here, the first 3
labels are tiny:
yes? plot/set/i=1:30 cos(i/6)
ppl labs/user,1,10,0.1,-1,"label 1"
ppl labs/user,2,10,0.2,-1,"label 2"
ppl labs/user,3,10,0.3,-1,"label 3"
ppl labs/user,4,10,0.4,-1,"label 4"
ppl labs/user,5,10,0.5,-1,"label 5"
ppl labs/user,6,10,0.6,-1,"label 6"
ppl plot
I think I see something that'll help. Doing just this simple line
plot:
yes? plot/i=1:30 cos(i/6)
yes? ppl list labels
The PPL LIST LABELS command shows that Moveable labels 1, 2, and
3 are the "logo", the lines that show the PyFerret version, date
and time, and they are very small. Apparently that sizing isn't
reset when subsequent PPL LABS commands use those label numbers,
and PPL LABSET doesn't do that either. So, do a "cancel mode logo"
first.
The old PPL calls that are used by the legend script really
should be updated with more modern and easy-to-use commands.
Ansley
On 8/24/2022 4:56 PM, William Kessler -
NOAA Federal wrote:
I use my own handmade legend scripts so I don't experience
these errors, but if they are PPLUS moveable labels you should
be able to set them with:
PLOT ...
PPL LABSET,,,,label_height ! arguments are
main_label_height, x_label_height, y_label_height,
moveable_label_height
go legend ...
PPL PLOT
Or possibly the LABSET command should go after the legend
commands? It shouldn't matter unless the legend.go script is
somehow resetting them.
Billy
Ryo,
How strange. I tested with classic-Ferret and it does
this too, so it's not a pyferret thing and not dependent
on the system. After your script runs, if you do this:
yes? ppl list labels
it lists the location and size of the labels. Removing
the clutter from that output, and making the sizes bold in
the listing, you can see that the sizes are small then
larger then somewhat smaller again as the script is called
over and over. These are PPLUS "moveable" labels so their
size should be 0.12
XPOS YPOS HGT ROT UNITS
LAB 1 6.000E-01 5.750E+00 0.060 0 SYSTEM
y=0
LAB 2 6.000E-01 5.550E+00 0.060 0 SYSTEM
y=5
LAB 3 6.000E-01 5.350E+00 0.060 0 SYSTEM
y=10
LAB 4 6.000E-01 5.150E+00 0.120 0 SYSTEM
y=15
LAB 5 6.000E-01 4.950E+00 0.120 0 SYSTEM
y=20
LAB 6 6.000E-01 4.750E+00 0.102 0 SYSTEM
y=25
I'll see if I can see what's going on, or maybe update
that script.
Ansley
On 8/24/2022 9:25 AM, Ryo Furue wrote:
Dear Ferret users,
I've found that the font size changes after the 3rd
element of the legend as in the image below. This is
the first time for me to use the legend script and I
know very little about it. Have you seen this problem
before? Below I paste the script that generated the
image.
macOS 12.5.1
PyFerret v7.63 (optimized)
Darwin 19.6.0 - 10/13/20
Best regards,
Ryo
-----
set data levitus_climatology
set region/x=180
plot/vlimits=0:2000/set\
temp[y=0], temp[y=5], temp[y=10],\
temp[y=15], temp[y=20], temp[y=25]
go legend 1 "y=0"
go legend 2 "y=5"
go legend 3 "y=10"
go legend 4 "y=15"
go legend 5 "y=20"
go legend 6 "y=25"
ppl plot
frame/file=tmp.png
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement