Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Units with plots?
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Murray Eisenberg

Posts: 16
Registered: 4/14/10
Units with plots?
Posted: Mar 8, 2013 4:46 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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










Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.