comparison scripts/plot/__go_draw_axes__.m @ 7152:8903b5151c8b

[project @ 2007-11-09 21:07:23 by jwe]
author jwe
date Fri, 09 Nov 2007 21:07:24 +0000
parents 5c121a8b40b5
children 89a929a3ebfd
comparison
equal deleted inserted replaced
7151:aeeb646f6538 7152:8903b5151c8b
839 fputs (plot_stream, "set hidden3d;\n"); 839 fputs (plot_stream, "set hidden3d;\n");
840 else 840 else
841 fputs (plot_stream, "unset hidden3d;\n"); 841 fputs (plot_stream, "unset hidden3d;\n");
842 endif 842 endif
843 843
844 have_data = (! (isempty (data) && any (cellfun (@isempty, data)))); 844 have_data = (! (isempty (data) || any (cellfun (@isempty, data))));
845 845
846 if (xautoscale && have_data) 846 if (xautoscale && have_data)
847 xlim = get_axis_limits (xmin, xmax, xminp, xlogscale); 847 xlim = get_axis_limits (xmin, xmax, xminp, xlogscale);
848 if (isempty (xlim)) 848 if (isempty (xlim))
849 return; 849 return;
981 view_fcn (xlim, ylim, ximg_data{i}, view_zoom, view_cmd); 981 view_fcn (xlim, ylim, ximg_data{i}, view_zoom, view_cmd);
982 endfor 982 endfor
983 endif 983 endif
984 984
985 if (have_data) 985 if (have_data)
986
987 if (nd == 2) 986 if (nd == 2)
988 plot_cmd = "plot"; 987 plot_cmd = "plot";
989 else 988 else
990 plot_cmd = "splot"; 989 plot_cmd = "splot";
991 rot_x = 90 - axis_obj.view(2); 990 rot_x = 90 - axis_obj.view(2);