Opened 11 years ago
Closed 10 years ago
#2255 closed enhancement (fixed)
Units in plot windows are missing
Reported by: | Owned by: | Adeel Asghar | |
---|---|---|---|
Priority: | normal | Milestone: | 1.9.1 |
Component: | OMEdit | Version: | trunk |
Keywords: | plot units result | Cc: |
Description
When generating a plot from a simulation experiment, none of the displayed variables is labeled with a unit. I attached an example plot of Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL
to demonstrate the missing units. Time variable is missing (s), i.e., seconds, and torque is missing (N.m), i.e., Newton.meters.
Being a scientist I think that showing a numerical result of a physical variable always requires to have units displayed. Otherwise the result(s) cannot be interpreted unambiguously. Assuming coherent SI units is not sufficient on my opinion.
Attachments (2)
Change History (11)
by , 11 years ago
Attachment: | units_missing_in_plot_window.png added |
---|
comment:3 by , 11 years ago
I am glad do see units, values and descriptions added to the variable browser in the Simulation window. This is a great improvement. Additionally, the units in the plotted graph (see previously attached PNG file) are not shown. The time axis is labeled with Time
but not Time (s)
. Plot of torque is labeled aimc.tauElectrical
but not aimc.tauElectrical (Nm)
.
comment:4 by , 11 years ago
Ah, this is also possible. But I have to re-structure some of the code to do this. Right now there is no time to add this enhancement. Perhaps I will add it when I get some time.
comment:5 by , 11 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Thanks for considering units in the plot window.
follow-up: 8 comment:6 by , 11 years ago
I found a bug in displaying (Kelvin) temperatures. Kelvin temperatures are displayed with unit degC in the variable browser. The bug applies to r20609.
by , 11 years ago
Celsius temperatures are displayed instead of Kelvin temperature
comment:7 by , 11 years ago
Can you provide a sample model? This data is read from an XML-file. I think the bug is when we are writing the XML file.
comment:8 by , 10 years ago
Replying to christiankral <dr.christian.kral@…>:
I found a bug in displaying (Kelvin) temperatures. Kelvin temperatures are displayed with unit degC in the variable browser. The bug applies to r20609.
Fixed in r21153.
comment:9 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Units are now shown in plot windows as well.
Done in r21182.
Result plot