Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line series with time on x-axis: lower time limit is restricted to 1970 #2378

Open
AndrewBrains opened this issue Aug 13, 2024 · 0 comments
Open
Labels
state: pending not addressed yet type: bug bug

Comments

@AndrewBrains
Copy link

Version of Dear PyGui

Version: 1.11.1
Operating System: Ubuntu 22.04

My Issue/Question

Hello! I am trying to plot line graph via dpg.add_line_series() function. I am passing to the function the number of seconds since 01.01.1970 and some of the data is <0 (data earlier than 01.01.1970). But the lower time limit for graphs with time on x-axis anyway is limited to 1970 year. Is there any opportunity to change that limitation to another year (for example to 1900)?

To Reproduce

Steps to reproduce the behavior:

  1. Use method add_line_series with any data <0 for x axis (x axis should be configured as time axis)

Expected behavior

Time graph should start from any date in accordance with what is specified in the argument

Screenshots/Video

Standalone, minimal, complete and verifiable example

Insert this code block to the standard dpg app:

with dpg.plot(tag = "graph1"):
     dpg.add_plot_legend(location = dpg.mvPlot_Location_SouthWest)
     dpg.add_plot_axis(dpg.mvXAxis, tag="graph1_x_axis", time=True)
          with dpg.plot_axis(dpg.mvYAxis, tag="graph1_y_axis"):
               dpg.add_line_series([-100, -50, 0, 50, 100],[1,2,3,4,5], tag = "some_tag")
@AndrewBrains AndrewBrains added state: pending not addressed yet type: bug bug labels Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: pending not addressed yet type: bug bug
Projects
None yet
Development

No branches or pull requests

1 participant