- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have been trying to figure out how to control the ranges of the X and Y axis,but I have been unable to find agood example that shows my the proper code syntax needed. I know thatfavSetAxisAutoScale needs to be called and set tofalse, but I cannot get the correct syntax for any of the other commands.Can someonepost some example code. I haven't been able to find anything useful in the samples that came with CVF. Thanks
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The sample AnimConsole uses the favSetAxisAutoScale routine.
Try the following sequence:
call favSetAxisAutoScale(hv, AV_FALSE, status)
call favSetAxisAutoDetail(hv, AV_FALSE, status)
call favSetNumMajorTickmarks(hv, X_AXIS, 0, status)
call favSetNumMajorTickmarks(hv, Y_AXIS, 0, status)
Does that do what you want?
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
John,
Don't you need an INT2 value in the last two Calls, for the number of tic marks?
Also, on a slightly different subject...
I use Array Viewer for 3-D plots, and have difficulty with the vertical axis. I would like to have negative values with 0.0 at the top, -60.0 at thebottom,and increments of 10.0. Although this works, it defaults to the E-Format (0.E+001, -10.E+001 ... -60.E+001). This not only looks awkward, but it is against IEEE policy for publications. Am I missing anything?
Greg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, I should have mentioned that the third parameter of favSetNumMajorTickmarks call sets the number of tickmarks.
In CAV I don't think there is any way to change the axis formating. In Intel AV though, we've added an extensive set of properties to specify how the axis values should be formated.
John
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page