- ago
I have a number of panes in my chart, some of them should have a fixed range (say 0 .. 100)

I do remember a SetPaneMinMax() function in an older version of WL.

Is there an equivalent in WL8?
9
494
7 Replies

Reply

Bookmark

Sort
Glitch8
 ( 10.62% )
- ago
#1
SetPaneDrawingOptions
1
- ago
#2
Does the graphics package you use for WL have a way of returning the present y-min and y-max of a pane? If not, can you request the graphics package authors to add that function?
0
Glitch8
 ( 10.62% )
- ago
#3
I'm not sure I understand the question. We're not using any graphics package. We're using WPF from Microsoft for rendering. But, the graphics is decoupled from the Strategy execution system so it's not possible to get this kind of detailed information about the chart that you seem to be looking for.
1
- ago
#4
> SetPaneDrawingOptions

This procedure sets the height in pixels of a pane. That is not what I want.
I want the vertical Axis (Y-Axis) to show values between 0.0 and 100.0 even if the data
has an Y-Range of say 30..80.

This should switch off auto-scaling and use a fixed scaling of the data and a fixed range for the vertical axis.

In an older version of WL the SetPaneMinMax() call achieved exactly this behavior.
0
Glitch8
 ( 10.62% )
- ago
#5
You can set UseZeroOrigin of the plotted indicator to true to achieve this.
0
Cone8
 ( 4.98% )
- ago
#6
Actually you can't - it's read only.
SetPaneDrawingOptions needs a couple more parameters, something like this -

CODE:
void SetPaneDrawingOptions2(string paneTag, int height, int sortValue = 50, double ymin = Double.MinValue, double ymax = Double.MaxValue)
If ymin / ymax aren't assigned, then Auto-scale.
It's a feature request now. Add your vote in Post #1.
0
Glitch8
 ( 10.62% )
- ago
#7
Or we could simply reintroduce SetPaneMinMax.
3

Reply

Bookmark

Sort