You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version: 1.9.1
Operating System: Windows 10 and WSL2 Ubuntu 22.04.2 LTS (tested on both, got same result)
Python Version: 3.10.6
My Issue/Question
"add_text_point" raises exceptions "Exception: Error: [1000] Message: Not enough arguments provided. Expected: 5 Recieved: 2" and "Exception: Error: [1008] Message: Python value error. Must be int." when used in a plot, depending on what inputs you give it. I've included the error logs as comments in the minimal example to make clear which inputs caused which errors.
To Reproduce
create a minimal dearpygui program
add a window
add a plot to the window
add a text point to the plot
run
see the minimal example for details
Expected behavior
A string of text should be visible in the plot, something like is seen in this resolved issue
Standalone, minimal, complete and verifiable example
importdearpygui.dearpyguiasdpgdpg.create_context()
withdpg.window():
withdpg.plot():
x_axis=dpg.add_plot_axis(dpg.mvXAxis, tag="x_axis")
y_axis=dpg.add_plot_axis(dpg.mvYAxis, tag="y_axis")
# What I expect to to work based on other plot "add_" commandsdpg.add_text_point(1.0, 1.0, label="hello", parent="y_axis")
# The above gives the error""" Exception: Error: [1008] Message: Python value error. Must be int. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "<path on my machine>\add_text_point.py", line 11, in <module> dpg.add_text_point(1.0, 1.0, label="hello", parent="y_axis") File "<path on my machine>\lib\site-packages\dearpygui\dearpygui.py", line 7081, in add_text_point return internal_dpg.add_text_point(x, y, label=label, user_data=user_data, use_internal_label=use_internal_label, tag=tag, parent=parent, before=before, source=source, show=show, x_offset=x_offset, y_offset=y_offset, vertical=vertical, **kwargs) SystemError: <built-in function add_text_point> returned a result with an exception set """# The "Must be int" maybe refers to the x/y offset?dpg.add_text_point(
1.0, 1.0, label="hello", x_offset=1, y_offset=1, parent="y_axis"
)
# Trying the above gives the new error:""" Exception: Error: [1000] Message: Not enough arguments provided. Expected: 5 Recieved: 2 The above exception was the direct cause of the following exception: Traceback (most recent call last): File "<path on my machine>\add_text_point.py", line 27, in <module> dpg.add_text_point( File "<path on my machine>\lib\site-packages\dearpygui\dearpygui.py", line 7081, in add_text_point return internal_dpg.add_text_point(x, y, label=label, user_data=user_data, use_internal_label=use_internal_label, tag=tag, parent=parent, before=before, source=source, show=show, x_offset=x_offset, y_offset=y_offset, vertical=vertical, **kwargs) SystemError: <built-in function add_text_point> returned a result with an exception set """# "Not enough arguments"... maybe if i explicitly set all arguments?dpg.add_text_point(
1.0,
1.0,
label="hello",
user_data=None,
use_internal_label=True,
tag="my-point",
parent="y_axis",
before=0,
source=0,
show=True,
x_offset=1,
y_offset=1,
vertical=False,
)
# Trying the above gives the same error as the previous attemptdpg.create_viewport(title="Minimum Example", width=600, height=200)
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
The text was updated successfully, but these errors were encountered:
Version of Dear PyGui
Version: 1.9.1
Operating System: Windows 10 and WSL2 Ubuntu 22.04.2 LTS (tested on both, got same result)
Python Version: 3.10.6
My Issue/Question
"add_text_point" raises exceptions "Exception: Error: [1000] Message: Not enough arguments provided. Expected: 5 Recieved: 2" and "Exception: Error: [1008] Message: Python value error. Must be int." when used in a plot, depending on what inputs you give it. I've included the error logs as comments in the minimal example to make clear which inputs caused which errors.
To Reproduce
see the minimal example for details
Expected behavior
A string of text should be visible in the plot, something like is seen in this resolved issue
Standalone, minimal, complete and verifiable example
The text was updated successfully, but these errors were encountered: