In [1]:
from alma11 import xc1,c1,xp1,p1,xc2,c2,xp2,p2
import plotly.graph_objects as go
In [2]:
fig1 = go.Figure()
fig1.add_trace(go.Scatter(x=xc1, y=c1, mode="lines",name='chevrons'))
fig1.add_trace(go.Scatter(x=xp1, y=p1, mode="lines",name='poutre'))
fig1.update_layout(title='Poutre 1 (vers l\'entrée)',
                     yaxis_title='Hauteur depuis le carrelage (mm)', xaxis_title='Distance depuis la fenĂȘtre (cm)') 
In [3]:
fig1 = go.Figure()
fig1.add_trace(go.Scatter(x=xc2, y=c2, mode="lines",name='chevrons'))
fig1.add_trace(go.Scatter(x=xp2, y=p2, mode="lines",name='poutre'))
fig1.update_layout(title='Poutre 2 (vers le fond)',
                     yaxis_title='Hauteur depuis le carrelage (mm)', xaxis_title='Distance depuis la fenĂȘtre (cm)') # fig2 = go.Figure()
In [4]:
%%javascript
//hack to fix export
require.config({
  paths: {
    d3: 'https://cdnjs.cloudflare.com/ajax/libs/d3/5.9.2/d3',
    jquery: 'https://code.jquery.com/jquery-3.4.1.min',
    plotly: 'https://cdn.plot.ly/plotly-latest.min'
  },

  shim: {
    plotly: {
      deps: ['d3', 'jquery'],
      exports: 'plotly'
    }
  }
});
In [ ]: