hoffstadt / hoffstadt/DearPyGui

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

Open
#1,829 0 comments 1 reaction 0 assignees View on GitHub
state: pending type: bug
Dominant language
C++
Stars
15.6k
Forks
783
PR merge metrics
No merged PRs in 30d

Description

## 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](https://user-images.githubusercontent.com/32096449/177156422-dad7a375-ec03-4980-8ebc-58181a330a45.png)
![image](https://user-images.githubusercontent.com/32096449/177156531-b6d7421f-6904-4111-b841-03cdc90c9d50.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.