0
$\begingroup$

I am using ListContourPlot to plot trajectory data against launch and arrival dates in Julian days. My axes go from 1 to 29, but I need to label the x-axis from 491 to 519, and the y-axis from 731-759. I have tried Ticks-> using a variety of syntax but cannot get it to do anything. Here's one try:

ListContourPlot[dataDV, Contours -> {12, 12.55, 12.6, 12.75, 13, 13.5, 14, 15, 17, 20, 30, 40}, ContourLabels -> True, InterpolationOrder -> 2, ContourShading -> None, FrameLabel -> {"Launch Date (Julian Date, 2465xxx)", "Arrival Date (Julian Date, 2465xxx)"}, LabelStyle -> Directive[12], FrameStyle -> Thickness[0.003], FrameTicks -> Automatic, Ticks -> {Automatic, {5 -> 495, 10 -> 500, 15 -> 505, 20 -> 510, 25 -> 515}}] 

I will appreciate any help I can get. Thanks.

$\endgroup$
3
  • $\begingroup$ It is not clear from the question how your data is formatted, but it could be that the option DataRange is helpful, see the help files. So perhaps DataRange -> {{491,519},{731,759}}? $\endgroup$ Commented Nov 4 at 21:05
  • $\begingroup$ Definition of dataDV is missing. $\endgroup$ Commented Nov 4 at 21:16
  • $\begingroup$ Thank you. This works! $\endgroup$ Commented Nov 4 at 21:55

1 Answer 1

1
$\begingroup$

Not sure if this addresses the issue or not. But if you just need to add constants to the first and second elements of each row of dataDV to get the desired ax, why not just do that rather than relabeling the axes in ListContourPlot?

dataDV = Flatten[Table[{i, j, j^0.5 i^0.5 Sin[0.5 i + 0.2 j]}, {i, 1, 29}, {j, 1, 29}], 1]; data = # + {490, 730, 0} & /@ dataDV; ListContourPlot[data, PlotRange -> {{491, 519}, {731, 759}}] 

Contour plot with shifted axis labels

$\endgroup$

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.