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

use improved timedelta formater in havengetallen plotting functions #77

Closed
2 tasks done
veenstrajelmer opened this issue Jun 14, 2024 · 0 comments · Fixed by #78
Closed
2 tasks done

use improved timedelta formater in havengetallen plotting functions #77

veenstrajelmer opened this issue Jun 14, 2024 · 0 comments · Fixed by #78

Comments

@veenstrajelmer
Copy link
Collaborator

veenstrajelmer commented Jun 14, 2024

Todo:

  • also use kw.utils.TimeSeries_TimedeltaFormatter_improved to tick timedelta on xaxis in kw.plot_aardappelgrafiek()
  • prevent manual ticks just like other timedelta figure

Code to reproduce:

import hatyan
hatyan.close("all")
import kenmerkendewaarden as kw
# import logging
# logging.basicConfig(format='%(message)s') # for some reason calling basicConfig is required for hatyan, not for kenmerkendewaarden
# logging.getLogger("hatyan").setLevel(level="INFO")

print("reading datafiles")
file_dia_ext = r"c:\DATA\kenmerkendewaarden\tests\testdata\HOEKVHLD_ext.dia"
df_ext = hatyan.read_dia(file_dia_ext, station="HOEKVHLD", block_ids="allstation")#, block_ids=[5,6,7,10])
df_ext = df_ext.loc["2018":"2019"]
df_ext = hatyan.calc_HWLW12345to12(df_ext)

print("computing indicators")
df_havengetallen = kw.calc_havengetallen(df_ext, min_coverage=None)
kw.plot_aardappelgrafiek(df_havengetallen)
@veenstrajelmer veenstrajelmer mentioned this issue Jun 14, 2024
48 tasks
@veenstrajelmer veenstrajelmer changed the title use timedeltaformater in havengetallen plotting functions use improved timedelta formater in havengetallen plotting functions Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant