iqiukp / ZoomPlot-MATLAB

MATLAB Code for Interactive Magnification of Customized Regions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug in Boxchart

DechenJiang opened this issue · comments

Hello! Thank you for the excellent software, which has helped me a lot.

Recently when I was using ZoomPlot on a boxchart, I met an error.

But I don't know how to solve it. Could you help me? Thanks : )

%test.m

t1=[rand(10,10),zeros(10,10)];
t2=[rand(10,10),zeros(10,10)];

figure
hold on;
boxchart(t1);
boxchart(t2);

zp=BaseZoom();
zp.run;

when try to draw a subAxesArea using mouse, the error occurs.

Use the left mouse button to draw a rectangle.
for the sub axes...
Warning: Error occurred while executing the listener callback
for event WindowMousePress defined for class
matlab.ui.Figure:
Error using categorical/horzcat
Unable to concatenate a double array and a categorical array.

Error in
images.roi.internal.DrawingCanvas/setConstraintLimits

Error in images.roi.Rectangle/setConstraintLimits

Error in
images.roi.internal.ROI/resetConstraintsAndFigureMode

Error in images.roi.Rectangle/wireUpListeners

Error in images.roi.internal.ROI/waitForButtonPressToBegin

Error in images.roi.internal.ROI 
> In uiwait (line 81)
In images.roi.internal/ROI/draw
In drawrectangle (line 217)
In BaseZoom/addSubAxes (line 268)
In BaseZoom/run (line 188)
In test (line 11)

Sorry, I just saw the closed issue.

The current version of ZoomPlot does not support boxplots.

The administrator can delete this issue. Thanks!