---Update--- 1/27/2018
After looking into it. I have figured that I need to go a little different direction. Python Dash looks like the best option to go but I am still having some problems figuring out how to make the graph dynamic and add annotations to the graph as I click on data points.
I want to take the example from dash interactive graph first example and combine it with annotation functionality - an example of Annotation.
This is exactly what I want but I'm not sure how to implement it in the python version of dash - Styling and Formatting Annotations
1/20/2018
I have been looking for a way to program a datatip tool or script similar to Matlab's datatip as a python plotly version. I haven't been successful since it seems like the on_click or mouse_event feature in plotly are not documented really well. I am trying to create a script or class that will interface with plotly using python to do similar functionality as Matlab's datatip tool.
This is what I have found so far.
This example shows clicking on a bar graph to visit url on click.
This example creates data points upon clicking Plotly.js create a point on click.
This one is mouse event handling - mouse-events
This is the best example but it's for javascript and I'm not sure if there is one for python - plotlyjs-events
I am using Plotly's standard example to perform test scripts, but haven't been successful yet. Any advice or help is appreciated.
Below is plotly's standard example.
import plotly
import plotly.graph_objs as go
import plotly.widgets.graph_widget as gw
# Create random data with numpy
import numpy as np
N = 1000
random_x = np.random.randn(N)
random_y = np.random.randn(N)
# Create a trace
trace = go.Scatter(
x = random_x,
y = random_y,
mode = 'markers'
)
data = [trace]
plotly.offline.plot(data, filename='basic-scatter')