Skip to main content

notebooks - How to center a graphic in its output cell


Say I have produced a single graphic ouput, perhaps a plot. Instead of displaying left-aligned in the notebook, I would like it to display in the center of the output cell. I would like it to stay centered if I change the magnification. I would like it to be centered when I export to PDF.


Possible?



Answer



You can also use Pane/Framed etc. + Full width + Alignment:


Pane[
Graphics @ Disk[],
Full,

Alignment -> Center
]

related: 46028


Comments