and I am trying to subtract 2.3585 from x, then multiply by 74.8 and I am trying to subtract 0.0191584 from y and square.
The subtracting does not seem to be working.
Any suggestions?
I have tried clearing x and y, and also tried using different variables, and nothing seems to work. I’m pretty sure that my data, which is a list of pairs, is being transformed by these opperations, but when I plot the data that has been transformed, it does not plot transformed. I am using ListPlot and I also tried Marco’s method and it still does not transform the plot.
Make up a very tiny little notebook containing half a dozen or a dozen pairs of your data assigned to a variable followed by your attempt at substititing. Start Mathematica fresh and evaluate just that once to see the In and Out from that.
Then either save that notebook and post it as an attachment OR select everything in the notebook and paste it all into a “code box” that you get by clicking on the <> near the right end of the second line.
That should show everyone your In and Out and exactly what it did and someone can get exactly your code back into their notebook, track down what is happening and show a tiny change to make it work for you and then they will use the same process to get the code back to you.
BUT that does not then store the result back into importedslit0data, it just transforms it and displays the result and nothing more.
What you have is sort of like you say z=2 and then you say z^2 and Mathematica prints 4 and then you say
Plot z and mathematica plots 2, because squaring didn’t also mean to store the new 4 back into z.
That tansforms it, stores the result back into the original variable, losing the original numbers now, and then should plot the new numbers.
So much easier and quicker to get to a solution when we can actually see “all” the code.
Thank you for that
In your defense, this is a relatively common trap for new users to fall into. Again and again I have seen others read the documentation and seem to come to exactly the same conclusion that I think you did, that when the documentation says “it replaces what matches the pattern” that it is assumed it assigns the new value to the existing variable.