[Thread Prev][Thread Next][Index]
Re: [ferret_users] too many tics
- To: Ryo Furue <furue@xxxxxxxxxx>
- Subject: Re: [ferret_users] too many tics
- From: William Kessler <william.s.kessler@xxxxxxxx>
- Date: Thu, 23 Dec 2021 10:07:30 -0800
- Arc-authentication-results: i=2; mx.google.com; dkim=pass header.i=@noaa.gov header.s=google header.b=kG8UFoXf; spf=pass (google.com: domain of william.s.kessler@xxxxxxxx designates 209.85.220.41 as permitted sender) smtp.mailfrom=william.s.kessler@xxxxxxxx; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=noaa.gov
- Arc-authentication-results: i=1; mx.google.com; dkim=pass header.i=@noaa.gov header.s=google header.b=kG8UFoXf; spf=pass (google.com: domain of william.s.kessler@xxxxxxxx designates 209.85.220.41 as permitted sender) smtp.mailfrom=william.s.kessler@xxxxxxxx; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=noaa.gov
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-archive:list-help:list-post:list-id:mailing-list:precedence:to :references:message-id:content-transfer-encoding:cc:date:in-reply-to :from:subject:mime-version:dkim-signature; bh=WhS14NLqsVRxhapmLPxwBpEWAJab/7hS4XVDnnvk1Nc=; b=wZfanimhCBscoaJrYs1ybGaNQgz6aTForMjI0BNzulYoF/Rexv9FrvHDDU7t3VElJc VYNlN1O9coEozEnmVijxxSf7bLAd1GtmKlSr1yCUUeDImtVjEY8dj00sjANPsz7s0dSy nYwr8XiDrvgHUMS7iwuAO+2DPol0/C7AtGPrJIrawCCG2A4VB5m+vc1+1hHm84XuYJm7 ZRr0F3ComUp2uHS7AnAl7NYnWsqcI18qvIue0AKHetHqOoJ9ddGhh/9s6R87KIz9fPSr jrv7POjwZ2wIfyuz6QI5/20MnPnJyX31YOHGbTjbIk29ZiJVDsa7+hJnf0n9IW5eFCkN dwzA==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:dkim-signature; bh=WhS14NLqsVRxhapmLPxwBpEWAJab/7hS4XVDnnvk1Nc=; b=p+ujSDHJfrKPa0R2uLSnnEPc5s7u1pqivh12QjZ4D35x2DsGpyUEifuJPPCEbmz4mU FB5wKgyCym4NHUFVn8qvsLNmNwowYsWt2PmjT+So01ykPyNWfqYfqjChZ1xxGxu6AvOA i/ZgKvKe5ddU83S/8MxKJV8Fw0g5kNSPXn2pjSjUClH2+LjjqrIqFBHw/FoB3c/vpnq/ 9bl1qUUgA5uS65UjvnldobjP7fXohdx0MLzk36ZNd9CvRSczYb+NFYQRnp2txWV+5Ttm +c/KPqrUwVEQJgqohxJX/Dnas0GQJWh/tgJ1+Coh7H18mrnJDwtcTkWuOati4qBFNz8o 4rTQ==
- Arc-seal: i=2; a=rsa-sha256; t=1640282853; cv=pass; d=google.com; s=arc-20160816; b=Z2PBZcd+4at0uPLi/wJdFy5FPm2Q+FutdlKYpIOzM2lwZFvaVPzWvdGefaTaeawQAw 8R+IHpWGsy7Uv9hSmA4FHC1kDMg5ZJojQKOS/kUqHALH3kytwl6SMfPgxJ0ZdTgzrIib gCZzhtXIJ1Ir3gtif2Kt5cFZwWd7jWz0WO9ImEJrQP3/8SoVv7+XE2dvh82psWPyhbEr cxWPhGLNOvTUmYxZagPDJacgphiK/aAxMiwgkbGkR2Pmo5qj2aR3c82x0hBBFr94vSv3 kumuIUR7+HpGUg6kYeAPZerLzDwE9oJ3DGVZbr8boyzA9RMajF6MKlOox1Aof4iM+Qns ymgw==
- Arc-seal: i=1; a=rsa-sha256; t=1640282852; cv=none; d=google.com; s=arc-20160816; b=fLBF2AeDDdzvioP++VqEUNP5oUptfdbaAgZT6RXedB32cEsdS0P2nG/HYFBX0dTZQy l9DvpXGZPIpw+7nEhtfcta/XqrizToa/AHal/if2pv3ciqAt4iimmsEj8eF8UVUqv0fY 8qPPVDlAHxELVca0vem6KdEGs+Ahum1peIPIkGPyBZoX9wQqIL6uAcvVL/lOG2lfu8w8 WFPUI5ag0yfMbIPFrYmv+9JRsmyP7UyvQJd3vK+tiDqqJdhPtMZrGQaZIQqJf6tIM7bd jKRJUgF6T4Et5ZF3nK/myqhFGIBSu8Wr6cT87IkDuErCliz5MP+/nSJwdgtRac6FoZ8D oo+w==
- Cc: Pratik Kad <pratikkad17@xxxxxxxxx>, Ferret <ferret_users@xxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=noaa.gov; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive; bh=WhS14NLqsVRxhapmLPxwBpEWAJab/7hS4XVDnnvk1Nc=; b=Vbv6cJ3obzd53+9S4zzLBQYQQfQk3Odz1SsVAGXkqCr9fsBUTPihRre2VEAQy16de0 biPDwGMSuI6nMfDn3PIDklk7TbFIEOw4gwdzptJxmATCgWE1khPs26bAdh361twgOW3D oyH2bV/d4X1uwMlmmq+XpGe+ah5qy3aBcLuSKlDTsch/PBr2Fg/w5qMg54hv8/aKFcoS FJgdPlP/yJE4nGZTYvSBSOp9Npy6qoYkE7XaKKT9Xgw/lWfKvOxGSMXFEq/KzBcL04/+ gyQs+oI9XLBuLcjPgQu1MnpvFxObyKOAQijWXWUBCVbkKVFW7A/IzascSDJaAtmHWYxA Cb4g==
- In-reply-to: <CAEwQpaL-YMaL1GjKYL3OBt1Vu8ZQXLJCaCHaK-ZgQnuw9_zh2g@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: <CAEwQpaJ8A3GVnKuHsVTvFJ9-wJ-ZcxLwCK+4VUik907DwJitrQ@mail.gmail.com> <CAG0pxU9fy=D_hLEnoEbtJN2dUVHaW7LOH0_Q3XLg6kd=YDRqcQ@mail.gmail.com> <CAEwQpaL-YMaL1GjKYL3OBt1Vu8ZQXLJCaCHaK-ZgQnuw9_zh2g@mail.gmail.com>
- Sender: owner-ferret_users@xxxxxxxx
Two solutions:
1) Include a 3rd argument to HLIMITS, VLIMITS to specify the intervals:
plot/vlimits=-5500:0:500/y=30S/hlimits=111:115:0.5 rose ! large/main tics every 500m and 0.5 deg
2) Use PPL AXLINT (label interval for large tics) and PPL AXNMTC (number of small tics between large tics)
plot/SET/vlimits=-5500:0:500/y=30S/hlimits=111:115:0.5 rose
ppl axlint,2,2;ppl axnmtc,4,4 ! label every 2nd large tic; add 4 small tics between large tics
ppl plot
Notes:
- the PPL commands are persistent until explicitly changed
- PPL AXLSZE,xlab,ylab controls the label size
- Could also control the label format (decimal point):
- PPL XFOR,(i5,''lone'') ! those are two single quotes around LONE = longitude east
Or, if, say the half-degree tics are to be labelled: PPL XFOR,(f5.1,''lone'')
- PPL YFOR,(i5) ! integer labels with length to fit -5400
Billy
> On Dec 22, 2021, at 11:28 PM, Ryo Furue <furue@xxxxxxxxxx> wrote:
>
> Hi Pratik,
>
> I'm using "xlimits" and "ylimits", which also works perfectly.
>
>
> I guess you mean that ylimits also produces the same problem:
>
> set data etopo5
> plot/ylimits=-5500:0/y=30S/hlimits=111:115 rose
> frame/file=tmp.png
>
> This one shows exactly the same problem (too many tics along the vertical axis).
>
> Anyway, xlimits and ylimits are deprecated:
>
> *** NOTE: /XLIMITS and /YLIMITS are deprecated.
> *** NOTE: Use /HLIMITS and /VLIMITS instead.
>
> I understand why they are deprecated. (When the vertical axis isn't a y axis, the name "ylimits" is highly confusing.)
>
> Regards,
>
> Ryo
>
>
>
>
> Best regards
> Pratik
>
> On Thu, Dec 23, 2021 at 12:28 PM Ryo Furue <furue@xxxxxxxxxx> wrote:
> Hi Ferret users,
>
> Is this problem known? (I searched the email archive but I failed to find a relevant discussion. Perhaps I didn't use good keywords.)
>
> The following three-line code produces a plot with too many tics on the vertical axis:
>
> set data etopo5
> plot/vlimits=-5500:0/y=30S/hlimits=111:115 rose
> frame/file=tmp.png
>
> When I make two panels as
>
> set data etopo5
> set view upper
> plot/vlimits=-5500:0/y=30S/hlimits=111:115 rose
> set view lower
> plot/vlimits=-5500:0/x=125/hlimits=36S:32S rose
> frame/file=bottom-profiles.png
>
> only the upper panel suffers from the problem.
>
> A workaround is to specify the tic interval: vlimits=-5500:0:500
>
> I've disabled "~/.ferret" before carrying out the test.
>
> PyFerret v7.63 (optimized)
> Darwin 19.6.0 - 10/13/20
>
> macOS 12.1 (Monterey).
>
> Regards,
>
> Ryo
>
> <tmp.png>
(Still) working at home: +1 206-228-7330 (m)
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement