hoffstadt / hoffstadt/DearPyGui

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

Open
#2,378 2 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

## 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:
```python
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")
```

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.