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.7.2
Operating System: Windows 10 & Windows 11
My Issue/Question
Usage of the "add_plot_legend", does not display the plot legend.
Note: 'add_plot_legend' was working with 1.7.0.
To Reproduce
The demo application and the example code provided in the documentation are able to reproduce this issue. Sample code from documentation provided below.
Note: Right-click on the plot still works for showing the legend.
Expected behavior
Using 'add_plot_legend' should add the plot legend.
Standalone minimal code
Copied from the documentation example
importdearpygui.dearpyguiasdpgfrommathimportsindpg.create_context()
# creating datasindatax= []
sindatay= []
foriinrange(0, 500):
sindatax.append(i/1000)
sindatay.append(0.5+0.5*sin(50*i/1000))
withdpg.window(label="Tutorial"):
# create plotwithdpg.plot(label="Line Series", height=400, width=400):
# optionally create legenddpg.add_plot_legend()
# REQUIRED: create x and y axesdpg.add_plot_axis(dpg.mvXAxis, label="x")
dpg.add_plot_axis(dpg.mvYAxis, label="y", tag="y_axis")
# series belong to a y axisdpg.add_line_series(sindatax, sindatay, label="0.5 + 0.5 * sin(x)", parent="y_axis")
dpg.create_viewport(title='Custom Title', width=800, height=600)
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.7.2
Operating System: Windows 10 & Windows 11
My Issue/Question
Usage of the "add_plot_legend", does not display the plot legend.
Note: 'add_plot_legend' was working with 1.7.0.
To Reproduce
The demo application and the example code provided in the documentation are able to reproduce this issue. Sample code from documentation provided below.
Note: Right-click on the plot still works for showing the legend.
Expected behavior
Using 'add_plot_legend' should add the plot legend.
Standalone minimal code
Copied from the documentation example
The text was updated successfully, but these errors were encountered: