Skip to content

Commit ae74eb2

Browse files
committed
Respect logarithmic scaling of axis when plotting scatter objects (bug #67239).
* gl-render.cc (opengl_renderer::draw_scatter): Scale x, y, and z coordinates according to the scale setting (linear or logarithmic) of the corresponding axis.
1 parent 38473af commit ae74eb2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libinterp/corefcn/gl-render.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3773,9 +3773,9 @@ opengl_renderer::draw_scatter (const scatter::properties& props)
37733773
bool do_edge = draw_all || ! props.markeredgecolor_is ("none");
37743774
bool do_face = draw_all || ! props.markerfacecolor_is ("none");
37753775

3776-
const Matrix x = props.get_xdata ().matrix_value ();
3777-
const Matrix y = props.get_ydata ().matrix_value ();
3778-
const Matrix z = props.get_zdata ().matrix_value ();
3776+
const Matrix x = m_xform.xscale (props.get_xdata ().matrix_value ());
3777+
const Matrix y = m_xform.yscale (props.get_ydata ().matrix_value ());
3778+
const Matrix z = m_xform.zscale (props.get_zdata ().matrix_value ());
37793779
const Matrix c = props.get_color_data ().matrix_value ();
37803780
const Matrix s = props.get_sizedata ().matrix_value ();
37813781

0 commit comments

Comments
 (0)