MathGroup Archive 2013

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

Search the Archive

Units with plots?

  • To: mathgroup at
  • Subject: [mg130095] Units with plots?
  • From: Murray Eisenberg <murrayeisenberg at>
  • Date: Fri, 8 Mar 2013 16:48:28 -0500 (EST)
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:

Should the new Mathematica 9 functionality of built-in units handling be extended from numerics and symbolics to graphics, too?

For example, whereas the following is allowed with units . . .

  Plot[x^2, {x, Quantity[0, "Meters"], Quantity[1, "Meters"]}]

. . . Quantity does not seem to be allowed in expressions such as:

  Graphics[Disk[{Quantity[0, "Meters"], Quantity[0, "Meters"]},
  Quantity[2, "Meters"]]]

The built-in QuantityMagnitude applied to the arguments can take care of that, but it seems to me that a fully integrated handling of units shouldn't require that -- unless, perhaps, the overhead of checking for units as arguments is just too high at present.

(This question was motivated by the post
Murray Eisenberg                     murrayeisenberg at
80 Fearing Street                      phone 413 549-1020 (H)
Amherst, MA 01002-1912

  • Prev by Date: Re: Greek symbols mangled by InputForm
  • Next by Date: Re: unexpected output order in notebook (Mathematica 9;
  • Previous by thread: Re: Numbers on rectangles
  • Next by thread: CForm Question