Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
xrysf03 is currently offline  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 Smile
Good...

Frank
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Compilation of ScatterDraw cause warnings
Next Topic: Remove a Surf from a ScatterDraw
Goto Forum:
  


Current Time: Sat Apr 20 07:16:45 CEST 2024

Total time taken to generate the page: 0.03307 seconds