Plotly subplot parallel coordinates as subplot

I am tring to plot three subplots in one layout one of them should be parallel coordinates.
I already plotted cos, sin and sin but, when I change one of them to parallel coordinates I got un error message:

ValueError: Invalid property specified for object of type plotly.graph_objs.Parcoords: β€˜xaxis’

My code is

import numpy as np

import plotly.graph_objs as go
from plotly import tools
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot

fig = tools.make_subplots(rows=1, cols=3);

xi = np.linspace(-np.pi/2, np.pi/2);
cos = go.Scatter(
    name='cos(x)',
    x=xi,
    y=np.cos(xi)
);

sin = go.Scatter(
    name='sin(x)',
    x=xi,
    y=np.sin(xi),
    mode = 'markers'
);

par_coord_plot = go.Parcoords(
        line = dict(color = 'blue'),
        dimensions = list([
            dict(range = [1,5],
                 constraintrange = [1,2],
                 label = 'A', values = [1,4]),
            dict(range = [1.5,5],
                 tickvals = [1.5,3,4.5],
                 label = 'B', values = [3,1.5]),
            dict(range = [1,5],
                 tickvals = [1,2,4,5],
                 label = 'C', values = [2,4],
                 ticktext = ['text 1', 'text 2', 'text 3', 'text 4']),
            dict(range = [1,5],
                 label = 'D', values = [4,2])
        ])
    );


fig.append_trace(cos, 1, 1);
fig.append_trace(sin, 1, 2);
#fig.append_trace(sin, 1, 3);
#fig.append_trace(par_coord_plot, 1, 2);

plot(fig)




1 Like