Skip to content
New issue

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

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

Already on GitHub? # to your account

dpg.set_axis_limits() broken by c3e47899c4054ef9482922f5bfcaffcf11391c96 #1852

Closed
sistemicorp opened this issue Aug 4, 2022 · 1 comment
Closed
Labels
state: ready Fixed/Added and will be present in an upcoming release type: bug bug

Comments

@sistemicorp
Copy link

Version of Dear PyGui

Version: 1.6.3
Operating System: Ubuntu and RPi

My Issue/Question

Prior to commit c3e4789 my application plot axis are as expected. With that commit and thru to HEAD as of this date, the plot axis are not set.

Expected behavior

Axis are set to limits. See screenshot below,

Screenshots/Video

Before commit c3e4789,
image
After,
image

Standalone, minimal, complete and verifiable example

import dearpygui.dearpygui as dpg

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

with dpg.window(label="tutorial", width=600):
    dpg.add_button(label="Press me")

    with dpg.tab_bar():

        with dpg.tab(label="Oscilloscope"):

            with dpg.plot(tag="plot_a", no_title=True, height=600, no_menus=False, width=-1):

                dpg.add_plot_legend()

                dpg.add_plot_axis(dpg.mvXAxis, label='x', tag="plot_axis_x")
                dpg.add_plot_axis(dpg.mvYAxis, log_scale=True, lock_min=True, label='y', tag="plot_axis_y")

                dpg.add_line_series(x=[], y=[], label='x', parent="plot_axis_y", tag="line_series_a")

                dpg.set_axis_limits("plot_axis_y", 0.1, 1000000)


dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
@sistemicorp sistemicorp added state: pending not addressed yet type: bug bug labels Aug 4, 2022
@hoffstadt hoffstadt added state: ready Fixed/Added and will be present in an upcoming release and removed state: pending not addressed yet labels Oct 17, 2022
@hoffstadt
Copy link
Owner

Fixed in next release.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
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