I show my data bellow, and I want to use ListPlot3D
to make a plot of that data. In this process I have some problems that I will discuss them step by step:
list={{0., 0.2, 0.1}, {0., 0.4, 0.2}, {0., 0.6, 0.3}, {0., 0.8, 0.4}, {0.,
1., 0.5}, {0., 1.2, 0.6}, {0., 1.4, 0.7}, {0., 1.6, 0.8}, {0., 1.8,
0.9}, {0., 2., 1.}, {0.2, 0., 0.0267949}, {0.2, 0.4,
0.0645751}, {0.2, 0.6, 0.14641}, {0.2, 0.8, 0.23589}, {0.2, 1.,
0.32915}, {0.2, 1.2, 0.4245}, {0.2, 1.4, 0.52111}, {0.2, 1.6,
0.618535}, {0.2, 1.8, 0.716515}, {0.2, 2., 0.814889}, {0.4, 0.,
0.0535898}, {0.4, 0.2, 0.0394449}, {0.4, 0.6, 0.0582576}, {0.4, 0.8,
0.12915}, {0.4, 1., 0.208276}, {0.4, 1.2, 0.29282}, {0.4, 1.4,
0.381025}, {0.4, 1.6, 0.47178}, {0.4, 1.8, 0.564365}, {0.4, 2.,
0.658301}, {0.6, 0., 0.0803848}, {0.6, 0.2, 0.0708497}, {0.6, 0.4,
0.0432236}, {0.6, 0.8, 0.0557439}, {0.6, 1., 0.12111}, {0.6, 1.2,
0.193725}, {0.6, 1.4, 0.27178}, {0.6, 1.6, 0.353939}, {0.6, 1.8,
0.43923}, {0.6, 2., 0.526943}, {0.8, 0., 0.10718}, {0.8, 0.2,
0.1}, {0.8, 0.4, 0.0788897}, {0.8, 0.6, 0.0450166}, {0.8, 1.,
0.0544004}, {0.8, 1.2, 0.116515}, {0.8, 1.4, 0.184886}, {0.8, 1.6,
0.258301}, {0.8, 1.8, 0.335782}, {0.8, 2., 0.416553}, {1., 0.,
0.133975}, {1., 0.2, 0.12822}, {1., 0.4, 0.111181}, {1., 0.6,
0.0834849}, {1., 0.8, 0.0460608}, {1., 1.2, 0.0535654}, {1., 1.4,
0.113553}, {1., 1.6, 0.178983}, {1., 1.8, 0.249}, {1., 2.,
0.322876}, {1.2, 0., 0.16077}, {1.2, 0.2, 0.155969}, {1.2, 0.4,
0.141699}, {1.2, 0.6, 0.118335}, {1.2, 0.8, 0.0864471}, {1.2, 1.,
0.0467437}, {1.2, 1.4, 0.0529964}, {1.2, 1.6, 0.111488}, {1.2, 1.8,
0.174773}, {1.2, 2., 0.242221}, {1.4, 0., 0.187564}, {1.4, 0.2,
0.183447}, {1.4, 0.4, 0.171179}, {1.4, 0.6, 0.151}, {1.4, 0.8,
0.123285}, {1.4, 1., 0.0885123}, {1.4, 1.2, 0.0472251}, {1.4, 1.6,
0.0525839}, {1.4, 1.8, 0.109967}, {1.4, 2., 0.171623}, {1.6, 0.,
0.214359}, {1.6, 0.2, 0.210756}, {1.6, 0.4, 0.2}, {1.6, 0.6,
0.182255}, {1.6, 0.8, 0.157779}, {1.6, 1., 0.126908}, {1.6, 1.2,
0.0900331}, {1.6, 1.4, 0.0475825}, {1.6, 1.8, 0.0522712}, {1.6, 2.,
0.108801}, {1.8, 0., 0.241154}, {1.8, 0.2, 0.23795}, {1.8, 0.4,
0.228377}, {1.8, 0.6, 0.212549}, {1.8, 0.8, 0.190652}, {1.8, 1.,
0.162929}, {1.8, 1.2, 0.129671}, {1.8, 1.4, 0.0911993}, {1.8, 1.6,
0.0478585}, {1.8, 2., 0.0520259}, {2., 0., 0.267949}, {2., 0.2,
0.265065}, {2., 0.4, 0.25644}, {2., 0.6, 0.24216}, {2., 0.8,
0.222361}, {2., 1., 0.197224}, {2., 1.2, 0.16697}, {2., 1.4,
0.131846}, {2., 1.6, 0.0921216}, {2., 1.8, 0.0480779}};
1-The first question:
In an insane way, I have used the Toad answer for plotting:
ticks[min_, max_] :=
Table[If[EvenQ[i], {i, i, .06, Red}, {i, i, .02, Blue}], {i,
Ceiling[min], Floor[max], 1}];
With[{cf = Blend[{Blue, White, Red}, #] &,
data = Table[Sin[x y], {y, 0, 3, 0.1}, {x, 0, 3, 0.1}]},
ListPlot3D[list, ColorFunction -> cf, PlotRange -> All,
AxesLabel -> {"i", "k", "\!\(\*SubscriptBox[\(P\), \(1\)]\)"},
Ticks -> ticks[2, 1],
TicksStyle -> Directive[Black, 14, Bold, Thickness[0.003]],
AxesStyle -> Directive[Black, Bold, 14, FontFamily -> "Times"]]]
Sin[x y]
is not related to my list
but the code does not work by deleting that or being replaced by my list
as data. I just want to use the color scheme (defined by Toad) because I like it. How can I use of this color scheme (or a more impactful one) without introducing Sin[x y]
?
2- the second question:
(I Can't remember where I found ticks[min_, max_]
) With ticks[min_, max_]
, I want to show more ticks on the axes of the plot and give them custom length and thickness, but there is no difference between ticks[2, 1]
and ticks[2, 2]
and ticks[5, 1]
.
3- The third question:
The shape of my plot is as shown bellow, but the axes labeling such as i
, k
, and P1
are encroaching on the numbers along the axes. I can separate them by using a smaller font, but I prefer the larger fonts as more readable. How can I adjust the distance between the labels and numbers?
4- the fourth question:
I want to highlight the data on the plot which along a slice through the surface at j = 1
, as shown bellow, but I am not able to show that. How can I do it?