Git Product home page Git Product logo

Comments (3)

pijyoi avatar pijyoi commented on May 23, 2024

From what I can understand from the code in DateAxisItem and AxisItem, DateAxisItem::setZoomLevelForDensity as implemented isn't meant to be called by the user.

AxisItem::paint -> DateAxisItem::generateDrawSpecs (*) -> AxisItem::generateDrawSpecs -> DateAxisItem::tickValues -> DateAxisItem::setZoomLevelForDensity (x)

(*) self.fontMetrics created here
(x) makes use of self.fontMetrics

from pyqtgraph.

Zhejing-Chin avatar Zhejing-Chin commented on May 23, 2024

That's interesting as based on the documentation, we should be able to customize the zoomlevel with it. Or have you tried other methods to customize the zoom level to not be too fine grained?

from pyqtgraph.

pijyoi avatar pijyoi commented on May 23, 2024

The linked documentation says that to change the behaviour, one either:

  1. overrides the setZoomLevelForDensity method, and/or
  2. replaces the zoomLevels attribute

So the documentation is at least consistent in that it doesn't say that the user would call setZoomLevelForDensity.

It seems to me that either of methods above would require more than a passing understanding of the DateAxisItem code. (Which I don't)

from pyqtgraph.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.