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

Date axis item #1154

Merged
merged 58 commits into from Apr 27, 2020
Merged

Date axis item #1154

merged 58 commits into from Apr 27, 2020

Commits on Mar 15, 2017

  1. Add DateAxisItem

    3rdcycle committed Mar 15, 2017
    Configuration menu
    Copy the full SHA
    da8c53d View commit details
    Browse the repository at this point in the history
  2. Change style to camelCase

    3rdcycle committed Mar 15, 2017
    Configuration menu
    Copy the full SHA
    b21dfc2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3816f4d View commit details
    Browse the repository at this point in the history
  4. Add ms precision, auto skipping

    Auto skipping allows a zoom level to skip ticks automatically if the
    maximum number of ticks/pt is exceeded
    3rdcycle committed Mar 15, 2017
    Configuration menu
    Copy the full SHA
    d627e39 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2020

  1. fixes suggested by @goetzc

    Lev Maximov committed Apr 7, 2020
    Configuration menu
    Copy the full SHA
    83f53de View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    606cae6 View commit details
    Browse the repository at this point in the history
  3. attachToPlotItem method

    Lev Maximov committed Apr 7, 2020
    Configuration menu
    Copy the full SHA
    41f9e4f View commit details
    Browse the repository at this point in the history
  4. default date axis orientation

    Lev Maximov committed Apr 7, 2020
    Configuration menu
    Copy the full SHA
    4b3199c View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2020

  1. Configuration menu
    Copy the full SHA
    4c2b865 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1 from 2xB/2xb-date-axis-item-patch

    Use new DateAxisItem in Plot Customization example
    axil committed Apr 8, 2020
    Configuration menu
    Copy the full SHA
    852f369 View commit details
    Browse the repository at this point in the history
  3. attachToPlotItem bugfix

    Lev Maximov committed Apr 8, 2020
    Configuration menu
    Copy the full SHA
    3ac98c2 View commit details
    Browse the repository at this point in the history
  4. examples of DateAxisItem

    Lev Maximov committed Apr 8, 2020
    Configuration menu
    Copy the full SHA
    61222db View commit details
    Browse the repository at this point in the history
  5. modified description of customPlot example

    Lev Maximov committed Apr 8, 2020
    Configuration menu
    Copy the full SHA
    c856f2c View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2020

  1. added descriptions to the new examples, reformatted their code, inclu…

    …ded the first one into utils.py
    Lev Maximov committed Apr 9, 2020
    Configuration menu
    Copy the full SHA
    64120e8 View commit details
    Browse the repository at this point in the history
  2. typo

    Lev Maximov committed Apr 9, 2020
    Configuration menu
    Copy the full SHA
    55d1749 View commit details
    Browse the repository at this point in the history
  3. Refactored code for setting axis items into new function

    Replaces "DateAxisItem.attachToPlotItem"
    2xB committed Apr 9, 2020
    Configuration menu
    Copy the full SHA
    ab756bd View commit details
    Browse the repository at this point in the history
  4. Fix string comparison with ==

    2xB committed Apr 9, 2020
    Configuration menu
    Copy the full SHA
    9e2e8d1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2f9b4f7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a35c6b6 View commit details
    Browse the repository at this point in the history
  7. Fix typo in docstring

    2xB committed Apr 9, 2020
    Configuration menu
    Copy the full SHA
    8a170f5 View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2020

  1. Merge pull request #2 from 2xB/2xb-date-axis-item-patch2

    Refactoring and slightly more documentation
    axil committed Apr 10, 2020
    Configuration menu
    Copy the full SHA
    e86bca7 View commit details
    Browse the repository at this point in the history
  2. renamed an example

    Lev Maximov committed Apr 10, 2020
    Configuration menu
    Copy the full SHA
    75978ef View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3958dc9 View commit details
    Browse the repository at this point in the history
  4. merge bug fix

    Lev Maximov committed Apr 10, 2020
    Configuration menu
    Copy the full SHA
    876b5a7 View commit details
    Browse the repository at this point in the history
  5. Revert "merge bug fix"

    This reverts commit 876b5a7.
    2xB committed Apr 10, 2020
    Configuration menu
    Copy the full SHA
    b71cc0c View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2020

  1. Real bug fix

    2xB committed Apr 11, 2020
    Configuration menu
    Copy the full SHA
    a02af8e View commit details
    Browse the repository at this point in the history
  2. Merge pull request #4 from 2xB/2xb-date-axis-item-patch3

    Revisit last bug fix
    axil committed Apr 11, 2020
    Configuration menu
    Copy the full SHA
    625f1f4 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2020

  1. support for dates upto -1e13..1e13

    Lev Maximov committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    24bcacd View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2020

  1. Automatically limit DateAxisItem to a range from -1e12 to 1e12 years

    Very large years (|y|>1e13) cause infinite loop, and since nobody
    needs time 100 times larger than the age of the universe anyways,
    this constrains it to 1e12.
    
    Following suggestion by @axil:
    pyqtgraph#1154 (comment)
    2xB committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    b58dfc2 View commit details
    Browse the repository at this point in the history
  2. Also catch ValueErrors occuring on Linux before OverfloeErrors

    While zooming out, before hitting OverflowErrors, utctimestamp
    produces ValueErrors (at least on my Linux machine), so they
    are also catched.
    2xB committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    c5facf6 View commit details
    Browse the repository at this point in the history
  3. Fix: Timestamp 0 corresponds to year 1970

    For large years, x axis labels jump by 1970 years if it is not
    accounted for timestamp 0 to be equal to year 1970.
    2xB committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    9259e12 View commit details
    Browse the repository at this point in the history
  4. Fix: When zooming into extreme dates, OSError occurs

    This commit catches the OSError like the other observed errors
    2xB committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    4703027 View commit details
    Browse the repository at this point in the history
  5. Disable stepping below years for dates outside *_REGULAR_TIMESTAMP

    2 reasons: First: At least on my Linux machine, zooming into
    those dates creates infinite loops. Second: Nobody needs
    sub-year-precision for those extreme years anyways.
    2xB committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    db3fffd View commit details
    Browse the repository at this point in the history
  6. Merge pull request #5 from 2xB/2xb-date-axis-item-patch4

    DateTimeAxis: Hardcoded limit, catch ValueErrors under Linux, timestamp offset fix
    axil committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    67a5624 View commit details
    Browse the repository at this point in the history
  7. Adapt zoom level sizes based on current font size and screen resolution

    This is somewhat experimental. With this commit, no longer 60 px are
    assumed as width for all zoom levels, but the current font and
    display resolution are considered to calculate the width of ticks in
    each zoom level. See the new function `updateZoomLevels` for
    details.
    Before calling this function, overridden functions `paint` and
    `generateDrawSpecs` provide information over the current display
    and font via `self.fontScaleFactor` and `self.fontMetrics`.
    2xB committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    a4f8216 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2020

  1. Meaningful error meassage when adding axis to multiple PlotItems

    As @axil noted in the DateAxisItem PR, currently users get a
    segmentation fault when one tries to add an axis to multiple
    PlotItems. This commit adds a meaningful RuntimeError message
    for that case.
    2xB committed Apr 19, 2020
    Configuration menu
    Copy the full SHA
    58e32a5 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2020

  1. Merge pull request #7 from 2xB/2xb-date-axis-item5-meaningfulerror

    Meaningful error meassage when adding axis to multiple PlotItems
    axil committed Apr 20, 2020
    Configuration menu
    Copy the full SHA
    3e14971 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2020

  1. Configuration menu
    Copy the full SHA
    e29b500 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    44dc901 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ca69a5e View commit details
    Browse the repository at this point in the history
  4. Merge pull request #6 from 2xB/2xb-date-axis-item-adaptive-zoom

    Adapt zoom level sizes based on current font size and screen resolution
    axil committed Apr 21, 2020
    Configuration menu
    Copy the full SHA
    021aa11 View commit details
    Browse the repository at this point in the history
  5. updated the dateaxisitem example

    Lev Maximov committed Apr 21, 2020
    Configuration menu
    Copy the full SHA
    0f6e9ef View commit details
    Browse the repository at this point in the history
  6. Fix: Get screen resolution in a way that also works for Qt 4

    This is both a simplification in code and an improvement in backwards compatibility with Qt 4.
    2xB committed Apr 21, 2020
    Configuration menu
    Copy the full SHA
    15b8c7b View commit details
    Browse the repository at this point in the history
  7. Merge pull request #8 from 2xB/2xb-date-axis-item6-backwards-compatib…

    …ility
    
    Fix: Get screen resolution in a way that also works for Qt 4
    axil committed Apr 21, 2020
    Configuration menu
    Copy the full SHA
    3d1af34 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    aa6d0cc View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2020

  1. unix line endings in examples

    Lev Maximov committed Apr 22, 2020
    Configuration menu
    Copy the full SHA
    577cc5f View commit details
    Browse the repository at this point in the history
  2. Merge pull request #9 from 2xB/2xb-date-axis-item7-zoomin-fix

    DateAxisItem Fix: Also resolve time below 0.5 seconds
    axil committed Apr 22, 2020
    Configuration menu
    Copy the full SHA
    a494e9c View commit details
    Browse the repository at this point in the history
  3. DateTimeAxis Fix: For years < 1 and > 9999, stepping broke

    Stepping was off by 1970 years for years < 1 and > 9999,
    resulting in a gap in ticks visible when zooming out. Fixed by
    subtracting the usual 1970 years.
    2xB committed Apr 22, 2020
    Configuration menu
    Copy the full SHA
    7c37c02 View commit details
    Browse the repository at this point in the history
  4. DateTimeAxis Fix: Zooming out too far causes infinite loop

    Fixed by setting default limits to +/- 1e10 years. Should still
    be enough.
    2xB committed Apr 22, 2020
    Configuration menu
    Copy the full SHA
    b600961 View commit details
    Browse the repository at this point in the history
  5. improved second dateaxisitem example

    Lev Maximov committed Apr 22, 2020
    Configuration menu
    Copy the full SHA
    547cce8 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #10 from 2xB/2xb-date-axis-item9-fixlargeyears

    DateTimeAxis Fix: For years slightly > 9999, stepping broke
    axil committed Apr 22, 2020
    Configuration menu
    Copy the full SHA
    98c0ed9 View commit details
    Browse the repository at this point in the history
  7. 1..9999 years limit

    Lev Maximov committed Apr 22, 2020
    Configuration menu
    Copy the full SHA
    7c817a0 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e11b8e2 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    644d5e4 View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2020

  1. Merge pull request #11 from 2xB/2xb-date-axis-item10-multiplefixes

    OrderedDict, correct y axis spacing
    axil committed Apr 23, 2020
    Configuration menu
    Copy the full SHA
    1c191ef View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2020

  1. window title

    Lev Maximov committed Apr 24, 2020
    Configuration menu
    Copy the full SHA
    ad598fd View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2020

  1. added dateaxisitem.rst

    Lev Maximov committed Apr 27, 2020
    Configuration menu
    Copy the full SHA
    d08850f View commit details
    Browse the repository at this point in the history
  2. updated index.rst

    Lev Maximov committed Apr 27, 2020
    Configuration menu
    Copy the full SHA
    8facdc4 View commit details
    Browse the repository at this point in the history