Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7398643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T03:53:45+00:00 2026-05-29T03:53:45+00:00

I remember in pascal we had such a thing to draw line with XOR

  • 0

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+');
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T03:53:45+00:00Added an answer on May 29, 2026 at 3:53 am

    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:


    figure
    hPatch = patch([10 90 90 10],[1 1 8 8],'r');
    set(hPatch,'eraseMode','xor');
    hold on
    plot([5 100],[5 5])
    

    figure; hold on;
    [x,y,z] = peaks;
    hPeaks = surface(x,y,z);
    hLine = line([-4 4],[4 -4],[10 -10])
    set(hLine,'EraseMode','xor')
    view(3)
    

    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

    docsearch EraseMode
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I remember in Java, we do it like this: System.getProperty(line.separator) How to do the
A long time ago I remember I could do this in Turbo Pascal 7.
I remember 1990's Turbo Pascal 6.0 which had several compiler switches for 80286-specific features,
I remember watching a webcast from Mark Russinovich showing the sequence of keyboard keys
I remember my old Radeon graphics drivers which had a number of overlay effects
Remember, this is using python. Well, I was fiddling around with an app I
I remember having read this in Apple's documentation but now I can't find it.
I remember stumbling upon a method that would tell you when a view was
I remember from 3 years ago that it was an absolutely huge pain to
I see this from time to time and want to know what it is.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.