mplfinance icon indicating copy to clipboard operation
mplfinance copied to clipboard

Dumping renko data to dictionary without chart generation

Open NaveenKota532 opened this issue 2 years ago • 1 comments

Dear Team,

I am using following statement

renko_dict = {} # reassign every time before your fplot.plot(dataframe, type='renko', renko_params=dict(brick_size=brick_size), return_calculated_values=renko_dict, returnfig=True)

If I am using returnfig =False, chart is getting generated. If I am using returnfig =True, I am getting the following exception Fail to create pixmap with Tk_GetPixmap in TkImgPhotoInstanceSetSize

I would like to get the renko data for a given dataframe without chart. could anyone pls help!

With Best Regards, Naveen

NaveenKota532 avatar Jun 17 '22 08:06 NaveenKota532

Need more information about your environment, and your full code:

Fail to create pixmap with Tk_GetPixmap in TkImgPhotoInstanceSetSize

This is not an mplfinance exception. There is something else you are doing. returnfig=True should do the trick for you. Alternatively in external axes mode mplfinance will also not display the plot.

DanielGoldfarb avatar Jun 19 '22 11:06 DanielGoldfarb