Hi, all i’m playing with plotly but as python script due to the fact that several graph types are not implemented in JS plotly and for the graph types that are implemented they are not implemented completely (color by data for example in violin plot).
A typical example is boxplot, this graph type is not present in Plotly but plotly has a very nice interactive implementation of it and i did it very quickly with python script.
The only thing I can’t sort out is that when i invoke a python plotly script in knime the interactive boxplot is open in a browser window while with JS Plotly it’s open into a minimal Knime window.
I wonder is it’s possible to do the same with python plotly and have the graph into a minimal knime window.
This is an example code:
import plotly.express as px
fig = px.box(input_table, x="Session", y="speed", color="CAR", points='all', title="Max Speed", template="simple_white")
fig.update_traces(quartilemethod="exclusive") # or "inclusive", or "linear" by default
fig.update_xaxes(showgrid=True, showline=True, linewidth=2, linecolor='black', mirror=True)
fig.update_yaxes(showgrid=True, showline=True, linewidth=2, linecolor='black', mirror=True)
fig.show()
output_image = fig.to_image(format="png")