Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #14069
| From | Roland Franzius <roland.franzius@uos.de> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: "Displaying" the meaning of zero |
| Date | 2013-04-05 02:30 +0000 |
| Message-ID | <kjld0p$b7c$1@smc.vnet.net> (permalink) |
| References | <kjiprg$3l1$1@smc.vnet.net> |
| Organization | Time-Warner Telecom |
Am 04.04.2013 04:51, schrieb Clif McInnis:
> I would like to have at least one of these codes work so that when n=0 no disks are displayed but the numeral zero is displayed.
>
> Code #1
>
> Manipulate[
> Grid[Partition[
> Join[Graphics[{Darker[Green], Disk[],
> Text[Style[#, Orange, "Label", 24], {0, 0}]}] & /@ Range[n],
> Table["", {9}]], 10], ItemSize -> 3], {{n, 1, "Number\nof Disks"},
> 0, 20, 1, Appearance -> "Labeled"}]
>
Alternate text for n=0 using an If-Statement instead of the simple
/@Range[n] and deliberately fitting the string "No disks" into a circle
using StyleForm and Overscript
Manipulate[
Grid[Partition[
Join[Graphics[{Darker[Green], Disk[],
Text[Style[#, Orange, "Label", 24], {0, 0}]}] & /@
(*new*) If[n > 0, Range[n], {StyleForm[Overscript["Disk", "No"], 9]}],
Table["", {9}]], 10], ItemSize -> 3], {{n, 1, "Number\nof Disks"},
0, 20, 1, Appearance -> "Labeled"}]
--
Roland Franzius
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
"Displaying" the meaning of zero Clif McInnis <c_mcinnis@hotmail.com> - 2013-04-04 02:51 +0000
Re: "Displaying" the meaning of zero Roland Franzius <roland.franzius@uos.de> - 2013-04-05 02:30 +0000
Re: "Displaying" the meaning of zero Clif McInnis <c_mcinnis@hotmail.com> - 2013-04-07 01:54 +0000
csiph-web