I am trying to reproduce a block of code from one of the examples listed here. The example shows usage of arrow markers with a go.Scatter object as follows:
import pandas as pd import plotly.express as px import plotly.graph_objects as go df = px.data.gapminder() fig = go.Figure() for x in df.loc[df.continent.isin(["Europe"])].country.unique()[:5]: fil = df.loc[(df.country.str.contains(x))] fig.add_trace( go.Scatter( x=fil["year"], y=fil["pop"], mode="lines+markers", marker=dict( symbol="arrow", size=15, angleref="previous", ), name=x, ) ) fig.show()
I’m able to run the code, but the arrow symbol does not display correctly. The
marker argument applies all of the given marker parameters except for
symbol='arrow'. The result produces dots and not arrows as shown below. If I change to
symbol=arrow-up`, it works correctly and I am able to see arrows.
I’m running plotly 5.13.0. Any help is appreciated.