Replies: 4 comments 1 reply
-
I use set_x_pos and checked the min, max is correct in the df, still not work |
Beta Was this translation helpful? Give feedback.
-
for timezone; I now use fplt.display_timezone = gettz('CCT'); it works; use fplt.display_timezone = gettz('Asia/Shanghai') will not work |
Beta Was this translation helpful? Give feedback.
-
for set_x_pos, I found if add a button click to run, it works, but if not, no matter where I put the code, it not work. |
Beta Was this translation helpful? Give feedback.
-
This sets the number of candles shown to 10,000,000,000:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, first, thanks and finplot has the great performance.
question1, by default, the view only show part of the full range of the data, how to set to show the full range at start.
below to create the plotwidget:
self.plot_widget= fplt.create_plot_widget(master=window, rows=3, init_zoom_periods=100)
I try use:
vb.v_zoom_scale = 1
fplt.refresh()
but seem not work, its still show the default part of the range. thanks
question2, I refered the example analyze.py to prepare the data, but I found the date showd on the x-axis has 3 hours gap. I use the data for china maket, the close time is 3pm, but the lable shows is 6pm
I use it like:
fplt.timestamp_format = '%Y-%M-%D %H:%M'
fplt.timezone = timedelta(hours=+8)
and below to make the origianl data to what finplot use:
d['time'] = d['trade_date'].apply(lambda x: int(x.timestamp()))
df['date']=d['time']
df = pd.concat([df, d['time']], axis=1)
df = df.set_index('time').sort_index(axis=0, ascending=True, kind='mergesort')
Thank!
Beta Was this translation helpful? Give feedback.
All reactions