Mathematica Plotting in MilliNewtons in Mathematica

  • Thread starter Thread starter pinsky
  • Start date Start date
  • Tags Tags
    Mathematica
AI Thread Summary
To plot measured forces in milliNewtons in Mathematica without altering the data, the user seeks a method to adjust the axis labels while keeping the original values intact. The suggested solution involves multiplying the data by 1000 for the plot while labeling the axis as milliNewton. However, this approach complicates the regression line since it would require recalculating the slope based on the modified values. The challenge lies in maintaining the integrity of the regression line while presenting the data in a more visually appealing format. A solution that allows for clear axis labeling without changing the underlying data representation is needed.
pinsky
Messages
95
Reaction score
0
Hello there!

I'm doing a plot of some measured forces in mathematica. I have the measured values (in Newtons) in the form:

{0, 0.000981, 0.004905, 0.001962, 0.002943, 0.003924, 0.005886,0.006867, 0.007848}

When i plot it (as ListPlot against some other set of values) those small numbers don't look very nice on the axis.

I'm trying to find a way to plot in miliNewtons, so that the values on the axis would be multyplied by 1000, but so that my plot wouldn't change.

I've googled for a hour and a half, and found no hint to a solution. I't seems like a fairly common thing to do.

Help...
 
Physics news on Phys.org
Why don't you just multiply the values by 1000, then label the axis in milliNewton, as follows:
Code:
Dat = {0, 0.000981, 0.004905, 0.001962, 0.002943, 0.003924, 0.005886, 
   0.006867, 0.007848};

ListPlot[Dat*1000, AxesLabel -> {Xaxis, milliNewton}]
 
The whole situation is that I have to draw the data f(U2)=F in form os measured data together with the aproximated regresion line. If I multiply it by 1000 i have to apply the changes to the line function which changes it's slope.
 

Similar threads

Replies
1
Views
2K
Replies
1
Views
2K
Replies
1
Views
3K
Replies
1
Views
3K
Replies
8
Views
5K
Replies
1
Views
4K
Replies
5
Views
6K
Back
Top