Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Adjusting Axis ranges

fordhopi
Beginner
2,185 Views
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
0 Kudos
3 Replies
Intel_C_Intel
Employee
2,185 Views

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

0 Kudos
gregscvf
Beginner
2,185 Views
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
0 Kudos
Intel_C_Intel
Employee
2,185 Views
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
0 Kudos
Reply