Opened 11 years ago

Closed 7 years ago

#2232 closed defect (fixed)

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

Reported by: cschubert Owned by: adeas31
Priority: high Milestone: 1.12.0
Component: OMEdit Version: trunk
Keywords: Cc: 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 Changed 11 years ago by anonymous

  • Priority changed from high to normal
  • Type changed from defect to enhancement

comment:2 Changed 11 years ago by adeas31

  • Status changed from new to accepted

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 Changed 11 years ago by sjoelund.se

  • Milestone changed from 1.9.0 to 1.9.1

Postponed until 1.9.1

comment:4 Changed 10 years ago by sjoelund.se

  • Milestone changed from 1.9.1 to 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 Changed 10 years ago by sjoelund.se

  • Milestone changed from 1.9.2 to 1.9.3

Milestone changed to 1.9.3 since 1.9.2 was released.

comment:6 Changed 9 years ago by sjoelund.se

  • Milestone changed from 1.9.3 to 1.9.4

Moved to new milestone 1.9.4

comment:7 Changed 9 years ago by casella

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 Changed 9 years ago by casella

  • Priority changed from normal to high
  • Type changed from enhancement to defect

comment:9 Changed 9 years ago by sjoelund.se

  • Milestone changed from 1.9.4 to 1.9.5

Milestone pushed to 1.9.5

comment:10 Changed 9 years ago by sjoelund.se

  • Milestone changed from 1.9.5 to 1.10.0

Milestone renamed

comment:11 Changed 8 years ago by sjoelund.se

  • Milestone changed from 1.10.0 to 1.11.0

Ticket retargeted after milestone closed

comment:12 Changed 8 years ago by adeas31

  • Milestone changed from 1.11.0 to 1.12.0

Milestone changed to 1.12.0 since 1.11.0 was released.

comment:13 Changed 7 years ago by ceraolo

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

comment:14 Changed 7 years ago by adeas31

  • Cc casella added
  • Resolution set to fixed
  • Status changed from accepted to closed

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.