Invisible[expr]
displays as space that is the same size as the formatted version of expr.
Invisible
Invisible[expr]
displays as space that is the same size as the formatted version of expr.
Details
- Invisible[expr] spans both the horizontal and vertical dimensions of expr.
- Invisible[expr] has the same baseline alignment as expr.
- Invisible["M"] gives space that is one em wide in the current font.
- Invisible objects displayed in a graphics scene will continue to affect automatic sizes and plot ranges in the graphic.
Examples
open all close allBasic Examples (2)
Display a blank space the same size as the formatted form of a given expression:
Framed[Invisible[Integrate[f[x], {x, -π / 2, π / 2}]]]Here is the expression in visible form:
Framed[Integrate[f[x], {x, -π / 2, π / 2}]]Use Invisible objects as column-width regulators in a grid:
Grid[{{Invisible["xxxx"], Invisible["xxxxxxxxxxxxxxxxxxxx"]}, {1, "one"}, {2, "two"}}, Frame -> All]Scope (5)
{"fish", Invisible["fowl"]}Make a bit of typesetting invisible:
x + Invisible[y] ^ 2Make a user interface element invisible:
Column[{Button["first"], Invisible[Button["second"]], Button["third"]}]Invisible controls do not respond to clicking:
Deploy[Framed[Invisible[Button["print", Print["clicked!"]]]]]Make a shape in a 2D graphic invisible:
Graphics[{Disk[{0, 0}], Invisible[Disk[{2, 0}]], Disk[{4, 0}]}]Invisible shapes affect automatically determined plot ranges:
Graphics[{Invisible[Disk[{-10, -10}]], Disk[{0, 0}], Invisible[Disk[{10, 10}]]}, PlotRange -> Automatic, Axes -> True]Make a shape in a 3D graphic invisible:
Graphics3D[{Cuboid[{0, 0, 0}], Invisible[Cuboid[{1, 0, 0}]], Cuboid[{2, 0, 0}]}]Invisible shapes affect automatically determined plot ranges:
Graphics3D[{Cuboid[{0, 0, 0}], Invisible[Cuboid[{5, 5, 5}]]}, PlotRange -> Automatic, Axes -> True]Properties & Relations (2)
Invisible is effectively the same as Style[expr,ShowContentsFalse]:
{Invisible[123], Style[123, ShowContents -> False]}ShowContents is more flexible, since its value can be controlled with Dynamic:
{Checkbox[Dynamic[x]], Dynamic[x], Style[123, ShowContents -> Dynamic[x]]}Use Spacer to display a blank space with the size specified in printer's points:
Framed[Spacer[{70, 50}]]See Also
Tech Notes
Related Guides
History
Text
Wolfram Research (2007), Invisible, Wolfram Language function, https://reference.wolfram.com/language/ref/Invisible.html.
CMS
Wolfram Language. 2007. "Invisible." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Invisible.html.
APA
Wolfram Language. (2007). Invisible. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Invisible.html
BibTeX
@misc{reference.wolfram_2026_invisible, author="Wolfram Research", title="{Invisible}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/Invisible.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_invisible, organization={Wolfram Research}, title={Invisible}, year={2007}, url={https://reference.wolfram.com/language/ref/Invisible.html}, note=[Accessed: 13-June-2026]}