Replies: 3 comments
-
import pyqtgraph as pg
import numpy as np
pg.mkQApp()
pw = pg.PlotWidget()
pw.setLabel(axis='left', units='[m<sup>2</sup>]')
pw.plot(np.arange(0, 2000))
pw.show()
pg.exec() |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Here is the pull request: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Consider a line plot of values with a "nonlinear" unit, such as m^2, m^3, sqrt(V).
The plot is automatically scaled with an SI-prefix, however, the prefix becomes incorrect in these cases. If the unit is m^2, and your plot shows values around 1000 m^2, it will be shown as 1 km^2. If that was read as 1 k(m^2), then it would be correct, but the natural reading is 1 (km)^2, which is wrong. So, can we solve this situation? Even if only squared values were supported, that would be a big improvement.
Beta Was this translation helpful? Give feedback.
All reactions