Skip to content

tickpad and labelpad-like kwargs for 3d-axis formatting? #2721

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ryandvmartin opened this issue Jun 11, 2018 · 3 comments
Closed

tickpad and labelpad-like kwargs for 3d-axis formatting? #2721

ryandvmartin opened this issue Jun 11, 2018 · 3 comments
Labels
feature something new

Comments

@ryandvmartin
Copy link

as seen here:
https://community.plot.ly/t/axes-tick-and-title-spacing-3d-scatter/10819

I was wondering if a pad-like argument could be added to the axis tick and axis title arguments. I dont know js, but the python code to generate the plot is:

x, y, z = np.random.rand(100, 3).T
x *= 5
y *= 2
data = [go.Scatter3d(
    x=x, y=y, z=z,
    mode='markers', 
    marker=dict(color="black", size=3))]
fontdict = dict(tickfont=dict(size=10))
layout = go.Layout(
    width=500, 
    height=400, 
    showlegend=False,
    margin=dict(l=0, r=0, t=0, b=0, pad=0),
    scene=dict(aspectmode="data", 
              xaxis=fontdict, yaxis=fontdict, zaxis=fontdict)
    )
fig = go.Figure(data=data, layout=layout)
iplot(fig)

and the goal is to get the ticklabels and axis titles closer to the axis:

image

like this (edited in paint.. hopefully the idea comes across..):

image

Thanks!

@alexcjohnson
Copy link
Collaborator

related (mainly just about the attribute structure): #882

@alexcjohnson alexcjohnson added the feature something new label Jun 11, 2018
@etpinard
Copy link
Contributor

Or implement margin.pad in 3D

@gvwilson
Copy link
Contributor

Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new
Projects
None yet
Development

No branches or pull requests

4 participants