Opened 4 years ago
Last modified 3 years ago
#6233 new defect
Tooltip shows wrong unit
Reported by: | dr.christian.kral@… | Owned by: | adeas31 |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | OMEdit | Version: | 1.16.0 |
Keywords: | Cc: |
Description
Consider the following example of an electric circuit using a ramp voltage:
model ParametricPlotToolTip Modelica.Electrical.Analog.Basic.Ground ground annotation( Placement(visible = true, transformation(origin = {-80, -50}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); Modelica.Electrical.Analog.Basic.Resistor resistor(R = 100) annotation( Placement(visible = true, transformation(origin = {-40, 0}, extent = {{-10, -10}, {10, 10}}, rotation = -90))); Modelica.Electrical.Analog.Sources.RampVoltage rampVoltage(V = 100, duration = 1) annotation( Placement(visible = true, transformation(origin = {-80, 0}, extent = {{-10, -10}, {10, 10}}, rotation = -90))); equation connect(rampVoltage.n, ground.p) annotation( Line(points = {{-80, -10}, {-80, -40}}, color = {0, 0, 255})); connect(rampVoltage.p, resistor.p) annotation( Line(points = {{-80, 10}, {-80, 30}, {-40, 30}, {-40, 10}}, color = {0, 0, 255})); connect(resistor.n, ground.p) annotation( Line(points = {{-40, -10}, {-40, -30}, {-80, -30}, {-80, -40}}, color = {0, 0, 255})); annotation( uses(Modelica(version = "3.2.3"))); end ParametricPlotToolTip;
Run the simulation and create a parametric plot with rampVoltage.v on the horizontal axis and resistor.i on the vertical axis. When moving the mouse pointer onto the curve, a tooltip is shown indicating the actual point. However, the horizontal quantity is show in seconds (s) instead of Volt (V).
Attachments (1)
Change History (5)
Changed 4 years ago by dr.christian.kral@…
comment:1 Changed 4 years ago by Christian Kral <dr.christian.kral@…>
For a parametric plot it however makes sense to show
- horizontal value
- vertical value
- time value
comment:2 Changed 4 years ago by casella
- Milestone changed from NeedsInput to 1.17.0
comment:3 Changed 4 years ago by casella
- Milestone changed from 1.17.0 to 1.18.0
Retargeted to 1.18.0 because of 1.17.0 timed release.
comment:4 Changed 3 years ago by casella
- Milestone 1.18.0 deleted
Ticket retargeted after milestone closed
Tooltip showing the wrong unit (s) instead of Volt (V)