rookiepeng
2/17/2020 - 7:44 PM

plotly

from plotly.offline import iplot
import plotly.graph_objs as go
import plotly.express as px
data = go.Scatter(
    x=x_data,
    y=y_data,
    name='name',
    # fill='tozeroy',
    # mode='lines',
    # line=dict(width=0.5, color=px.colors.qualitative.Plotly[len(fire_offset)]),
    # showlegend=False,
)

layout = go.Layout(
    title='title',
    yaxis=dict(title='Amplitude (dB)',
    # scaleanchor="x",
    # scaleratio=1,
    ),
    xaxis=dict(title='Azimuth (deg)'),
    # height=800,
    # width=1200,
)

fig = go.Figure(data=date, layout=layout)
iplot(fig)

# fig.write_html("patterns.html")
# fig.write_image("patterns.svg")
fig = go.Figure(data=go.Scattergl(
    x = filtered_data['doppler[m/s]'],
    y = filtered_data[' power[dB]'],
    mode='markers',
    marker=dict(
#         color=np.random.randn(N),
        colorscale='Viridis',
        line_width=1
    )
))

fig.show()