Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I want to plot some datasets I have. I import them as Table, then simply use ListPlot to plot them.

However, the y-values are given in %, from 0% to 100%, but I would like to have the total value of 2 as the maximum for the y-values, not 100%. Is there anyway I can rescale the y-axis during plotting so as to divide the scale by 50?

Any help is appreciated!

My code is:

cbio = Drop[Drop[Import["12CBio/dosbio.dat", "Table"], 7], -53];


The y-data of cbio runs from 0% to 100%, but I want it to run from 0 Gy to 2 Gy.

share|improve this question

closed as off-topic by Yves Klett, Artes, Kuba, Oleksandr R., Jens Aug 6 '13 at 4:10

  • The question does not concern the technical computing software Mathematica by Wolfram Research. Please see the help center to find out about the topics that can be asked here.
If this question can be reworded to fit the rules in the help center, please edit the question.

Yes there is a way. Show us your code and someone here will show you how to modify it. –  bill s Jul 3 '13 at 17:58
See the help for Rescale –  belisarius Jul 3 '13 at 18:04
Possible duplicate: mathematica.stackexchange.com/questions/24979/… –  Verbeia Jul 3 '13 at 21:10
Can't you solve this by simply dividing the values destined for y by 50? –  David Carraher Jul 4 '13 at 12:33
This question appears to be off-topic because it is too localized. –  Yves Klett Aug 3 '13 at 14:03
show 3 more comments

1 Answer 1

I've found a solution that works for me:

ListPlot[cbio, Ticks -> {Automatic, {{200, 0.4}, {400, 0.8}, {600, 1.2}, {800, 
    1.6}, {1000, 2}}}]
share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.