Opened 11 years ago
Last modified 7 years ago
#2696 closed enhancement
Display enhancement of very large numbers on vertical axis — at Version 5
Reported by: | massimo ceraolo | Owned by: | Adeel Asghar |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | OMEdit | Version: | trunk |
Keywords: | Cc: |
Description (last modified by )
I don't know whether there is already a ticket on this.
I could find one.
In OMEdit, when plots are made of very large (or very small) variables, the plot display is far from optimal.
Consider for instance the example in the plot supplied.
The shown variable that ranges between -800.000 and +800.000. The numbers on the vertical axis are visually too large: 8 characters for the first and 7 for the second one.
This is suboptimal because it uses too much of the valuable plot space.
To me, the optimal solution might be either to write the numbers on the axes between -800 and 800 and adding somewhere in the vertical axis "*103" or -8 and 8 and label the axis with "*105"
I mean, when numbers are very large or very small, they should be displayed in scientific or engineering format, but the corresponding power of ten is to be put once on the axis.
Change History (8)
by , 11 years ago
follow-up: 2 comment:1 by , 11 years ago
Status: | new → accepted |
---|
comment:2 by , 11 years ago
Adeel,
"g" format is fantastic, and I use in my plotting programs.
Change precision from 6 to 5 is a good step forward.
In addition, instead of having the "E" part of the number displayed on all numbers on the axis I would extract it and display only once.
I know that this requires work, and not all do this (neither Dymola programmers. But the final result is by far clearer and more compact. I will attach, just for more clarity, two png's of a plotting program I made (using Qt 5.2.1). In the first, power of ten is used; in the second user has chosen "autolabel known variables", and the plotting program interprets all variables starting with "t" as time and with "v" as voltage.
Regards
by , 11 years ago
by , 11 years ago
comment:3 by , 11 years ago
I am not sure if the plotting tool (Qwt - http://qwt.sourceforge.net/index.html) we are using really support this or not. I have to investigate it.
comment:4 by , 10 years ago
Milestone: | 1.9.1 → 1.9.2 |
---|
This ticket was not closed for 1.9.1, which has now been released. It was batch modified for milestone 1.9.2 (but maybe an empty milestone was more appropriate; feel free to change it).
comment:5 by , 10 years ago
Description: | modified (diff) |
---|
Following number formats are supported by Qt,
http://qt-project.org/doc/qt-4.8/qstring.html#argument-formats
Plots use 'g' with precision value of 6. So the numbers in range of 0 to 999999 will be displayed as it is. I have changed the precision value to 5 which means numbers like 800000 will be displayed like this 8e+05.
See r20678.