Open BlackArbsCEO opened 1 month ago
@twkim112 any ideas what this could be? I believe you changed this code recently
Python version: 3.11.9 | packaged by conda-forge | (main, Apr 19 2024, 18:34:54) [Clang 16.0.6 ]
numpy : 2.0.0
matplotlib : 3.9.1
seaborn : 0.13.2
pandas : 2.2.2
quantstats_lumi: 0.3.1
I think I've found the source of the problem. When I call qs._plotting.core.monthly_heatmap_detailedview
directly with the same data used in monthly_returns_detailedview, it works without errors. Here's what I observed:
>>> cell.get_color
Out[6]: <bound method Text.get_color of Text(8.5, 0.5, '349615008342768344328711938750155849728.00')>
>>> cell.get_color()
Out[7]: '.15'
I found bugs in wrapper function. I'll work on fixing this today.
@BlackArbsCEO Could you please try calling qs._plotting.core.monthly_heatmap_detailedview
directly with the same data you used in monthly_returns_detailedview
? This might help us isolate the issue.
I created PR about wrapper function.
Python version: 3.11.9 | packaged by conda-forge | (main, Apr 19 2024, 18:34:54) [Clang 16.0.6 ] numpy : 2.0.0 matplotlib : 3.9.1 seaborn : 0.13.2 pandas : 2.2.2 quantstats_lumi: 0.3.1
I think I've found the source of the problem. When I call
qs._plotting.core.monthly_heatmap_detailedview
directly with the same data used in monthly_returns_detailedview, it works without errors. Here's what I observed:>>> cell.get_color Out[6]: <bound method Text.get_color of Text(8.5, 0.5, '349615008342768344328711938750155849728.00')> >>> cell.get_color() Out[7]: '.15'
I found bugs in wrapper function. I'll work on fixing this today. @BlackArbsCEO Could you please try calling
qs._plotting.core.monthly_heatmap_detailedview
directly with the same data you used inmonthly_returns_detailedview
? This might help us isolate the issue.
I tried your suggestion and it did work correctly when I used qs._plotting.core.monthly_heatmap_detailedview
directly.
Merged the PR. Will deploy this in future versions
Robert Grzesik 347-635-3416
On Tue, Jul 23, 2024 at 12:20 AM Taewan Kim @.***> wrote:
I created PR about wrapper function.
— Reply to this email directly, view it on GitHub https://github.com/Lumiwealth/quantstats_lumi/issues/51#issuecomment-2244221878, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIYQK5J2WKIK6M2KC5L6ETZNXKY3AVCNFSM6AAAAABLIPNWGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBUGIZDCOBXHA . You are receiving this because you commented.Message ID: @.***>
I'm attempting to use the new function
qs.plots.monthly_returns_detailedview()
and it's generating an error.