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

MathGroup Archive 2013

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

Search the Archive

Units with plots?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg130095] Units with plots?
  • From: Murray Eisenberg <murrayeisenberg at gmail.com>
  • Date: Fri, 8 Mar 2013 16:48:28 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net

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 http://mathematica.stackexchange.com/questions/20867/plotting-with-units.)
 
---
Murray Eisenberg                     murrayeisenberg at gmail.com
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