Legend position for 3D plots

Hey, I am plotting surfaces which have some small values and I need the legend. But the problem is that the legend goes out of the image and can’t see the values. I tried positioning the legend, but could not move it at all. Any help is appreciated.

The plot:

p = plot(1:64, 1:64, 0.001.*rand(64,64), dpi = 600, st = :surface, c = :blues, legend = :left)

output:

Your code does not run:

ERROR: UndefVarError: `plot` not defined
Stacktrace:
 [1] top-level scope
   @ REPL[26]:1

Please include a MWE including packages/modules used and any data needed…

Sorry about that, before this, I had imported Plots. The version I am using is version 1.40.4.

using Plots;
p = plot(1:64, 1:64, 0.001.*rand(64,64), dpi = 600, st = :surface, c = :blues, legend = :left)