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
Is your feature request related to a problem? Please describe.
I want to have a function that can set limit of axis boundary but still allow right click for drag zoom to change the axis freely without pass the set boundary. Basically, I want to have a graph that can only be zoom OUT to certain axis, but they can move/zoom IN to any values when right click for drag zoom and pan and middle scroll zoom. So to accomplish that, I will need to have a function (similar to set_axis_limit) that can lock min OR max only and allow the other limit be free.
NOTE: in the built in right click function, we can lock ONE side of the axis and other side still be able to move freely, so I believe there might be a function call for that?
Describe the solution you'd like
Allow axis limits to just lock the axis min limit and let the max limit be free (+vice versa) or possible to make dpg.set_axis_limits take in min or max only. In other words, I want to set the boundary of the plot axis, but still allow all the zoom/move feature as normal with out exceed the set boundary.
Describe alternatives you've considered
In the built in right click function, we can lock ONE side of the axis and other side still be able to move freely. So it can still be done by manually lock one side. But that feature cannot be implemented in the code due to set_axis_limits require both min and max
Additional context
Below is the current implementation for the features that was mentioned above, however, when it reaches the boundary axis (limit), the axis locked and cannot move freely anymore. For this example, I set the x axis boundary to [0, 200] and y boundary to [0, 1]. But it lock the zoon/move (Left click move) when it zoom/move to one/both side(s) of the axis boundary. If there a function to lock one side, then it will accomplish the task.
Is your feature request related to a problem? Please describe.
I want to have a function that can set limit of axis boundary but still allow right click for drag zoom to change the axis freely without pass the set boundary. Basically, I want to have a graph that can only be zoom OUT to certain axis, but they can move/zoom IN to any values when right click for drag zoom and pan and middle scroll zoom. So to accomplish that, I will need to have a function (similar to set_axis_limit) that can lock min OR max only and allow the other limit be free.
NOTE: in the built in right click function, we can lock ONE side of the axis and other side still be able to move freely, so I believe there might be a function call for that?
Describe the solution you'd like
Allow axis limits to just lock the axis min limit and let the max limit be free (+vice versa) or possible to make dpg.set_axis_limits take in min or max only. In other words, I want to set the boundary of the plot axis, but still allow all the zoom/move feature as normal with out exceed the set boundary.
Describe alternatives you've considered
In the built in right click function, we can lock ONE side of the axis and other side still be able to move freely. So it can still be done by manually lock one side. But that feature cannot be implemented in the code due to set_axis_limits require both min and max
Additional context
Below is the current implementation for the features that was mentioned above, however, when it reaches the boundary axis (limit), the axis locked and cannot move freely anymore. For this example, I set the x axis boundary to [0, 200] and y boundary to [0, 1]. But it lock the zoon/move (Left click move) when it zoom/move to one/both side(s) of the axis boundary. If there a function to lock one side, then it will accomplish the task.
The text was updated successfully, but these errors were encountered: