Not able to see the logo in the plot

I’m trying to add logo in the plot but its not showing.

If i use below source given in the code then its working but when i use other logo it’s not working.

import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import plotly.graph_objects as go
import plotly.express as px
from plotly.graph_objs import *
import plotly.graph_objects as go
from plotly.subplots import make_subplots
from plotly.offline import iplot
import plotly.express as px

layout = go.Layout(
images=[dict(
source=“https://raw.githubusercontent.com/cldougl/plot_images/add_r_img/accuweather.jpeg”,
xref=“paper”, yref=“paper”,
x=0.1, y=1.05,
sizex=0.4, sizey=0.4,
xanchor=“center”, yanchor=“bottom”
)])

fig = go.Figure(layout=layout)
iplot(fig)

@maddy6 With Plotly 4.1.0 it works:

import plotly.graph_objects as go

layout = go.Layout(
                images=[dict(
                    source="https://raw.githubusercontent.com/cldougl/plot_images/add_r_img/accuweather.jpeg",
                    xref="paper", yref="paper",
                    x=0.1,  y=1.05,
                    sizex=0.4, sizey=0.4,
                    xanchor="center", yanchor="bottom")])

fig = go.Figure(data=data, layout=layout)
fig.show()

@empet Yes if i use the above source link then its working but if i use other image then its not working.

@empet can you use any other image and check the same?

@maddy6

It displays any image uploaded to a github repo, but not any image from the web.

Thanks @empet for the valuable information!

Hello guys, I have been contacted by matt to upload a library of to pull the company logo’s of the various ticker symbols which I did:

here is the link:

you can find all stock market images that you can integrate for Plot.ly. I have sync them with my Github repo.

Let me know if you need anything else,

Best,

Antoine