Home » U++ Library support » ScatterDraw & ScatterCtrl » [solved] ScatterCtrl: program access to the "Measures" ? (Need to set per axis min/max and major unit, no clue how to)
Re: [still wondering] ScatterCtrl: program access to the "Measures" ? [message #52716 is a reply to message #52706] |
Wed, 13 November 2019 23:05 |
xrysf03
Messages: 43 Registered: November 2018 Location: CZ
|
Member |
|
|
Hello Koldo,
thanks a lot for that snippet of code, exactly what I was looking for.
Your sketch demonstrates to me something that I guess I've grasped before: the offset and spacing, given via AddSeries(), allows you to submit several time series that are not precisely aligned along axis X (= in time, typically).
And, I now finally understand what the "minor" units are.
The Major unit is clear, that is the dotted grid spacing.
The "minor" unit, as given by SetMinUnits(), is the offset of the dotted grid from the axis minima, as given by SetXYMin().
(Counter-intuitively to me, this is not a second smaller "axis tick mark" or anything like that.)
For the record, for people who may come later and may be just as lost as I was, I'll attach two screenshots of my app, with comments inscribed. They correspond to the following two snippets of UPP code:
Chart1.SetXYMin(min_freq, -90).SetRange(max_freq - min_freq, 90).SetMinUnits(0,0).SetMajorUnits(1000000, 10);
Chart1.SetXYMin(min_freq, -90).SetRange(max_freq - min_freq, 90).SetMinUnits(100000,5).SetMajorUnits(1000000, 10);
And, if I divide the x0 and DeltaX (= parameters to AddSeries() ) by a million, the DeltaX gets fractional, which is no problem, and I get a display in 3-digit MHz, rather than 9-digit Hz
Good...
Frank
|
|
|
|
|
[solved] ScatterCtrl: program access to the "Measures" ?
By: xrysf03 on Sun, 10 November 2019 01:13
|
|
|
Re: ScatterCtrl: program access to the "Measures" ?
By: koldo on Sun, 10 November 2019 10:23
|
|
|
[solved] Re: ScatterCtrl: program access to the "Measures" ?
By: xrysf03 on Sun, 10 November 2019 11:34
|
|
|
Re: [solved] Re: ScatterCtrl: program access to the "Measures" ?
By: koldo on Sun, 10 November 2019 12:38
|
|
|
Re: [solved] Re: ScatterCtrl: program access to the "Measures" ?
By: xrysf03 on Sun, 10 November 2019 18:23
|
|
|
Re: [solved] Re: ScatterCtrl: program access to the "Measures" ?
By: koldo on Sun, 10 November 2019 20:20
|
|
|
Re: [still wondering] ScatterCtrl: program access to the "Measures" ?
By: xrysf03 on Tue, 12 November 2019 22:58
|
|
|
Re: [still wondering] ScatterCtrl: program access to the "Measures" ?
By: koldo on Wed, 13 November 2019 08:32
|
|
|
Re: [still wondering] ScatterCtrl: program access to the "Measures" ?
By: xrysf03 on Wed, 13 November 2019 23:05
|
|
|
Re: [still wondering] ScatterCtrl: program access to the "Measures" ?
By: xrysf03 on Wed, 13 November 2019 23:08
|
|
|
Re: [still wondering] ScatterCtrl: program access to the "Measures" ?
By: xrysf03 on Wed, 13 November 2019 23:11
|
|
|
Re: [still wondering] ScatterCtrl: program access to the "Measures" ?
By: koldo on Thu, 14 November 2019 08:07
|
|
|
Re: [solved] ScatterCtrl: program access to the "Measures" ?
By: xrysf03 on Thu, 14 November 2019 12:51
|
|
|
Re: [solved] ScatterCtrl: program access to the "Measures" ?
By: Oblivion on Thu, 14 November 2019 13:56
|
|
|
Re: [solved] ScatterCtrl: program access to the "Measures" ?
By: koldo on Thu, 14 November 2019 14:30
|
|
|
Re: [solved] ScatterCtrl: program access to the "Measures" ?
By: xrysf03 on Thu, 14 November 2019 15:06
|
|
|
Re: [solved] ScatterCtrl: program access to the "Measures" ?
By: xrysf03 on Thu, 14 November 2019 14:50
|
Goto Forum:
Current Time: Sat Apr 20 07:16:45 CEST 2024
Total time taken to generate the page: 0.03307 seconds
|