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

Change Plot optiones in ManagedDockWindow #1073

Open
MiguelBL248 opened this issue Mar 20, 2024 · 1 comment
Open

Change Plot optiones in ManagedDockWindow #1073

MiguelBL248 opened this issue Mar 20, 2024 · 1 comment

Comments

@MiguelBL248
Copy link

Hello everyone,

I am using ManagedDockWindow in order to plot two pair of values (pressure_1 and pressure_2) as a function of the iterations. My question is how I can change plot aspects such as the size of the numbers, among many others.

Moreover, my final goal is to plot the values of the pressure as a function of the time (hh:mm:ss), but when plotting I have irregular spaces between points (example: 13:59:59 to 14:00:00, 135959 is not the number before 140000, so there is a big space between points). I saw that in matplotlib i can use the method plt.xticks to solve this, but I am not sure how to do it in the managed dock window case.

To sum up, my question is how I can change plot options in managed dock window.

Thanks in advance.

@BenediktBurger
Copy link
Member

Date and time are ugly to log and plot.

I normally plot my data over time in seconds (since 0:00 UTC of the day I start the measurement). That ensures that it easy to calculate differences etc, but is also well defined, such that it could be changed to hour:minute:second later.

pymeasure uses pyqtgraph's PlotWidget to visualize plots.

There you can look, but I think the best bet is to use a single unit (hours, minutes, or seconds).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants