Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draw Items on plots use most recent axis #1643

Closed
hoffstadt opened this issue Mar 8, 2022 · 2 comments
Closed

Draw Items on plots use most recent axis #1643

hoffstadt opened this issue Mar 8, 2022 · 2 comments
Assignees
Labels
category: plots related to plots state: ready Fixed/Added and will be present in an upcoming release type: bug bug

Comments

@hoffstadt
Copy link
Owner

hoffstadt commented Mar 8, 2022

Version of Dear PyGui

Version: 1.0 - 1.4
Operating System: All

My Issue/Question

Draw items use most recent axis.

To Reproduce

Steps to reproduce the behavior:

  1. Run below.

Expected behavior

Draw items should use 1st axis according to the documentation.

Standalone, minimal, complete and verifiable example

import dearpygui.dearpygui as dpg

dpg.create_context()
dpg.create_viewport()
dpg.setup_dearpygui()

with dpg.window():
    with dpg.plot(label="Custom Rendering", height=400, width=-1):

        dpg.add_plot_axis(dpg.mvXAxis, label="x")
        dpg.add_plot_axis(dpg.mvYAxis, label="y1")
        dpg.add_plot_axis(dpg.mvYAxis, label="y2")

        dpg.draw_line((0, 0), (1, 2), color=(255, 0, 0, 255), thickness=0.01)
        dpg.draw_text((0, 0), "Origin", color=(250, 250, 250, 255), size=0.1)

dpg.show_viewport()
while dpg.is_dearpygui_running():
    dpg.render_dearpygui_frame()  

dpg.destroy_context()
@hoffstadt hoffstadt added category: plots related to plots type: bug bug priority: high high priority labels Mar 8, 2022
@hoffstadt hoffstadt self-assigned this Mar 8, 2022
@feltroidprime
Copy link

hello
any updates on that ?

@hoffstadt hoffstadt added state: ready Fixed/Added and will be present in an upcoming release and removed priority: high high priority labels Apr 4, 2022
@hoffstadt
Copy link
Owner Author

Fixed in next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: plots related to plots state: ready Fixed/Added and will be present in an upcoming release type: bug bug
Projects
None yet
Development

No branches or pull requests

2 participants