Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13782 > unrolled thread

Units with plots?

Started byMurray Eisenberg <murrayeisenberg@gmail.com>
First post2013-03-08 21:46 +0000
Last post2013-03-08 21:46 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Units with plots? Murray Eisenberg <murrayeisenberg@gmail.com> - 2013-03-08 21:46 +0000

#13782 — Units with plots?

FromMurray Eisenberg <murrayeisenberg@gmail.com>
Date2013-03-08 21:46 +0000
SubjectUnits with plots?
Message-ID<khdm7m$f0r$1@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@gmail.com
80 Fearing Street                      phone 413 549-1020 (H)
Amherst, MA 01002-1912





[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web