0
$\begingroup$

I used the GraphicsInformation resource function which was mentioned in a previous answer in a lot of my code. Recently, I tried to use it with Graphics3D and got an error message:

ggg = Graphics3D[Point[Table[{x, 2 x, x - 1}, {x, 0, 10}]]]
pr = Lookup[ResourceFunction["GraphicsInformation"][ggg], "PlotRange"]

Lookup: the argument FunctionRepository... is not a valid association or a list of rules

My original intention was to obtain the plot range of a Graphics3D object.

$\endgroup$
1
  • 5
    $\begingroup$ AbsoluteOptions[ggg, PlotRange] $\endgroup$
    – Bob Hanlon
    Sep 25 at 3:58

1 Answer 1

1
$\begingroup$

From the Documentation,

ResourceFunction["GraphicsInformation"] returns sizing information for Graphics objects only.

So not, you can not use it for Graphics3D. But starting from version 13.0, the function AbsoluteOptions was updated and hopefully now returns correct information for Graphics3D:

AbsoluteOptions[ggg, PlotRange]
{PlotRange -> {{0., 10.}, {0., 20.}, {-1., 9.}}}
$\endgroup$

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