3
$\begingroup$

I've been trying to get my y and z axes log-scaled on a 3D list Point Plot, for example (test data):

data={{.73,100,600},{.75,800,900},{.8,1100,2000},{.85,2100,4000},{.92,5000,9000},{1,10000,200000}};

ListPointPlot3D[data, AxesLabel -> {"x", "y", "z"}, 
 BaseStyle -> {FontSize -> 30, FontFamily -> "Times"}, 
 LabelStyle -> Black, ImageSize -> 1000
 ]

I have tried everything I could find in old posts, but everything seemed to be geared towards Plot3D - and doesn't seem to work for ListPointPlot3D.

Any suggestions? Thanks so much!

$\endgroup$

1 Answer 1

8
$\begingroup$

You can use the option ScalingFunctions for this purpose. For instance:

ListPointPlot3D[
    data,
    AxesLabel->{"x","y","z"},
    BaseStyle->{FontSize->20,FontFamily->"Times"},
    ScalingFunctions->{None,"Log","Log"},
    ImageSize->700
]

enter image description here

$\endgroup$
4
  • 1
    $\begingroup$ Ah - I tried this earlier but got the "unknown option name" error, so I assumed it wasn't compatible. If this works for you it must mean my version is too old I guess (I have 10.4?). :) Thanks! I'll look into updating. $\endgroup$
    – zack
    Commented Sep 19, 2018 at 23:32
  • 1
    $\begingroup$ @zack ScalingFunctions were only introduced in version 11. $\endgroup$ Commented Sep 20, 2018 at 10:03
  • $\begingroup$ Dang! Oh well :) Thanks! $\endgroup$
    – zack
    Commented Sep 21, 2018 at 1:26
  • $\begingroup$ I have Mathematica Version 11.1.1.0, but the ScalingFunctions option isn't recognized for ListPointPlot3D (for Plot it is). Is there any known workaround? $\endgroup$
    – Sebastian
    Commented Apr 17, 2020 at 15:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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