Function Repository Resource:

MinMaxRounded

Source Notebook

Get the minimum and maximum of a list rounded to a multiple

Contributed by: Sander Huisman

ResourceFunction["MinMaxRounded"][list]

gives the minimum and maximum of list, rounded down and up, respectively.

ResourceFunction["MinMaxRounded"][list,a]

gives the minimum and maximum of list, rounded down and up to a multiple of a.

ResourceFunction["MinMaxRounded"][list,a,{f,g}]

gives {f[Min[list],a],g[Max[list],a]}.

Details and Options

ResourceFunction["MinMaxRounded"] is used to find nice, readable numbers for the range of the values of a list.
ResourceFunction["MinMaxRounded"][list] gives {Floor[Min[list]],Ceiling[Max[list]]}.
ResourceFunction["MinMaxRounded"][list,a] gives {Floor[Min[list],a],Ceiling[Max[list],a]}.
Common values for {f,g} are:
{Floor,Ceiling}minimum and maximum values are rounded "outward"
{Ceiling,Floor}minimum and maximum values are rounded "inward"
{Round,Round}minimum and maximum values are rounded to the closest value

Examples

Basic Examples (2) 

Find the rounded-down minimum and rounded-up maximum for a list of values:

In[1]:=
ResourceFunction["MinMaxRounded"][{-3.3, 2.2, 7.2}]
Out[1]=

Find the minimum rounded down to a multiple of 5 and the maximum rounded up to a multiple of 5 for a list of values:

In[2]:=
ResourceFunction[
 "MinMaxRounded"][{13, 113, 75, 43, 55, 65, 101, 172, 33}, 5]
Out[2]=

Scope (2) 

By default, the minimum is rounded down and the maximum rounded up:

In[3]:=
ResourceFunction[
 "MinMaxRounded"][{13, 113, 75, 43, 55, 65, 101, 173, 33}, 5]
Out[3]=

Round the minimum up and the maximum down:

In[4]:=
ResourceFunction[
 "MinMaxRounded"][{13, 113, 75, 43, 55, 65, 101, 173, 33}, 5, {Ceiling, Floor}]
Out[4]=

Round the minimum and the maximum to the closest multiple of 5:

In[5]:=
ResourceFunction[
 "MinMaxRounded"][{13, 113, 75, 43, 55, 65, 101, 173, 33}, 5, {Round, Round}]
Out[5]=

If the minimum is positive, return 0 and do not round the maximum:

In[6]:=
ResourceFunction[
 "MinMaxRounded"][{13, 113, 75, 43, 55, 65, 101, 173, 33}, 5, {Min[#1, 0] &, Identity[#1] &}]
Out[6]=

Applications (1) 

Find a "nice" plot range that includes all the data:

In[7]:=
data = CompressedData["
1:eJw9Vnc81d//R0YR95Z5uTb3ute6S4N0n2ZGiJKMQklFRqFhFCpEUloiq6VU
ZERpiChSwqclK2UmpSgS+r5///zu43Ef5/E6r/Ec5zzuPeqbQ1y2CgkICAgS
3+F5Av//ueLamfuw+37185jt3DPWxXz3os47y5Lq+GRKgehscQ3f0aCs5ZBS
Iz+zuStn7HEL/+56f/Mq69d8l45LA2djXvF9ajAyW/Web7Tu+Wnq7k7+gftf
gzT/9fJNe5dUt8195r/bnxZlHNrHNw/YtU3i4AC/tkVsx0O/Pr7m7pivnms/
85PPsQQDrd7yvScnt/x794Evpmx9bTjjHd/8++bM/sxP/O9Hyo4tXtPPt1MM
OVgqMczf2fIj0nHLEN+7Q/FB1p4xfrFZ7/zy5J/8b5ofTo3kTPDPI0vvRfI4
f/Syb/hV7198mfUbn1Rzf/ONJMY8nh6b4ufdD9FvOzfFn3izZRSjf/nnex6t
Wc+f5r8birT+Kz7Frzb8ti1H9jd/3orJ8MKTk/xrpzOOOZ2Z4geVK93UffCH
PyHzqNZudJqf5qlloaP8l28XenSnz9UZvlFW2C/1rXN8sTnvq2fzZvitBUnR
WQvm+O0Py+cJHf/H7/FjFIQXC+DaQW/9Fi0B2DL7chVE5/gLvA8xi0UFoBsz
VHp/pQCmD0hIT74VRIJkcAd3WhA6Q6setQ0Jgmts9jVgTAgP/ead68I8PPhT
sT/MWxij9StzhHuE4SaXXNaoIYKtW34ITaXMw9d5WjEmh4Qww942lmskhP5d
Ih7m/YJ49mYyN09fCA4Loiy7W4SwoccmJrJDEPqZXxvcigWhF5Ek8XlEEBnS
G7n8dkGwGvITP18WQuqM+5YDIsJwmeid9VoogjgFfsXyZBFEIvjSgVUi6E5K
qtu8SBQNGz0PJIuJ4n3876rgNyL4fkO04YCkGNxcH04VuYqCZrTdrNBFDCF3
DNwD00Wx+qPIiegfYrB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uEDjI
hZRCQEVdJRc1o7Tg0xNcRKY9jS7q42I0lbJu+wAXffX3ny9r5OLgNquyAyNc
OFqtEP7xkovvd4Z2yb3iwo1K+f3vLheKzIvSDalcjF+KvOcexcUuZeMXbqFc
TMR8PdcfzsV+h77n0We4+LLVhPQsgwuRoJaTgwSPUDO3xvkEbxVvuCUT/FTU
a295n+XCUu1ZyxjBS/f3C6m6m1y8vHpLcO1TLgT+POwKaeUiznGpY64oD4F7
PySOjnGh0FGzJnuGi+Hsv2F5i3iQEP70ehWhZ6Lj1wqeAg8TX/874K3Pg+J/
Zzbl2vIg7t8lIBDAQ3VFYe6BFB5cow9nsCp5eLnlSHBcLQ+5hR7Hdw3ycCFw
t716KQ9hC6wdnEp4CJL7Gn9gLw8+K1cmknby0LOsxiVtNQ+V8TdGaQ48KHcU
1V0nYmn//K8t6wicD8pnFVk8LDSifsyW5eHWo4hn7lY81J+ibskmePx4XFOe
vIkHpyDfFN4+HhifeR6PNvMww2155bibh1VLTomax/HA4Zy/LpPFg6kkyUBu
Dw91Wmfji0J40Fr8rarFm4cQW6fW6WU83FM6m3eHzsPK8ZW7m3QJPIdZb3FX
HhznpyT0xfCwvixseulawjfHsJt5G3l4/i7Gboc5D4diFlYEEnNeWD2jyETx
8D9ajjcs
"];
ListPlot[data, PlotRange -> ResourceFunction["MinMaxRounded"][data, 5]]
Out[8]=

Possible Issues (1) 

An empty list returns :

In[9]:=
ResourceFunction["MinMaxRounded"][{}]
Out[9]=

Publisher

SHuisman

Version History

  • 1.0.0 – 02 August 2019

License Information