I am having trouble plotting my data on a continuous scale instead of a discrete scale.
my data looks something like this
[Lat, Lon, Datapoints]
[ 12 , 24, 190]
[81, 61, 0]
[ 15, 123, 71]
when I use the color argument, my program ends up displaying only each point on datapoints individually instead of on a scale. Is there any way to fix this, here is my example code
with open('little_tokyo.geojson') as f:
js = json.load(f)
polygon = shape(js['features'][0]['geometry'])
plot = pd.read_csv('out.csv')
plot= plot[plot['LOCATION START DATE'].notna()]
plot['LOCATION START DATE'] = pd.to_datetime(plot['LOCATION START DATE'])
for all_values in range(len(plot['LOCATION START DATE'])):
plot.at[all_values, 'LOCATION START DATE'] = all_values
fig = px.scatter_mapbox(plot, lat= plot['LAT'], lon=plot['LON'], color=plot['LOCATION START DATE'],
mapbox_style='carto-positron', )
fig.show()