Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: argument list for ArrowBox?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg113266] Re: argument list for ArrowBox?
  • From: dushan <dushanm at spinn.net>
  • Date: Thu, 21 Oct 2010 07:02:27 -0400 (EDT)
  • References: <i9h59s$12m$1@smc.vnet.net> <i9jpts$obu$1@smc.vnet.net>

On Oct 19, 3:55 am, "Sjoerd C. de Vries" <sjoerd.c.devr... at gmail.com>
wrote:
> I don't see why you'd find the graphics cells to be square. That's not
> my experience and it's easy to set a certain aspect ratio:
>
> Plot[x, {x, 0, 1}, AspectRatio -> 1/10]
>
> Any picture that I import is shown in its original aspect ratio. So I
> really don't understand your problem.

Thanks for your reply.  To keep Mathematica instructions out of the
notebook (don't want to confuse the students any more than they already
are!), I create a graphics cell with the keys Ctrl-1.  This always
creates a square cell.  In general I need a variable aspect ratio tailor-
made for the simple drawing I'm preparing (I'm not importing any picture).

I suppose I could try to create an empty graphics cell with the desired
aspect ratio, populate the cell using the graphics tools palette, then
delete the instruction cell.  I'll play with that and see if I can get
what I need.  So far the instruction

  Graphics[AspectRatio->0.5]

created an empty graphics box that nevertheless was entirely square.
More experimenting is in order.

> Your editing of the .nb file in a text editor seems unnecessary. You
> can set all options using the option inspector in the Format menu. The
> aspect ratio can be set in Formatting options/Expression formatting/
> Graphics Box options/GraphicsBoxOptions/AspectRatio.
>
> Cheers -- Sjoerd

In a trial notebook I varied the AspectRatio settings from the Options
Inspector, and have to admit to being thoroughly confused as to what
it's doing.  Will try again tomorrow.

- Dushan


>  On Oct 18, 11:50 am, dushan <dush... at spinn.net> wrote:
> > I'm using Mathematica 7.0.1 on a Mac (OS X) to prepare an exam for a
> > basic physics lab.  This often calls for a Graphics cell to depict
> > some configuration.  Since this cell is invariably created square, an=
d
> > there seems to be no easy way to change the box's aspect ratio within
> > Mathematica, I open a text editor and edit the exam's .nb file
> > directly, modifying the options of ImageSize.
>
> > This is awkward, but works.  In the process I ran into the function
> > ArrowBox, whose options I'd like to modify to eliminate an invisible
> > mask that's cropping the arrowhead.
>
> > But I've been unable to find anywhere a description of ArrowBox's
> > arguments.  The instruction Options[ArrowBox] produces an empty pair
> > of curly brackets.  All I've gathered  so far is that the arguments
> > consist of a two-component list of two-component lists of numbers.
>
> > How do I find that sort of information?  Thanks.
>
> > - Dushan Mitrovich



  • Prev by Date: Re: Using ReplaceAll (/.) on numerical digits
  • Next by Date: Re: Keeping global parameters in an evaluated function
  • Previous by thread: Re: argument list for ArrowBox?
  • Next by thread: Help with Spline Interpolation