# How can I divide y-axis by a number in ListContourPlot? [closed]

I want to divide y-axis by 300, so I used below code but it didn't work.

dpg3 = ListContourPlot[ddatas1r, ContourShading -> False, Contours -> {0}, ContourStyle -> Black, BaseStyle -> Thick,DataRange -> {xrange, yrange}]

• You meant to say that divide each point on $y$-axis by 300?
– zhk
Jan 18, 2017 at 13:15
• Yes,exactly @MMM Jan 18, 2017 at 13:17
• Have a look at Ticks. Jan 18, 2017 at 13:32
• As @MMM said, I want to divide each point on y-axis by 300 Jan 18, 2017 at 13:57
• It's easier to scale the y values by 300 than it is to scale the ticks I think, ListContourPlot[{#1, #2/300, #3} & @@@ ddatas1r, ContourShading -> False, Contours -> {0}, ContourStyle -> Black, BaseStyle -> Thick] Jan 18, 2017 at 14:51

data = Table[Sin[i + j^2], {i, 0, 3, 0.1}, {j, 0, 3, 0.1}];

• @saranj - that's because you defined your data as a list of {x, y, z} values, so the data range is set by the list itself. I prefer Alan's method myself, keep the data as an array of z values, and supply the data range. in your case the data to plot would be ddatas1rArray = Table[ds1r, {e, 4000, 30000, 500}, {v, 0, 40, 3}] and the DataRange would be {{0, 39}, {4000, 30000}/300} Jan 18, 2017 at 14:55