Font styling in Python using custom font

Hi @julied20, The font you set in your code is displayed only if it’s installed on your computer.

I ran this code:

import plotly.graph_objs as go

data = [
    go.Scatter(
        x=[0, 1, 2, 3, 4, 5, 6, 7, 8],
        y=[0, 1, 2, 3, 4, 5, 6, 7, 8]
    )
]
layout = go.Layout(width=500, height=300,
    title='Franklin Gothic Font',
    font=dict(family="Franklin Gothic", size=18)
)
fig = go.FigureWidget(data=data, layout=layout)
fig

and here is the plot:

It seems to be Franklin Gothic. Hence it is installed on my system.