plotly.py icon indicating copy to clipboard operation
plotly.py copied to clipboard

X/Y axes tick labels are cut off in the bottom corner when creating 3d surface

Open monochromec opened this issue 3 years ago • 1 comments

plotly version: 5.8.2 dash: 2.5.1 Python: 3.9.13 on Apple silicon running OSX 12.4 Sample code: https://gist.github.com/monochromec/3dc9433ee226ae2bc46128968c9d1844 Actual result: see first png attached Expected result: see second png attached

Adjusting autosize, margin or width / height parameters did not resolve the issue and automargin doesn't seem to apply to 3d surfaces if I understand https://community.plotly.com/t/long-tick-labels-getting-cut-off-in-plotly-js-chart/1039 correctly.

Screenshot 2022-06-20 at 07 12 30 Screenshot 2022-06-20 at 07 12 54

Happy to provide additional information as required.

monochromec avatar Jun 20 '22 05:06 monochromec

Have a look at this: https://plotly.com/python/3d-camera-controls/#changing-the-camera-position-by-setting-the-eye-parameter

I was facing the same issue, and somebody got me to those parameters (1st comment on the stack overflow issue) https://stackoverflow.com/questions/73187799/truncated-figure-with-plotly?noredirect=1#comment129258910_73187799

TSS-22 avatar Aug 01 '22 06:08 TSS-22

Thanks - that helped indeed to solve the problem.

monochromec avatar Oct 11 '22 06:10 monochromec