DearPyGui icon indicating copy to clipboard operation
DearPyGui copied to clipboard

shared_series in subplot

Open AgilanArulchelvam opened this issue 11 months ago • 2 comments

  1. PLEASE CAREFULLY READ: FAQ

  2. PLEASE CAREFULLY READ: Documentation

  3. FOR FIRST-TIME USERS ISSUES, please use the Discord server.

  4. REMOVE ALL 3RD PARTY LIBRARIES.

  5. PLEASE MAKE SURE that you have: read the FAQ; explored the examples; searched among Issues; and read the link provided in (1) (2).

  6. Be mindful that messages are being sent to the e-mail box of "Watching" users. Try to proof-read your messages before sending them. Edits are not seen by those users.

  7. Delete points 1-7 and PLEASE FILL THE TEMPLATE BELOW before submitting your issue or we will immediately close it.

Thank you!


Version of Dear PyGui

Version: 2.0.0 Operating System: windows 11

My Issue/Question

when we use shared series in subplot and add multiple plots the plot labels gets extended to a point where it goes beyond the screen A clear and concise description of what the issue/question is. Please provide as much context as possible.

To Reproduce

Steps to reproduce the behavior: add subplots option add shared series in argument add more number of series to the plot to go beyond the screen

Expected behaviour

there should be at least scrool bar to check the labels A clear and concise description of what you expected to happen.

Screenshots/Video

Image XXX (you can drag files here)

Standalone, minimal, complete and verifiable example

# Here's some code anyone can copy and paste to reproduce your issue
import dearpygui.dearpygui as dpg

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

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

more_code_to_explain_my_issue()

dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()

AgilanArulchelvam avatar Jan 17 '25 07:01 AgilanArulchelvam

This functionality is provided by ImPlot, which DPG uses as a backend for rendering plots. This enhancement request should be opened for ImPlot, because there's nothing we can do at DearPyGui level here.

Just curious, what's your scenario or reason for using the share_series argument? Is it because you need a single legend for all the plots?

v-ein avatar Jan 18 '25 13:01 v-ein

in my application I'm not using shared series ,i just tried it out than thought if we add more number of series we might face this issue @v-ein

AgilanArulchelvam avatar Jan 18 '25 15:01 AgilanArulchelvam