1
$\begingroup$

Trying to rotate a disk, it gets trimmed:

Graphics[Rotate[Disk[{0, 0}, {1, 1}, {0 Degree, 180 Degree}], 20 Degree]]

enter image description here

I would be pleased if you could tell me which option do I have to set to solve this problem.

$\endgroup$
4
  • 3
    $\begingroup$ Set a PlotRange explicitly to see the entire disk. $\endgroup$ Commented Jun 2, 2015 at 23:45
  • $\begingroup$ Also, be aware of the fact that Rotate will rotate an object around the center of its bounding box. If this is not what you want or expect, you can specify the point around which to rotate explicitly, e.g. Rotate[object, angle, {0,0}]. $\endgroup$
    – MarcoB
    Commented Jun 2, 2015 at 23:49
  • 4
    $\begingroup$ As it happens, the PlotRange and rotation center suggestions happen to be the first two "Possible Issues" mentioned in the documentation page of Rotate... $\endgroup$
    – MarcoB
    Commented Jun 2, 2015 at 23:51
  • $\begingroup$ Thank you very much Marco and Gwii. $\endgroup$
    – Francisco
    Commented Jun 3, 2015 at 1:07

1 Answer 1

2
$\begingroup$

Thanks to everyone for the help, here I resume the things you said, which solved my problem:

Graphics[Rotate[Disk[{0, 0}, {1, 2}, {0 Degree, 180 Degree}],20 Degree,{0, 0}],PlotRange->{{-3, 3}, {-3, 3}}]
$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.