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

Add_text_point x and y coordinates don't line up with plotted points #450

Closed
tmorgan497 opened this issue Jan 5, 2021 · 1 comment
Closed

Comments

@tmorgan497
Copy link

Version of Dear PyGui:

Version: 0.6.121

OS

Operating System: Windows 10

My Issue/Question

When using dearpygui.core.add_text_point(), the x and y coordinates don't line up with what is plotted. For example, if I put add_text_point(plot, name, 1, 1), the point goes to point 0, 1 on the plot. Any subsequent commands to add points don't get placed where you expect.

To Reproduce

Steps to reproduce the behavior:

  1. Use dearpygui.core.add_text_point to add a point to a preexisting plot, entering x and y coordinates
  2. Observe that the x and y coordinates that you entered in the command do not line up with what is plotted

Expected behavior

When using dearpygui.core.add_text_point(plot, name, x, y), the values entered for x and y should correspond to the plotted points.

Screenshots/Video

image

Standalone, minimal, complete and verifiable example:

# sample plotting script with add_text_point and a few random points
from dearpygui import core as dpg
from dearpygui import simple as dpgs

with dpgs.window("Main Window"):
    dpg.add_plot("plot")
    dpg.add_text_point("plot", "p1", 0, 0)
    dpg.add_text_point("plot", "p2", 4, 3)
    dpg.add_text_point("plot", "p3", 2, 1)

dpg.start_dearpygui(primary_window="Main Window")
@hoffstadt
Copy link
Owner

deploying with an hour or so!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants