Message Boards Message Boards

0
|
5941 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

X-Axis units aren't playing nice.

Posted 10 years ago
I am going to post part of my code to see if anyone can pick out my Plot syntax error without diving into the complexity of my code.  Basically, I am creating a plot with 'feet' as the input, and MMA is putting the units in metric when plotted.  
 Plot[{\[CapitalDelta]pfu[x]/psi, \[CapitalDelta]pfd[x]/psi}, {x, 0 ft,
 
     120 ft},
 
   AxesLabel -> {Subscript[\[CapitalDelta]h, u, d] "[ft]",
 
     Subscript[\[CapitalDelta]p, f] "[psi]"},
 
   GridLines -> Automatic] // Magnify
And here is the output:
Attachments:
POSTED BY: Kyle Richter
2 Replies
Hello Kyle,
Subscripts can be a pain, but if you start thinking in TeX's box language, I find that  things get a bit easier.
 Plot[{\[CapitalDelta]pfu[x]/psi, \[CapitalDelta]pfd[x]/psi}, {x, 0 ft,
    120 ft}, AxesLabel -> {
    
    DisplayForm@
     StyleBox[
      RowBox[{SubscriptBox["\[CapitalDelta]h", "u d"], "[ft]"}]],
    
    DisplayForm@
     StyleBox[
     RowBox[{SubscriptBox["\[CapitalDelta]p", "f"], "[psi]"}]]
   
   }, GridLines -> Automatic]
WCC
POSTED BY: W. Craig Carter
Posted 10 years ago
WCC,

Thank you for the reply.  Does your plot show the x-axis in feet?  

Kyle
POSTED BY: Kyle Richter
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract