DearPyGui
DearPyGui copied to clipboard
Odd behavior when add_heat_series is lacking values.
Version of Dear PyGui
Version: dearpygui==1.6.1 Operating System: Windows 10
My Issue/Question
When using add_heat_series and supplying fewer values than rows*cols would imply, the following odd behaviors happen:
- The rest of the heatmap is filled by zeros that randomly do or don't have a negative sign.
- Sometimes the app crashes before showing everything.
- Sometimes the one of the values shown is 1.
To Reproduce
Steps to reproduce the behavior:
- Run the minimal example below
- close and reopen it multiple times
- potentially change the number or content of values provided to
add_heat_seriesfor further randomness
Expected behavior
Either an error when add_heat_series is lacking the amount of values required, or consistent behavior for missing values.
Screenshots/Video


Standalone, minimal, complete and verifiable example
import dearpygui.dearpygui as dpg
dpg.create_context()
with dpg.window() as primary_window:
with dpg.plot(height=500, width=500):
dpg.add_plot_axis(dpg.mvXAxis, label="X", no_gridlines=True)
dpg.add_plot_axis(dpg.mvYAxis, label="Y", tag="yaxis_tag")
dpg.add_heat_series(
[2, 3],
4,
4,
parent="yaxis_tag",
)
dpg.create_viewport(width=600, height=600)
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()