Open berke opened 3 months ago
I am also struggling with this issue.
I am downsampling line plots with many plot points to two plots that display the minimum values and maximum values respectively, think a signal envelope.
Then I try to fill the area between the minimum and maximum plots with polygons, to create a shaded area that signifies that it is a span, but I get these artifacts that @berke mentions too. Which makes it unusable.
@CramBL maybe this is related to the graphics stack. What platform are you on?
@CramBL maybe this is related to the graphics stack. What platform are you on?
x86 Ubuntu 22.04
6.8.0-47-generic #47~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC x86_64 GNU/Linux
Driver: Intel Nouveau
configuration: depth=32 driver=nouveau latency=0 mode=2560x1440 visual=truecolor xres=2560 yres=1440
lshw -c video
:
*-display
description: 3D controller
product: NVIDIA Corporation
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
logical name: /dev/fb0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress cap_list rom fb
configuration: depth=32 driver=nouveau latency=0 mode=2560x1440 visual=truecolor xres=2560 yres=1440
resources: iomemory:600-5ff iomemory:620-61f irq:237 memory:bd000000-bdffffff memory:6000000000-61ffffffff memory:6200000000-6201ffffff ioport:3000(size=128)
*-display
description: VGA compatible controller
product: Intel Corporation
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
logical name: /dev/fb0
version: 04
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list rom fb
configuration: depth=32 driver=i915 latency=0 resolution=2560,1440
resources: iomemory:620-61f iomemory:400-3ff irq:238 memory:624c000000-624cffffff memory:4000000000-400fffffff ioport:4000(size=64) memory:c0000-dffff memory:4010000000-4016ffffff memory:4020000000-40ffffffff
This laptop: https://www.lenovo.com/us/en/p/laptops/thinkpad/thinkpadp/thinkpad-p16v-16-inch-intel-mobile-workstation/len101t0071
Same issue (using your example repo) on x86 PopOS 22.04 with nvidia-driver-470 and on the same machine running Windows 11
Filled polygons added to a plot show line-shaped artefacts under certain zooming conditions.
I have an
eframe::App
containing a canvas containing aPlot
, where I draw filled triangles usingui.polygon
.For certain triangles and at certain zoom levels, this produces fill-colored linear artefacts.
No artefacts appear if the triangles are not filled.
To Reproduce
Expected behavior There should be no artefacts.
Screenshots
Real-world case:
Screenshot from simplified PoC:
Additional context
Latest
egui
andegui_plot
x86 machine under Debian and X11 with NVIDIA driver 535.183.01, xfce4 with xfwm 4.18.0-1, no compositing