|
From: Ethan M. <merritt@u.washington.edu> - 2009-07-24 18:59:50
|
On Thursday 23 July 2009 19:12:56 James R. Van Zandt wrote: > > I revised plot3d.c to fix the X and Y limits before checking for valid > Z values: > > axis_checked_extend_empty_range(FIRST_X_AXIS, "All points x value undefined"); > axis_revert_and_unlog_range(FIRST_X_AXIS); > axis_checked_extend_empty_range(FIRST_Y_AXIS, "All points y value undefined"); > axis_revert_and_unlog_range(FIRST_Y_AXIS); > if (splot_map) > axis_checked_extend_empty_range(FIRST_Z_AXIS, NULL); /* Suppress warning message */ > else > axis_checked_extend_empty_range(FIRST_Z_AXIS, "All points z value undefined"); > > axis_revert_and_unlog_range(FIRST_Z_AXIS); > > It works here. However, I'd appreciate someone with a better > understanding of the code checking for side effects. > > - Jim Van Zandt I don't know if it counts as a side-effect, but after setting set view equal xyz the 3D zoom behavior (control + mouse wheel) is unexpected. I would have expected the whole plot to get bigger or smaller; instead the x/y area remains fixed, the x and y scales change, and the z axis grows correspondingly longer or shorter. Note: since 'set view equal xyz' doesn't work in the x11 terminal anyhow, you would need to use the wxt or maybe qt terminal to see what I'm describing. Ethan Merritt |