Skip to content
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

Documentation request for subplots #49

Open
npmurphy opened this issue Feb 2, 2017 · 0 comments
Open

Documentation request for subplots #49

npmurphy opened this issue Feb 2, 2017 · 0 comments

Comments

@npmurphy
Copy link

npmurphy commented Feb 2, 2017

Some clarification of how to make and use subplots in the documentation or an example in
XPlot/src/XPlot.Plotly/Tests/Subplots.fsx
would be very helpful.

I have gotten this far, two axes are made but they are overlaid, and only one plot is visible.

#I "packages/XPlot.Plotly/lib/net45"
#I "packages/Newtonsoft.Json/lib/net45"
#r "XPlot.Plotly.dll"

open XPlot.Plotly
let layout = 
    Layout(
        title = "Heatmap and Time Series Plot beside each other",
        xaxis = Xaxis(),
        yaxis = Yaxis(),
        xaxis2 = Xaxis(),
        yaxis2 = Yaxis()
    )

let data = [ Heatmap(z=[ [ 1;3;4]; [6;4;2]; [8;5;4]]):> XPlot.Plotly.Graph.Trace
             Scatter( y = [1; 3; 6],  xaxis="x2", yaxis="y2") :> XPlot.Plotly.Graph.Trace ]

data 
    |> Chart.Plot
    |> Chart.WithLayout layout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants