Opened 12 years ago

Closed 8 years ago

#2232 closed defect (fixed)

OMEdit: is it possible to set the axis regions manually?

Reported by: Christian Schubert Owned by: Adeel Asghar
Priority: high Milestone: 1.12.0
Component: OMEdit Version: trunk
Keywords: Cc: Francesco Casella

Description

Just a quick question:

If i plot a variable from a simulation result the axes of the plot window is fitted automatically.
Is it possible to supply min/max for the x or y axis manually?

This is a very helpful features to create equal plots for a parameter study, where the min/max of the signals vary.

Change History (14)

comment:1 by anonymous, 12 years ago

Priority: highnormal
Type: defectenhancement

comment:2 by Adeel Asghar, 12 years ago

Status: newaccepted

OMEdit uses OMPlot for plotting and this feature is available in OMPlot. However, it's not supported via OMEdit. You can still use OMPlot for while,

adeas31@IDA-LIU085 /c/OpenModelica/trunk/build/bin
$ OMPlot.exe 
Usage: OMPlot [OPTIONS] [--filename=NAME] [variable names]
OPTIONS
    --title=TITLE              Sets the TITLE of the plot window
    --filename=NAME            Sets the NAME of the file to plot
    --legend=[true|false]      Display a variable legend in the window
    --grid=[true|false]        Enable a grid in the window
    --logx=[true|false]        Use log scale for the x-axis
    --logy=[true|false]        Use log scale for the y-axis
    --xlabel=LABEL             Use LABEL as the label of the x-axis
    --ylabel=LABEL             Use LABEL as the label of the y-axis
    --plot                     Create a normal plot
    --plotAll                  Create a normal plot containing every variable in the result-file
    --plotParametric           Create a parametric plot (plot variables as functions of each other)
    --xrange=LEFT:RIGHT        Sets the initial range of the x-axis to LEFT:RIGHT
    --yrange=LEFT:RIGHT        Sets the initial range of the y-axis to LEFT:RIGHT
    --new-window=[true|false]  Create a MDI dialog in the plot-window

comment:3 by Martin Sjölund, 11 years ago

Milestone: 1.9.01.9.1

Postponed until 1.9.1

comment:4 by Martin Sjölund, 10 years ago

Milestone: 1.9.11.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 Martin Sjölund, 10 years ago

Milestone: 1.9.21.9.3

Milestone changed to 1.9.3 since 1.9.2 was released.

comment:6 by Martin Sjölund, 9 years ago

Milestone: 1.9.31.9.4

Moved to new milestone 1.9.4

comment:7 by Francesco Casella, 9 years ago

Sometimes simulations blow up, producing very large results (e.g. 1e+140). The cause of the error can only be identified by zooming in so that the axis has a range of, say, 1e3. This requires to zoom in a hundred times or so, which is not particularly nice. Another compelling reason to add this feature.

comment:8 by Francesco Casella, 9 years ago

Priority: normalhigh
Type: enhancementdefect

comment:9 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.5

Milestone pushed to 1.9.5

comment:10 by Martin Sjölund, 9 years ago

Milestone: 1.9.51.10.0

Milestone renamed

comment:11 by Martin Sjölund, 8 years ago

Milestone: 1.10.01.11.0

Ticket retargeted after milestone closed

comment:12 by Adeel Asghar, 8 years ago

Milestone: 1.11.01.12.0

Milestone changed to 1.12.0 since 1.11.0 was released.

comment:13 by massimo ceraolo, 8 years ago

any news on this?
For me it has now become one of the more urgent things to do on OMEdit.

comment:14 by Adeel Asghar, 8 years ago

Cc: Francesco Casella added
Resolution: fixed
Status: acceptedclosed

Done in 16532e5/OMPlot.

Now you can set the axes range manually. Click on Setup button in the toolbar and then select Range tab in the setup window.

Note: See TracTickets for help on using tickets.