DearPyGui icon indicating copy to clipboard operation
DearPyGui copied to clipboard

`dpg.add_area_series()` can't fill area when axis `invert=True`.

Open KanoLin opened this issue 3 years ago • 0 comments

Version of Dear PyGui

Version: 1.6.2 Operating System: Windows 10

My Issue/Question

dpg.add_area_series() can't fill area when axis invert=True.

To Reproduce

import dearpygui.dearpygui as dpg
dpg.create_context()
with dpg.window(label="main", height=600, width=600,tag="main_window"):
    with dpg.plot(label="Area Series", height=400, width=-1):
        xaxis = dpg.add_plot_axis(dpg.mvXAxis, label="x")
        yaxis = dpg.add_plot_axis(dpg.mvYAxis, label="y", invert=True)
        dpg.add_area_series([1,5,3],[0,0,3], fill=[255,50,100,190],parent=yaxis)
dpg.create_viewport(title="test")
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()

Expected behavior

dpg.add_area_series() should fill area when axis invert=True.

Screenshots/Video

image image

KanoLin avatar Jul 04 '22 12:07 KanoLin