Black Lives Matter. Please consider donating to Black Girls Code today.

Scatterternary problems with contineous colorscale

Hi,

I am experiencing problems when I try to make a ternary scatter plot and color by a contineous variable. The ternary plot appears to be placed on top of a binary plot in the background. Color of a factor variable is working fine.

Here is some code that reproduces the problem

library(plotly)


mtcars %>% 
  plot_ly(
    a = ~mpg,
    b = ~cyl,
    c = ~disp,
    text = ~gear,
    color = ~wt ,
    type = 'scatterternary',
    mode = 'markers',
    marker = list( 
      symbol ='circle',
      opacity = 0.6,
      size = 15
    )) 

I got an answer for the question at stackoverflow. Less a fix - more of a mask for the problem. It is possible to hide x and y axes like this:

ax <- list(
  title = "",
  zeroline = FALSE,
  showline = FALSE,
  showticklabels = FALSE,
  showgrid = FALSE
)

mtcars %>% 
  plot_ly(
    a = ~mpg,
    b = ~cyl,
    c = ~disp,
    text = ~gear,
    color = ~wt ,
    type = 'scatterternary',
    mode = 'markers',
    marker = list( 
      symbol ='circle',
      opacity = 0.6,
      size = 15
    ))%>%
  layout(xaxis = ax, yaxis = ax)