Beispiel #1
0
                'size': 24
            },
            'xanchor': 'center',
            'yanchor': 'bottom',
            'text': '<b>L6a activity for locations along diagonal</b>',
            'xref': 'paper',
            'yref': 'paper',
            'x': 0.5,
            'y': 1.1,
            'showarrow': False,
        }]
    }
    fig = {
        'data': data,
        'layout': layout,
    }
    plotPath = plotly.offline.plot(fig, filename='temp.html', auto_open=True)
    print("url=", plotPath)

    # Can't save image files in offline mode
    plotly.plotly.image.save_as(fig,
                                filename=os.path.join("images",
                                                      "L6_activity.pdf"),
                                scale=1)


if __name__ == "__main__":
    t = Thalamus()
    encoder = createLocationEncoder(t)
    plotL6SDRs(encoder, t)