Skip to content

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.

None yet

2 participants