如何在 Matlab 中绘制 XOR 线(或图)
我记得在 pascal 中我们有这样的东西可以用 XOR 绘制模式(或汇编中的写入模式)画线 例如,要绘制一条从 (5,5) 到 (100,5) 的线,我们可以在 Pascal 中执行此操作:
MoveTo(5, 5);
Pen.Mode := pmXOR;
LineTo(100,5);
Matlab 绘图(或线)函数是否有类似的功能?例如:
% Pen.Mode = pmXOR;
plot(X,Y,'r+');
I remember in pascal we had such a thing to draw line with XOR drawmode(or writemode in assembly)
e.g. to draw a line from (5,5) to (100,5) we would do this in Pascal:
MoveTo(5, 5);
Pen.Mode := pmXOR;
LineTo(100,5);
Do we have similar thing for matlab plot (or line) functions? e.g:
% Pen.Mode = pmXOR;
plot(X,Y,'r+');
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来您正在寻找的属性名为
EraseMode
。它可用于某些图形对象,但并非全部......您必须针对特定应用程序进行试验。一些示例:
使用
get(hLine)
、get(hPeaks)
等查看给定图形对象可用的属性。要查看支持 EraseMode 属性的所有对象,请键入
It looks like the property you are looking for is called
EraseMode
. It is available on some graphics objects, but not all ... you'll have to experiment for you particular application.Some examples:
Use
get(hLine)
,get(hPeaks)
etc. to see what properties are available for a given graphics object.To see all object which support the
EraseMode
property, type