I am trying to edit the font title of my graph in Plotly. I’ve read this article on how to change the title font: https://plot.ly/python/font/ but I can’t manage to make it work with the font I want (Franklin Gothic) which is installed on my computer. I don’t have any error but my title is written with the default font.
Is there a way to find all the available fonts in Plotly? And is it possible to add new custom fonts?
I am working with plotly 3.3.0 on jupyter notebook.
I’m encountering the same problem. I have the custom font I want installed on my server on EC2, but figures fail to render the custom font.
The custom font renders correctly on my local machine but not on the server. Is there a way to check what fonts are available to plotly? And where it tried to load them from?
import plotly.graph_objects as go
import numpy as np
fig=go.Figure(go.Scatter(x=np.arange(5), y=np.random.rand(5)))
fig.update_layout(width=600, height=400,
title=dict(text="This is my title",
x=0.5, y=0.93,
font_family="Open Sherif",
font_size=20,
font_color="red"),
font_family="Open Sherif",
font_size=10)
Were you able to solve this problem? I am also having trouble finding which fonts are actually available and how to support custom fonts (*.ttf e.g.) @empet ?