Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. Needs["CustomTicks`"]
  2. temp = Table[
  3. If[{x, y, z} == {2, .2, .02}, 1, 0], {z, 0, .1, .005}, {y, 0,
  4. 1, .1}, {x, 0, 10, 2}];
  5.  
  6. {xmax, ymax, zmax} = {10, 1, .1};
  7. {zdim, ydim, xdim} = Dimensions[colorArray][[;; 3]];
  8.  
  9. Show[Image3D[#], ViewPoint -> {1.3, -2.4, 2}, SphericalRegion -> True,
  10. Boxed -> True, BoxRatios -> {1, 1, 1}, Axes -> True,
  11. AxesLabel -> {"X", "Y", "Z"}, ImageSize -> 350,
  12. ImageResolution -> 750,
  13. Ticks -> {LinTicks[0, 10,
  14. TickPostTransformation -> (# xdim/xmax &)],
  15. LinTicks[0, 1, TickPostTransformation -> (# ydim/ymax &)],
  16. LinTicks[0, .1,
  17. TickPostTransformation -> (# zdim/zmax &)]}] & /@ {temp,
  18. Reverse[temp, {1, 2, 3}], Reverse[temp, {1, 2}]}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement