Hi to all,
I am not able to download a geo scatter plot into an image.
My code is :
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib.pyplot import figure
from datetime import timedelta
import numpy as np
from matplotlib.ticker import MaxNLocator
import dataframe_image as dfi
import plotly.express as px
import kaleido
import plotly.io as pio
from IPython.display import Image
import datetime as dt
df_loc = pd.read_csv(ā./Excels/Projectes.csvā, delimiter=ā,ā)
d_loc = df_loc[[āNameā,āAssignā,āPhase Dateā, āFinal Dateā, āPropertyā,āStatusā,āStatus2ā,āLocationā,āBudgetā]]
df_loc = df_loc[[āNameā,āLocationā,āBudgetā]]
fig = px.scatter_geo(df_loc, locations=āLocationā, color = āNameā, size = āBudgetā)
fig.write_image(āImages/Location_automatica.jpegā)
#fig.show()
If I unncomment fig.show, the plot shows in a local browser but if I try to āwrite_imageā the proram does not stop. It seems like it is in a bucle.
Any suggestions ?
Thanks in advance.