I am trying to overlay multiple plots on top of each other, specifically overlaying a ternary scatter plot on top of a ternary contour plot. I have seen some documentation showing how to overlay multiple traces, but I cannot seem to get it to work for this case where the plots are of different types (plotly.figure_factory.create_ternary_contour and plotly.express.scatter_ternary).
Of note, I am not trying to display the data points that generate the contour plot, I want to plot an entirely separate set of data on top of the contour plot, using the same axes.
Thanks for the help. Sorry, I’m pretty new to plotly, and maybe it’s helpful to clarify that I’m trying to do this in python (which I’m also pretty new to).
Essentially I have two plots that I am able to make separately, one that is a ternary scatter plot, made following the instructions from this page (https://plotly.com/python/ternary-plots/), specifically the ‘Ternary scatter plots with Plotly Express’ section. The other plot is a contour heatmap made with plotly figure factory based on this page (https://plotly.com/python/ternary-contour/). The two plots are generated for the same set of axes, but based on unique sets of data.
Since I originally posted this I’ve been looking into it more and I’m wondering now if both plots can be made using plotly graph objects and if that would simplify their merger. For example, using the code provided for contour plots here (https://plotly.com/python/ternary-scatter-contour/) and for ‘Ternary scatter plots with Graph Objects’ here (https://plotly.com/python/ternary-plots/). I’m not sure if that actually makes sense, however.