Skip to content

Clear cartesian axis titles when deleting subplots #1393

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

Merged
merged 2 commits into from
Feb 27, 2017

Conversation

etpinard
Copy link
Contributor

Previously,

var newPlotLayout = {
  "xaxis":{ "title":"xAxis Name" },
  "yaxis":{ "title":"yAxis Name" }
}

var traces = [ {
  "type":"scattergl",  // or any other non-cartesian type
  "x":[1,2,3,4,5,6,7],
  "y":[0,5,8,9,8,5,0]
}]

Plotly.newPlot('graph', [], newPlotLayout).then(function(){
  Plotly.addTraces('graph', traces);
})

yielded

image

After this fix, we get:

image

as desired.

@etpinard etpinard added status: reviewable bug something broken labels Feb 17, 2017
@etpinard etpinard added this to the 1.24.0 milestone Feb 17, 2017
@alexcjohnson
Copy link
Collaborator

Ah, the annoying orphan axes... 💃

@etpinard etpinard merged commit 9dfc929 into master Feb 27, 2017
@etpinard etpinard deleted the cartesian-clean-ax-titles branch February 27, 2017 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants