- changed title to PlotXY: Strange behavior when displaying xy data
- edited description
PlotXY: Strange behavior when displaying xy data
Issue #26
resolved
When changing the mode from Auto to another mode and back, the graphic is no longer correct when an XY plot is displayed. Maybe the xData dataObject gets lost.
In addition, the example bellow shows unwanted lines.
The following lines can be used for testing:
yPoints =dataObject([4,4],'float32')
xPoints=dataObject([4,4],'float32')
# fill the dataObjects with nans to ignore values which are not needed
yPoints[:,:]=np.nan
xPoints[:,:]=np.nan
#first line
yPoints[0,0]=0
xPoints[0,0]=0
yPoints[0,1]=0
xPoints[0,1]=1
yPoints[0,2]=1
xPoints[0,2]=1
yPoints[0,3]=1
xPoints[0,3]=0
#second line
yPoints[1,0:2] = (0,1)
xPoints[1,0:2] = (0,1)
#third line
yPoints[2,0]=1
xPoints[2,0]=0
yPoints[2,1]=0
xPoints[2,1]=1
#fourth line
yPoints[3,0]=1
xPoints[3,0]=0
yPoints[3,1]=1.5
xPoints[3,1]=0.5
yPoints[3,2]=1
xPoints[3,2]=1
plot1(yPoints, xPoints)
This should display a house.
Comments (2)
-
reporter -
reporter - changed status to resolved
fixes
#26: changing the display mode led to the loss of x-data. refreshPlot was called without xData argument.→ <<cset 7ad424cd3f52>>
- Log in to comment