diff scripts/image/imshow.m @ 25980:221c039aa415

Fix rendering of images with permuted x/ydata (bug #49756). * gl-render.cc (opengl_renderer::draw_image): Sort xdata and ydata before computing pixel dimensions and flip dimensions if necessary. * genpropdoc.m: Use "[x/yfirst x/ylast]" instead of "[x/ymin x/ymax]" in documentation for clarity. * imshow.m: Ditto.
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Sun, 28 Oct 2018 21:56:40 +0100
parents 9578af67a0d4
children 00f796120a6d
line wrap: on
line diff
--- a/scripts/image/imshow.m	Mon Oct 29 21:56:08 2018 -0700
+++ b/scripts/image/imshow.m	Sun Oct 28 21:56:40 2018 +0100
@@ -49,16 +49,16 @@
 ##
 ## @item @qcode{"xdata"}
 ## If @var{value1} is a 2-element vector, it must contain horizontal image
-## limits in the form [xmin, xmax], where xmin and xmax are the abscissa of
-## the centers of the corner pixels.  Otherwise @var{value1} must be a vector
-## and only the first and last elements will be used for xmin and xmax
-## respectively.
+## limits in the form [xfirst, xlast], where xfirst and xlast are the
+## abscissa of the centers of the corner pixels.  Otherwise @var{value1}
+##  must be a vector and only the first and last elements will be used
+## for xfirst and xlast respectively.
 ##
 ## @item @qcode{"ydata"}
 ## If @var{value1} is a 2-element vector, it must contain vertical image
-## limits in the form [ymin, ymax], where ymin and ymax are the ordinates of
-## the center of the corner pixels.  Otherwise @var{value1} must be a vector
-## and only the first and last elements will be used for ymin and ymax
+## limits in the form [yfirst, ylast], where yfirst and ylast are the ordinates
+## of the center of the corner pixels.  Otherwise @var{value1} must be a vector
+## and only the first and last elements will be used for yfirst and ylast
 ## respectively.
 ##
 ## @end table