MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Graphics: How to get values corresponding to

  • To: mathgroup at smc.vnet.net
  • Subject: [mg113639] Re: Graphics: How to get values corresponding to
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Fri, 5 Nov 2010 05:14:15 -0500 (EST)

While AbsoluteCurrentValue returns values, it is not the actual ImageSize of the original graphic.

g = Plot[Sin[y], {y, 0, 6 Pi}]

AbsoluteCurrentValue[g, ImageSize]

{400, 400}

g2 = Plot[Sin[y], {y, 0, 6 Pi},
  ImageSize -> AbsoluteCurrentValue[g, ImageSize]]


Bob Hanlon

---- "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com> wrote: 

=============
AbsoluteCurrentValue[g, ImageSize] works for me, but I'm at loss as to
why AbsoluteOptions doesn't work.

Perhaps the documentation should be improved. Shall we start a thread
on that?  ;-)

Cheers -- Sjoerd

On Nov 2, 11:00 am, kj <no.em... at please.post> wrote:
> Consider the following example.
>
> In[1]:= g = Plot[Sin[y], {y, 0, 6 Pi}];
>
> In[2]:= ImageSize /. FullOptions[g]
> Out[2]:= Automatic
>
> How can I determine the *number* X (!= Automatic) such that the
> graphic generated by Plot[Sin[y], {y, 0, 6 Pi}, ImageSize->X] looks
> identical to g as defined in In[1]?
>
> More generally, for any option that accepts Automatic as a possible
> value, how can I determine the whether there exists some value X
> (distinct from Automatic) such that specifying X as the value of
> this option would produce exactly the same results as specifying
> Automatic, and if so, how can I determine this value?
>
> Thanks!
>
> ~kj




  • Prev by Date: How does one fix a Graphics3D display?
  • Next by Date: Re: Numerical solution of the heat equation on a disk with Dirichlet
  • Previous by thread: Re: How does one fix a Graphics3D display?
  • Next by thread: Re: Graphics: How to get values corresponding to