hoffstadt / hoffstadt/DearPyGui

Plot window is always on top even though it is created within a node window.

Open
#2,271 0 comments 0 reactions 0 assignees View on GitHub
state: pending type: bug
Dominant language
C++
Stars
15.6k
Forks
783
PR merge metrics
No merged PRs in 30d

Description

![image](https://github.com/hoffstadt/DearPyGui/assets/3712295/10593b2b-7ca3-4682-b2ef-a8fbde61fb19)

It follows the typical example call sequence to set up a node with the plot.
the plot is placed on the right place, but it is not grouped with the dedicated node and then if the other node is overwrapped to the plot node, the other node is fit behind the plot...
seems, the plot is always on top.

with dpg.node(tag=self._tag,
parent=editorHandle.tag,
label=self.nodeLabel,
pos=pos):
with dpg.node_attribute(tag=self._attrImageInput.tag,
attribute_type=dpg.mvNode_Attr_Input,
shape=dpg.mvNode_PinShape_CircleFilled):
# dpg.add_image(tag=self._previewImageTag, texture_tag=self._previewTextureTag)

with dpg.plot(
width=self._currentWidth,
height=self._currentHeight,
tag=self._valueNameTag,
no_menus=True,
):

dpg.add_plot_legend(horizontal=True,
location=dpg.mvPlot_Location_NorthEast)
dpg.add_plot_axis(
dpg.mvXAxis,
tag=self._valueNameTag + 'xaxis',
)
dpg.set_axis_limits(dpg.last_item(), 0, 256)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.