Comments (3)
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.
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.
The linked documentation says that to change the behaviour, one either:
- overrides the setZoomLevelForDensity method, and/or
- 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)
- AttributeError: 'DockLabel' object has no attribute 'pressPos' HOT 1
- InteractiveFunctions do not work with class methods HOT 3
- Feature Suggestion: Axis Range Hiding HOT 1
- Pylance shows false error for direct call to `interact()` HOT 2
- You can certainly do that, although it might get tricky if the lines start getting lengthy. The way to do it would be to use a GraphicsLayout, have the plots, and x-axis axis items be in one column, and have the y-axis axisitem's be in another column. This will force the y-axis axis items to have the same width. There is a diagram of the layouts here if you scroll down a bit: https://pyqtgraph.readthedocs.io/en/latest/plotting.html
- Can't add menu item to non-removable ROI
- PolyLineROI.setPoints() causes signal spam
- Mouse Coordinates Do Not Update Correctly for Non-Square Images in PyQtGraph's ImageView HOT 1
- SVG Exporter Moves PlotObjects HOT 1
- Increasing width of the Parameter column in parameter trees HOT 1
- Parameter Lists : porting to 0.13.4
- TypeError when adding items to histogram menu in 0.13.4 HOT 3
- PyQtGraph 0.1.14 takes approximately twice as long to plot colored points in a ScatterPlotItem that 0.1.13 HOT 7
- Colormap plot scatter points HOT 2
- SyntaxWarnings HOT 1
- `DateAxisItem` renders correctly only for one plot if re-added HOT 1
- Errors encountered when running tests on risc-v platform HOT 4
- 'NoneType' object has no attribute 'removeItem' HOT 1
- ConsoleWidget.write() function missing HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyqtgraph.