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

Problem set_axis_limits in plot #1897

Closed
fedeocire opened this issue Oct 1, 2022 · 2 comments
Closed

Problem set_axis_limits in plot #1897

fedeocire opened this issue Oct 1, 2022 · 2 comments
Labels
state: ready Fixed/Added and will be present in an upcoming release type: bug bug

Comments

@fedeocire
Copy link

Version of Dear PyGui

Version: 1.7.1
Operating System: Windows 10

My Issue/Question

When I go to set the limits for both the x and y axes with the "set_axis_limits" function, the limits of only one axis and not of both are set

To Reproduce

import dearpygui.dearpygui as dpg

dpg.create_context()

def zoom_fit():
dpg.set_axis_limits("x_axis", -100, 100)
dpg.set_axis_limits("y_axis", -100, 100)

with dpg.window(label="Tutorial", width=400, height=400):
with dpg.group(horizontal=True):
dpg.add_button(label="zoom fit", callback=lambda: zoom_fit())
with dpg.plot(tag="ViewArea",height=-1, width=-1,no_mouse_pos=True):

    dpg.add_plot_axis(dpg.mvXAxis,label="x", no_gridlines=True,no_tick_marks=True,tag="x_axis")
    dpg.set_axis_limits("x_axis", -100, 100)
    dpg.add_plot_axis(dpg.mvYAxis, no_gridlines=True,no_tick_marks=True,tag="y_axis")
    dpg.set_axis_limits("y_axis", -100, 100)

dpg.create_viewport(title='Custom Title', width=800, height=600)
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()

@fedeocire fedeocire added state: pending not addressed yet type: bug bug labels Oct 1, 2022
@sedenka
Copy link

sedenka commented Oct 1, 2022

This issue was already reported in #1852 together with dpg.set_axis_ticks() in #1855.
Similarly, #1886 was already reported 3 months ago #1817 and #1893 was already reported in #1846 for tree node.
All the three bugs were reported prior the new release. The bug reports were ignored so now we have 6 reports instead of just 3.

@hoffstadt
Copy link
Owner

Fixed in next release.

@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
# 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

3 participants