Hi to all,
Anyone has information (solution) to generate a parallel coordinates with Plotly offline on Python ?
The online version works OK.
Many thanks,
VGA
Hi to all,
Anyone has information (solution) to generate a parallel coordinates with Plotly offline on Python ?
The online version works OK.
Many thanks,
VGA
I think you just need to update your Python version. It probably doesnโt have the latest plotly.js download.
Already done but with no effect.
@vga have you updated to 2.0.6? Thatโs the version with the latest plotly.js download for offline.
Yes.
the following code is used:
from plotly.offline import plot #python package for semi interactive plots and HTML format
from plotly import tools #python package for semi interactive plots and HTML format
import plotly.graph_objs as go #python package for semi interactive plots and HTML format
data = [
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])
])
)
]
plot(data, filename=โmy-graph.htmlโ, image=โpngโ);
Sorry @vga, itโs version 2.0.7 (not 2.0.6) that youโll need: https://github.com/plotly/plotly.py/blob/master/CHANGELOG.md#207---2017-04-07
Excellent. It works now
Many thanks.