Remaining points with plotly.offline

Hi,

I have a problem when it comes to plot graphs with plotly.offline. For example, I have a set of 2 graphs (for 2 days), and I want do display them one by one thanks to a slider. Sometimes it works nice, but sometimes I have one or more points of a graph which stays on the second graph.

I have a frame which contains my 2 graphs, and when I plot them โ€œmanuallyโ€ one by one, there is no problem.

You can see the problem on the following screenshot (the โ€œ99โ€ points on the left down corner has nothing to do here, it comes from the graph of the first day)

Here is the code (figure2 is the code for the 2 days in a row, and day1 and day2 are the two days drawn โ€œmanuallyโ€) :

import plotly


figure2 = dict()
figure2['data'] = [{'line': {'width': 2, 'color': 'rgb(125,125,125)'}, 'mode': 'lines', 'legendgroup': 'group0', 'x': [-7.599, -6.877, None], 'showlegend': False, 'hoverinfo': 'none', 'y': [-21.237, -21.721, None], 'type': 'scatter'}, {'line': {'width': 2, 'color': 'rgb(125,125,125)'}, 'mode': 'lines', 'legendgroup': 'group1', 'x': [-14.859, -15.732, None, -12.771, -13.28, None, -15.049, -13.034, None, 1.214, -1.718, None, -11.254, -13.034, None, -8.721, -10.572, None, -15.732, -15.929, None, -10.572, -13.034, None, -1.718, -6.877, None, -15.929, -14.636, None, -13.034, -14.636, None], 'showlegend': False, 'hoverinfo': 'none', 'y': [-21.563, -22.948, None, -19.61, -22.601, None, -28.471, -26.694, None, -31.723, -25.249, None, -28.808, -26.694, None, -25.653, -26.357, None, -22.948, -24.725, None, -26.357, -26.694, None, -25.249, -21.721, None, -24.725, -25.652, None, -26.694, -25.652, None], 'type': 'scatter'}, {'line': {'width': 2, 'color': 'rgb(125,125,125)'}, 'mode': 'lines', 'legendgroup': 'group2', 'x': [-19.876, -14.636, None], 'showlegend': False, 'hoverinfo': 'none', 'y': [-30.081, -25.652, None], 'type': 'scatter'}, {'line': {'width': 2, 'color': 'rgb(125,125,125)'}, 'name': 'tronc', 'mode': 'lines', 'x': [-14.636, -13.28, None, -13.28, -14.636, None, -13.28, -9.315, None, -9.315, -13.28, None, -9.315, -6.941, None, -6.941, -6.877, None, -6.941, -9.315, None, -6.877, -6.941, None], 'showlegend': False, 'y': [-25.652, -22.601, None, -22.601, -25.652, None, -22.601, -23.546, None, -23.546, -22.601, None, -23.546, -22.44, None, -22.44, -21.721, None, -22.44, -23.546, None, -21.721, -22.44, None], 'hoverinfo': 'none', 'visible': True, 'type': 'scatter'}, {'name': 'WheatMinneapolis', 'mode': 'markers+text', 'text': [' 3', ' 5', ' 7', ' 9'], 'textposition': ['top center', 'top center', 'top center', 'top center'], 'y': [-23.546, -22.44, -21.721, -21.237], 'type': 'scatter', 'legendgroup': 'group0', 'x': [-9.315, -6.941, -6.877, -7.599], 'marker': {'line': {'width': 0.5, 'color': 'black'}, 'symbol': 'dot', 'color': ['rgb(0, 0, 127)', 'rgb(0, 0, 127)', 'rgb(0, 0, 127)', 'rgb(0, 0, 127)'], 'opacity': 0.9, 'size': 15}, 'hoverinfo': 'name+text', 'textfont': {'color': ['rgb(0, 0, 127)', 'rgb(0, 0, 127)', 'rgb(0, 0, 127)', 'rgb(0, 0, 127)'], 'family': ['Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif'], 'size': [20, 20, 20, 20]}, 'opacity': 1}, {'name': 'Corn', 'mode': 'markers+text', 'text': [' 12', ' 15', ' 17', ' 19', ' 21', ' 24', ' 3', ' 31', ' 36', ' 5', ' 7', ' 9', ' 99'], 'textposition': ['top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center'], 'y': [-22.948, -24.725, -25.652, -26.694, -26.357, -21.563, -19.61, -28.471, -31.723, -22.601, -28.808, -25.653, -25.249], 'type': 'scatter', 'legendgroup': 'group1', 'x': [-15.732, -15.929, -14.636, -13.034, -10.572, -14.859, -12.771, -15.049, 1.214, -13.28, -11.254, -8.721, -1.718], 'marker': {'line': {'width': 0.5, 'color': 'black'}, 'symbol': 'dot', 'color': ['rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)'], 'opacity': 0.9, 'size': 15}, 'hoverinfo': 'name+text', 'textfont': {'color': ['rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)'], 'family': ['Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif'], 'size': [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20]}, 'opacity': 1}, {'name': 'EURCAD', 'mode': 'markers+text', 'text': [' 99'], 'textposition': ['top center'], 'y': [-30.081], 'type': 'scatter', 'legendgroup': 'group2', 'x': [-19.876], 'marker': {'line': {'width': 0.5, 'color': 'black'}, 'symbol': 'dot', 'color': ['rgb(132, 0, 0)'], 'opacity': 0.9, 'size': 15}, 'hoverinfo': 'name+text', 'textfont': {'color': ['rgb(132, 0, 0)'], 'family': ['Balto, sans-serif'], 'size': [20]}, 'opacity': 1}]
figure2['layout'] = {'legend': {'traceorder': 'grouped', 'bordercolor': '#FFFFFF', 'font': {'color': '#000', 'family': 'sans-serif', 'size': 12}, 'borderwidth': 2, 'bgcolor': '#E2E2E2'}, 'margin': {'t': 100}, 'sliders': [{'xanchor': 'left', 'yanchor': 'top', 'len': 0.9, 'x': 0.1, 'transition': {'duration': 800, 'easing': 'cubic-in-out'}, 'steps': [{'method': 'animate', 'label': '2013-08-30', 'args': [['2013-08-30'], {'mode': 'immediate', 'frame': {'redraw': False, 'duration': 800}, 'transition': {'duration': 800}}]}, {'method': 'animate', 'label': '2013-09-04', 'args': [['2013-09-04'], {'mode': 'immediate', 'frame': {'redraw': False, 'duration': 800}, 'transition': {'duration': 800}}]}], 'active': 0, 'currentvalue': {'xanchor': 'right', 'visible': True, 'font': {'size': 20}, 'prefix': 'Date:'}, 'y': 0, 'pad': {'b': 10, 't': 50}}], 'updatemenus': [{'xanchor': 'right', 'yanchor': 'top', 'x': 0.1, 'showactive': False, 'buttons': [{'method': 'relayout', 'label': 'Play', 'args': [None]}, {'method': 'relayout', 'label': 'Pause', 'args': [[None], {'mode': 'immediate', 'frame': {'redraw': True, 'duration': 0}, 'transition': {'duration': 0}}]}], 'pad': {'r': 10, 't': 87}, 'direction': 'left', 'y': 0, 'type': 'buttons'}], 'showlegend': True, 'autosize': True, 'hovermode': 'closest', 'yaxis': {'showgrid': False, 'showticklabels': False, 'zeroline': False}, 'title': 'MST Network', 'xaxis': {'showgrid': False, 'showticklabels': False, 'zeroline': False}}
figure2['frames'] = [{'data': [{'line': {'width': 2, 'color': 'rgb(125,125,125)'}, 'mode': 'lines', 'legendgroup': 'group0', 'x': [-4.798, -4.333, None], 'showlegend': False, 'hoverinfo': 'none', 'y': [-24.182, -24.916, None], 'type': 'scatter'}, {'line': {'width': 2, 'color': 'rgb(125,125,125)'}, 'mode': 'lines', 'legendgroup': 'group1', 'x': [-12.222, -13.013, None, -9.837, -11.004, None, -13.962, -12.105, None, 3.818, -2.04, None, -10.345, -12.105, None, -7.769, -9.627, None, -13.013, -13.564, None, -9.627, -12.105, None, -2.04, -4.333, None, -13.564, -13.672, None, -12.105, -13.672, None], 'showlegend': False, 'hoverinfo': 'none', 'y': [-22.875, -24.31, None, -22.791, -25.59, None, -30.631, -28.69, None, -34.756, -30.731, None, -30.821, -28.69, None, -27.808, -28.496, None, -24.31, -26.011, None, -28.496, -28.69, None, -30.731, -24.916, None, -26.011, -27.598, None, -28.69, -27.598, None], 'type': 'scatter'}, {'line': {'width': 2, 'color': 'rgb(125,125,125)'}, 'mode': 'lines', 'legendgroup': 'group2', 'x': [-20.485, -13.672, None], 'showlegend': False, 'hoverinfo': 'none', 'y': [-26.785, -27.598, None], 'type': 'scatter'}, {'line': {'width': 2, 'color': 'rgb(125,125,125)'}, 'name': 'tronc', 'mode': 'lines', 'x': [-13.672, -11.004, None, -11.004, -13.672, None, -11.004, -7.058, None, -7.058, -11.004, None, -7.058, -5.055, None, -5.055, -4.333, None, -5.055, -7.058, None, -4.333, -5.055, None], 'showlegend': False, 'y': [-27.598, -25.59, None, -25.59, -27.598, None, -25.59, -26.612, None, -26.612, -25.59, None, -26.612, -24.925, None, -24.925, -24.916, None, -24.925, -26.612, None, -24.916, -24.925, None], 'hoverinfo': 'none', 'visible': True, 'type': 'scatter'}, {'name': 'WheatMinneapolis', 'mode': 'markers+text', 'text': [' 3', ' 5', ' 7', ' 9'], 'textposition': ['top center', 'top center', 'top center', 'top center'], 'y': [-26.612, -24.925, -24.916, -24.182], 'type': 'scatter', 'legendgroup': 'group0', 'x': [-7.058, -5.055, -4.333, -4.798], 'marker': {'line': {'width': 0.5, 'color': 'black'}, 'symbol': 'dot', 'color': ['rgb(0, 0, 127)', 'rgb(0, 0, 127)', 'rgb(0, 0, 127)', 'rgb(0, 0, 127)'], 'opacity': 0.9, 'size': 15}, 'hoverinfo': 'name+text', 'textfont': {'color': ['rgb(0, 0, 127)', 'rgb(0, 0, 127)', 'rgb(0, 0, 127)', 'rgb(0, 0, 127)'], 'family': ['Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif'], 'size': [20, 20, 20, 20]}, 'opacity': 1}, {'name': 'Corn', 'mode': 'markers+text', 'text': [' 12', ' 15', ' 17', ' 19', ' 21', ' 24', ' 3', ' 31', ' 36', ' 5', ' 7', ' 9', ' 99'], 'textposition': ['top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center'], 'y': [-24.31, -26.011, -27.598, -28.69, -28.496, -22.875, -22.791, -30.631, -34.756, -25.59, -30.821, -27.808, -30.731], 'type': 'scatter', 'legendgroup': 'group1', 'x': [-13.013, -13.564, -13.672, -12.105, -9.627, -12.222, -9.837, -13.962, 3.818, -11.004, -10.345, -7.769, -2.04], 'marker': {'line': {'width': 0.5, 'color': 'black'}, 'symbol': 'dot', 'color': ['rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)'], 'opacity': 0.9, 'size': 15}, 'hoverinfo': 'name+text', 'textfont': {'color': ['rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)'], 'family': ['Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif'], 'size': [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20]}, 'opacity': 1}, {'name': 'EURCAD', 'mode': 'markers+text', 'text': [' 99'], 'textposition': ['top center'], 'y': [-26.785], 'type': 'scatter', 'legendgroup': 'group2', 'x': [-20.485], 'marker': {'line': {'width': 0.5, 'color': 'black'}, 'symbol': 'dot', 'color': ['rgb(132, 0, 0)'], 'opacity': 0.9, 'size': 15}, 'hoverinfo': 'name+text', 'textfont': {'color': ['rgb(132, 0, 0)'], 'family': ['Balto, sans-serif'], 'size': [20]}, 'opacity': 1}], 'name': '2013-08-30'}, {'data': [{'line': {'width': 2, 'color': 'rgb(125,125,125)'}, 'mode': 'lines', 'legendgroup': 'group0', 'x': [-11.848, -12.706, None], 'showlegend': False, 'hoverinfo': 'none', 'y': [13.177, 13.29, None], 'type': 'scatter'}, {'line': {'width': 2, 'color': 'rgb(125,125,125)'}, 'mode': 'lines', 'legendgroup': 'group1', 'x': [-9.974, -8.892, None, -10.633, -10.772, None, -6.246, -5.86, None, 0.36, -6.658, None, -3.87, -5.86, None, -4.073, -3.852, None, -9.322, -12.706, None, -8.892, -7.701, None, -3.852, -5.86, None, -7.701, -7.555, None, -5.86, -7.555, None], 'showlegend': False, 'hoverinfo': 'none', 'y': [14.42, 15.599, None, 16.237, 19.288, None, 14.979, 17.615, None, 25.711, 25.247, None, 19.506, 17.615, None, 14.212, 16.157, None, 7.992, 13.29, None, 15.599, 16.907, None, 16.157, 17.615, None, 16.907, 18.487, None, 17.615, 18.487, None], 'type': 'scatter'}, {'line': {'width': 2, 'color': 'rgb(125,125,125)'}, 'name': 'tronc', 'mode': 'lines', 'x': [-7.555, -10.772, None, -7.555, -6.658, None, -10.772, -7.555, None, -10.772, -13.604, None, -6.658, -7.555, None, -13.604, -10.772, None, -13.604, -13.267, None, -13.267, -12.706, None, -13.267, -13.604, None, -12.706, -13.267, None], 'showlegend': False, 'y': [18.487, 19.288, None, 18.487, 25.247, None, 19.288, 18.487, None, 19.288, 16.362, None, 25.247, 18.487, None, 16.362, 19.288, None, 16.362, 13.747, None, 13.747, 13.29, None, 13.747, 16.362, None, 13.29, 13.747, None], 'hoverinfo': 'none', 'visible': True, 'type': 'scatter'}, {'name': 'WheatMinneapolis', 'mode': 'markers+text', 'text': [' 3', ' 5', ' 7', ' 9'], 'textposition': ['top center', 'top center', 'top center', 'top center'], 'y': [16.362, 13.747, 13.29, 13.177], 'type': 'scatter', 'legendgroup': 'group0', 'x': [-13.604, -13.267, -12.706, -11.848], 'marker': {'line': {'width': 0.5, 'color': 'black'}, 'symbol': 'dot', 'color': ['rgb(0, 0, 127)', 'rgb(0, 0, 127)', 'rgb(0, 0, 127)', 'rgb(0, 0, 127)'], 'opacity': 0.9, 'size': 15}, 'hoverinfo': 'name+text', 'textfont': {'color': ['rgb(0, 0, 127)', 'rgb(0, 0, 127)', 'rgb(0, 0, 127)', 'rgb(0, 0, 127)'], 'family': ['Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif'], 'size': [20, 20, 20, 20]}, 'opacity': 1}, {'name': 'Corn', 'mode': 'markers+text', 'text': [' 12', ' 15', ' 17', ' 19', ' 21', ' 24', ' 3', ' 31', ' 36', ' 5', ' 7', ' 9', ' 99'], 'textposition': ['top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center'], 'y': [15.599, 16.907, 18.487, 17.615, 16.157, 14.42, 16.237, 14.979, 25.711, 19.288, 19.506, 14.212, 7.992], 'type': 'scatter', 'legendgroup': 'group1', 'x': [-8.892, -7.701, -7.555, -5.86, -3.852, -9.974, -10.633, -6.246, 0.36, -10.772, -3.87, -4.073, -9.322], 'marker': {'line': {'width': 0.5, 'color': 'black'}, 'symbol': 'dot', 'color': ['rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)'], 'opacity': 0.9, 'size': 15}, 'hoverinfo': 'name+text', 'textfont': {'color': ['rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)'], 'family': ['Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif'], 'size': [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20]}, 'opacity': 1}, {'name': 'EURCAD', 'mode': 'markers+text', 'text': [' 99'], 'textposition': ['top center'], 'y': [25.247], 'type': 'scatter', 'legendgroup': 'group2', 'x': [-6.658], 'marker': {'line': {'width': 0.5, 'color': 'black'}, 'symbol': 'dot', 'color': ['rgb(132, 0, 0)'], 'opacity': 0.9, 'size': 15}, 'hoverinfo': 'name+text', 'textfont': {'color': ['rgb(132, 0, 0)'], 'family': ['Balto, sans-serif'], 'size': [20]}, 'opacity': 1}], 'name': '2013-09-04'}]

day1 = dict()
day2 = dict()

day1['data'] = [{'line': {'width': 2, 'color': 'rgb(125,125,125)'}, 'mode': 'lines', 'legendgroup': 'group0', 'x': [-7.599, -6.877, None], 'showlegend': False, 'hoverinfo': 'none', 'y': [-21.237, -21.721, None], 'type': 'scatter'}, {'line': {'width': 2, 'color': 'rgb(125,125,125)'}, 'mode': 'lines', 'legendgroup': 'group1', 'x': [-14.859, -15.732, None, -12.771, -13.28, None, -15.049, -13.034, None, 1.214, -1.718, None, -11.254, -13.034, None, -8.721, -10.572, None, -15.732, -15.929, None, -10.572, -13.034, None, -1.718, -6.877, None, -15.929, -14.636, None, -13.034, -14.636, None], 'showlegend': False, 'hoverinfo': 'none', 'y': [-21.563, -22.948, None, -19.61, -22.601, None, -28.471, -26.694, None, -31.723, -25.249, None, -28.808, -26.694, None, -25.653, -26.357, None, -22.948, -24.725, None, -26.357, -26.694, None, -25.249, -21.721, None, -24.725, -25.652, None, -26.694, -25.652, None], 'type': 'scatter'}, {'line': {'width': 2, 'color': 'rgb(125,125,125)'}, 'mode': 'lines', 'legendgroup': 'group2', 'x': [-19.876, -14.636, None], 'showlegend': False, 'hoverinfo': 'none', 'y': [-30.081, -25.652, None], 'type': 'scatter'}, {'line': {'width': 2, 'color': 'rgb(125,125,125)'}, 'name': 'tronc', 'mode': 'lines', 'x': [-14.636, -13.28, None, -13.28, -14.636, None, -13.28, -9.315, None, -9.315, -13.28, None, -9.315, -6.941, None, -6.941, -6.877, None, -6.941, -9.315, None, -6.877, -6.941, None], 'showlegend': False, 'y': [-25.652, -22.601, None, -22.601, -25.652, None, -22.601, -23.546, None, -23.546, -22.601, None, -23.546, -22.44, None, -22.44, -21.721, None, -22.44, -23.546, None, -21.721, -22.44, None], 'hoverinfo': 'none', 'visible': True, 'type': 'scatter'}, {'name': 'WheatMinneapolis', 'mode': 'markers+text', 'text': [' 3', ' 5', ' 7', ' 9'], 'textposition': ['top center', 'top center', 'top center', 'top center'], 'y': [-23.546, -22.44, -21.721, -21.237], 'type': 'scatter', 'legendgroup': 'group0', 'x': [-9.315, -6.941, -6.877, -7.599], 'marker': {'line': {'width': 0.5, 'color': 'black'}, 'symbol': 'dot', 'color': ['rgb(0, 0, 127)', 'rgb(0, 0, 127)', 'rgb(0, 0, 127)', 'rgb(0, 0, 127)'], 'opacity': 0.9, 'size': 15}, 'hoverinfo': 'name+text', 'textfont': {'color': ['rgb(0, 0, 127)', 'rgb(0, 0, 127)', 'rgb(0, 0, 127)', 'rgb(0, 0, 127)'], 'family': ['Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif'], 'size': [20, 20, 20, 20]}, 'opacity': 1}, {'name': 'Corn', 'mode': 'markers+text', 'text': [' 12', ' 15', ' 17', ' 19', ' 21', ' 24', ' 3', ' 31', ' 36', ' 5', ' 7', ' 9', ' 99'], 'textposition': ['top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center'], 'y': [-22.948, -24.725, -25.652, -26.694, -26.357, -21.563, -19.61, -28.471, -31.723, -22.601, -28.808, -25.653, -25.249], 'type': 'scatter', 'legendgroup': 'group1', 'x': [-15.732, -15.929, -14.636, -13.034, -10.572, -14.859, -12.771, -15.049, 1.214, -13.28, -11.254, -8.721, -1.718], 'marker': {'line': {'width': 0.5, 'color': 'black'}, 'symbol': 'dot', 'color': ['rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)'], 'opacity': 0.9, 'size': 15}, 'hoverinfo': 'name+text', 'textfont': {'color': ['rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)'], 'family': ['Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif'], 'size': [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20]}, 'opacity': 1}, {'name': 'EURCAD', 'mode': 'markers+text', 'text': [' 99'], 'textposition': ['top center'], 'y': [-30.081], 'type': 'scatter', 'legendgroup': 'group2', 'x': [-19.876], 'marker': {'line': {'width': 0.5, 'color': 'black'}, 'symbol': 'dot', 'color': ['rgb(132, 0, 0)'], 'opacity': 0.9, 'size': 15}, 'hoverinfo': 'name+text', 'textfont': {'color': ['rgb(132, 0, 0)'], 'family': ['Balto, sans-serif'], 'size': [20]}, 'opacity': 1}]
day2['data'] = [{'line': {'width': 2, 'color': 'rgb(125,125,125)'}, 'mode': 'lines', 'legendgroup': 'group0', 'x': [-11.848, -12.706, None], 'showlegend': False, 'hoverinfo': 'none', 'y': [13.177, 13.29, None], 'type': 'scatter'}, {'line': {'width': 2, 'color': 'rgb(125,125,125)'}, 'mode': 'lines', 'legendgroup': 'group1', 'x': [-9.974, -8.892, None, -10.633, -10.772, None, -6.246, -5.86, None, 0.36, -6.658, None, -3.87, -5.86, None, -4.073, -3.852, None, -9.322, -12.706, None, -8.892, -7.701, None, -3.852, -5.86, None, -7.701, -7.555, None, -5.86, -7.555, None], 'showlegend': False, 'hoverinfo': 'none', 'y': [14.42, 15.599, None, 16.237, 19.288, None, 14.979, 17.615, None, 25.711, 25.247, None, 19.506, 17.615, None, 14.212, 16.157, None, 7.992, 13.29, None, 15.599, 16.907, None, 16.157, 17.615, None, 16.907, 18.487, None, 17.615, 18.487, None], 'type': 'scatter'}, {'line': {'width': 2, 'color': 'rgb(125,125,125)'}, 'name': 'tronc', 'mode': 'lines', 'x': [-7.555, -10.772, None, -7.555, -6.658, None, -10.772, -7.555, None, -10.772, -13.604, None, -6.658, -7.555, None, -13.604, -10.772, None, -13.604, -13.267, None, -13.267, -12.706, None, -13.267, -13.604, None, -12.706, -13.267, None], 'showlegend': False, 'y': [18.487, 19.288, None, 18.487, 25.247, None, 19.288, 18.487, None, 19.288, 16.362, None, 25.247, 18.487, None, 16.362, 19.288, None, 16.362, 13.747, None, 13.747, 13.29, None, 13.747, 16.362, None, 13.29, 13.747, None], 'hoverinfo': 'none', 'visible': True, 'type': 'scatter'}, {'name': 'WheatMinneapolis', 'mode': 'markers+text', 'text': [' 3', ' 5', ' 7', ' 9'], 'textposition': ['top center', 'top center', 'top center', 'top center'], 'y': [16.362, 13.747, 13.29, 13.177], 'type': 'scatter', 'legendgroup': 'group0', 'x': [-13.604, -13.267, -12.706, -11.848], 'marker': {'line': {'width': 0.5, 'color': 'black'}, 'symbol': 'dot', 'color': ['rgb(0, 0, 127)', 'rgb(0, 0, 127)', 'rgb(0, 0, 127)', 'rgb(0, 0, 127)'], 'opacity': 0.9, 'size': 15}, 'hoverinfo': 'name+text', 'textfont': {'color': ['rgb(0, 0, 127)', 'rgb(0, 0, 127)', 'rgb(0, 0, 127)', 'rgb(0, 0, 127)'], 'family': ['Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif'], 'size': [20, 20, 20, 20]}, 'opacity': 1}, {'name': 'Corn', 'mode': 'markers+text', 'text': [' 12', ' 15', ' 17', ' 19', ' 21', ' 24', ' 3', ' 31', ' 36', ' 5', ' 7', ' 9', ' 99'], 'textposition': ['top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center', 'top center'], 'y': [15.599, 16.907, 18.487, 17.615, 16.157, 14.42, 16.237, 14.979, 25.711, 19.288, 19.506, 14.212, 7.992], 'type': 'scatter', 'legendgroup': 'group1', 'x': [-8.892, -7.701, -7.555, -5.86, -3.852, -9.974, -10.633, -6.246, 0.36, -10.772, -3.87, -4.073, -9.322], 'marker': {'line': {'width': 0.5, 'color': 'black'}, 'symbol': 'dot', 'color': ['rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)'], 'opacity': 0.9, 'size': 15}, 'hoverinfo': 'name+text', 'textfont': {'color': ['rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)', 'rgb(118, 255, 128)'], 'family': ['Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif', 'Balto, sans-serif'], 'size': [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20]}, 'opacity': 1}, {'name': 'EURCAD', 'mode': 'markers+text', 'text': [' 99'], 'textposition': ['top center'], 'y': [25.247], 'type': 'scatter', 'legendgroup': 'group2', 'x': [-6.658], 'marker': {'line': {'width': 0.5, 'color': 'black'}, 'symbol': 'dot', 'color': ['rgb(132, 0, 0)'], 'opacity': 0.9, 'size': 15}, 'hoverinfo': 'name+text', 'textfont': {'color': ['rgb(132, 0, 0)'], 'family': ['Balto, sans-serif'], 'size': [20]}, 'opacity': 1}]




plotly.offline.plot(day1, filename='day1.html')
plotly.offline.plot(day2, filename='day2.html')
plotly.offline.plot(figure2, filename='test2.html')